-
-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] ErrorParsingJson for valid JSON payload. Not enough free RAM? #261
Comments
Never heard of this problem. |
firmware.zip |
Hi. I also work with the IO Broker Adapter from @klein0r . I get the following message in the IO Broker log:
|
Good morning, i tryed flashing firmware.bin to the device. After flashing i got 134kb free RAM after reboot instead of 78kb using 6 custon apps. I added 2 more custom apps as i had before and expected the "ErrorParsionJson" Warning... but i am still at 120kb free RAM and the device is running without any issue. Will provide a Serial Log when the Warning happens again |
Hi. After flashing 0.74 it's a little bit worse. Free RAM now at 58kb and Warnings back maybe 10s after Restarting Instance of awtrix. Serial Monitor log shows nothing... but iobroker log: Another issue was when i want to activate logging function on device (edit value in dev.json from false to true and save) there was many errors and the device freezes. Serial log shows following: i go back to 0.73 (firmware.bin) you sent before. This version works fine. Using 10 custom apps without any issue |
Same here, updated to 0.74 last night and things got bad really quick again. 0.73 (firmware bin, not the official release) works absolutely perfect. |
That doesn't make any sense to me, Does everyone here uses the IObroker adapter? |
I was a bit suprised too I have to admit. Yes, running ioBroker |
Hi, ` awtrix-light.0 awtrix-light.0 awtrix-light.0 awtrix-light.0 awtrix-light.0 awtrix-light.0 awtrix-light.0 There are fewer of them, but they are back. Unfortunately, I'm still on the road and can't send another log at the moment. As soon as I have the opportunity, I will try to send other logos. |
The last 3 versions I changed nothing to this related problem. Besides, IObroker logs are of no use to me here. |
If @FreunderNacht would change the log level to debug, all HTTP requests will be logged. |
Hello @klein0r , @Blueforcer Then I'll try to send you the excerpt. In which file do I have to insert the "debug_mode":true and where do I find it? |
You need to connect awtrix to a PC, then go to the awtrix webflasher and hit console. You need to create a dev.json in the root of the filesystem |
This one here really runs rock solid, not a single error or disconnect since like three days? I tried .74 in between, but as official .73 and .72 all of them suffer the same problem after a while. But that custom .73 does not, it works perfectly fine. |
@Blueforcer I had entered an icon number (the wrong number was the 54319 / the correct number was the 54619) in the adapter that did not exist (it was a number error). However, since this icon is usually only needed at night or during heavy cloud cover, the error only occurred sporadically, which also supports my assumption that version 0.74 had supposedly solved the problem (at that time the icon was not called up). Nevertheless, here is the log of the console: I noticed another little thing here. I'll observe the whole thing for another day or two and then give feedback. @Blueforcer @klein0r |
if an icon exists or not, doesnt matter. Awtrix checks this. The messages in the awtrix log is a weird output of the LittleFS lib. Im pretty sure, the mainproblem isnt solved yet. |
I have a question for Blueforcer. You recently posted a Firmware.bin here. What was changed about this one? This now runs error-free on my custom build. Could this change also be made with an Awtrix 2 upgrade firmware? For me, no version higher than 0.71 runs without errors. |
Hello @Blueforcer, I had no error messages for 2 days, or at most only very isolated ones, but since this morning I have just as many as before. Here is the console log from the AWTRIX firmware: 2023-08-18 AWTRIX Consol-Log (Debug).txt The console log from the AWTRIX firmware goes back even further than that of the IO Broker, as the adapter was only running in the "Info" log level. I also have the impression that when I restart the ESP, there are no more negative log entries in the IO Broker for a certain time. Is there any way I can make the RAM load of the Ulanzia visible and record it? Or is there anything else I can do to help? Edit:I have found the possibility to read out the free RAM via the IO Broker adapter. |
Hello @klein0r , 2023-08-18 IO Broker Log (AWTRIX Debug).txt It was recorded at the end at the same time as the console log of the AWTRIX firmware (see previous post). |
"debug_mode" is not active. You need to set it in the dev.json on the awtrix filesystem. I dont thing that the RAM is the problem 105kb (and even 60kb as mentioned above) should be more than enough. |
Hi I made a short test with FW0.75 and recognized that memory usage goes down to 53 - 50kb free RAM after starting ioBroker adapter. After very short time ( < 2min) web interface is not reachable any more. Only rebooting the device by press and hold the two buttons helps. Although updating the values was not possible any more. I think we have here an issue as soon the ioBroker adapter connects to the device. I hope I can make a test tomorrow sending MQTT messages with custom apps over NodeRed and monitor the behavior of the device. In the meantime I downgraded to firmware.bin (custom 0.73) running 12 custom apps without any issue |
My main users on my discords use Homeassistant over MQTT or raw MQTT messages and i dont have such issue reports. So I'm a little confused as to what the IOBroker adpater does so much differently. http shouldn't really be the problem now I think. |
I have created dev.json in the root directory, but there I have only entered the value for the debug mode and set it to True. Am I in the right place in the directory tree? Do I have to enter all values or is it enough to enter only those that differ from the default, as I have done now? |
I had the same problems with screen freezes, reboots, etc. while using the iobroker adapter. Since i removed the Adapter and send http requests via exec-blockly-blocks and curl commands everything works for many days without any problems. So i agree with @Blueforcer that the http requests are not the problem. |
That should work. do you also restarted awtrix after adding this? |
Yes, after each change (e.g. switching from true to false) I restart the Awtrix via the button "ESP restart" in the icon menu. Can I somehow see whether I am in debug mode? |
Hope you're meaning from false to true:) You only see it in the serial log.you should see the JSON you sent, the buttons you press, and so on |
@Blueforcer I think I have it now. I had to switch the Ulanzia completely (press the 2 outer buttons on the housing length) off and on again. Now I see much more in the log. As soon as the messages come next time, I will record the log. |
0.75 getting instable almost immediately (using the iobroker adapter). Back to custom 0.73 again, this runs perfectly fine for days. @klein0r, I start to think the root cause is more likely to be found within the iobroker adapter than the awtrix fw itself. |
Today I finally got a log from another user with the same problem. I think i have fixed that. We still test it but I think I can release an update today. |
Please check this: |
@Blueforcer I have an app ("regenheute") that is only activated when it has rained. As soon as this is the case, I seem to have exceeded a limit and the RAM is no longer sufficient. That would make a total of 7 apps for me. I am now updating to version 0.77. |
Wir sind schon bei 0.79 :) komm doch mal in discord, da bin ich mit @baetzmr und anderen am infos zusammentragen. Ich habe schon ein Test bei mir gestartet und prügel im 5 Sekundentakt 15 Customapps gleichzeitig auf die Awtrix. |
Hallo @Blueforcer, Er zeigt an, daß die Einladung abgelaufen oder ungültig ist. |
The problem why I couldn't recreate it is, |
problem was this: espressif/arduino-esp32#8482 |
Bug report
Describe the bug
More and more people complain about
ErrorParsingJson
errors. Even with just a small number of custom apps. Looks like the device hasn't enough RAM to handle more than ~5 custom apps in the latest firmware version.I have some logs of the ioBroker adapter:
This works:
But an identical request leads to an error some minutes later:
{"text":"125 W","textCase":2,"background":"#000000","color":"#faf303","icon":"44625"}
- OK{"text":"128 W","textCase":2,"background":"#000000","color":"#faf303","icon":"44625"}
- ERRORAdditional information
Additional context
See klein0r/ioBroker.awtrix-light#57
The text was updated successfully, but these errors were encountered: