Problem with E.toString #4594
Replies: 1 comment
-
Posted at 2018-01-27 by ClearMemory041063 Trying process.memory to attempt a debug
The process.memory() fixes the bug.
Posted at 2018-01-27 by Wilberforce You are creating a 23k string. That is quite large in espruino world! The esp8266'has even less resources, so try changing the 23 to 4 and see if it works! Posted at 2018-01-27 by ClearMemory041063 The example above is on a Pico. For the ESP8266 -01 try this code
Posted at 2018-01-29 by @gfwilliams The issue you're hitting here is actually one of fragmentation. The standard Flat String allocator tries to allocate a flat string quickly - and if the free list (not the actual data!) gets fragmented it can fail. I've now changed Posted at 2018-01-29 by ClearMemory041063 Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-01-26 by ClearMemory041063
Here is the test code
Here is the output
Similar problem on ESP8266 running Espruino, but different array sizes to get it to run at all.
Beta Was this translation helpful? Give feedback.
All reactions