I tried to replicate the issue in Bangle emulator and also other nrf52 board and with simple allocations of Graphics.createArrayBuffer until memory is low and calling E.toString on the buffers it just works. Maybe the memory is not fragmented enough. Those graphics buffers should be always guaranteed to be flat strings already? I am also suspecting possible memory corruption from my InlineC code now since I also have some random hangs and watchdog reboots after my code runs for some time.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I tried to replicate the issue in Bangle emulator and also other nrf52 board and with simple allocations of Graphics.createArrayBuffer until memory is low and calling E.toString on the buffers it just works. Maybe the memory is not fragmented enough. Those graphics buffers should be always guaranteed to be flat strings already? I am also suspecting possible memory corruption from my InlineC code now since I also have some random hangs and watchdog reboots after my code runs for some time.