Description
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.