You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESP32 with 16Mb
ESP32 version 3.0.7
ArduinoJson version 7.3.0
I am creating a Json using JsonDoc that contains 5 JsonObjects.
I am then serializing the Json to a string to write it to an SD card.
Occasionally in the middle of my string I get bits of what looks like debug output as follows:
"E04":6185,"lse && "Failed to release mutex!"":657,"se && "Failed to release mutex!"":691,"E11":0
or
"engine":{"lse && "Failed to release mutex!"":268,"E11":0
It is inconsistent and only occurs occasionally but when it does it seems the only way to clear it is to write to the SD card before creating the next Json and serializing it.
I tried checking the string for the mutex text and not writing it if this was in the string but then every subsequent string contained the mutex message until I wrote the string to the SD card, then it was cleared.
A code snippet at the end of my Json creation is: doc.shrinkToFit(); serializeJson(doc, jsonString); return jsonString;
It does not seem to be related to the size of the Json (I have variable lengths) and sometimes occurs several times in a row then nothing for 25+ Jsons.
My Jsons are mostly less than 400 characters.
When it occurs it is always in the 5th JsonObject.
The text was updated successfully, but these errors were encountered:
ArduinoJson doesn't use mutex or any other synchronization method, so the problem comes from somewhere else.
Start by updating the Arduino core for ESP32, and see if it helps.
If it doesn't help, create an MCVE; it will help you isolate the cause of the issue.
Remember that the root cause can be an undefined behavior (such as a buffer overrun or a stack overflow) in another part of your program, so don't hesitate to comment out unrelated pieces of code.
ESP32 with 16Mb
ESP32 version 3.0.7
ArduinoJson version 7.3.0
I am creating a Json using JsonDoc that contains 5 JsonObjects.
I am then serializing the Json to a string to write it to an SD card.
Occasionally in the middle of my string I get bits of what looks like debug output as follows:
"E04":6185,"lse && "Failed to release mutex!"":657,"se && "Failed to release mutex!"":691,"E11":0
or
"engine":{"lse && "Failed to release mutex!"":268,"E11":0
It is inconsistent and only occurs occasionally but when it does it seems the only way to clear it is to write to the SD card before creating the next Json and serializing it.
A code snippet at the end of my Json creation is:
doc.shrinkToFit(); serializeJson(doc, jsonString); return jsonString;
It does not seem to be related to the size of the Json (I have variable lengths) and sometimes occurs several times in a row then nothing for 25+ Jsons.
My Jsons are mostly less than 400 characters.
When it occurs it is always in the 5th JsonObject.
The text was updated successfully, but these errors were encountered: