WebSerialLite icon indicating copy to clipboard operation
WebSerialLite copied to clipboard

A MAJOR PROBLEM - Each page reload takes the free heap down to zero

Open michael-vrba opened this issue 1 year ago • 3 comments

Each page reload takes the free heap down to zero When I run the demo code, each reload causes the freeheap value to decrease by 1-2 kB. When the value gets close to zero (15x reloads approximately), it causes a loss of function and then eventually a restart of the ESP8266 with an OOM error. Everything can be seen in the picture. How to solve this problem?

oom error no free heap

michael-vrba avatar Aug 15 '24 09:08 michael-vrba

I could confirm this.

KajWiik avatar Feb 01 '25 14:02 KajWiik

Due to personal work commitments, I am unable to maintain this project in the short term. If anyone from the community could help fix this issue and submit a PR, it would be greatly appreciated.

asjdf avatar Feb 01 '25 14:02 asjdf

Everyone: I am maintaining this at https://github.com/mathieucarbou/MycilaWebSerial, kept the UI but rewrote the C++ code entirely for performance reasons. See the 2 examples. The code has diverged a lot and will require some adjustments in your project.

mathieucarbou avatar Feb 01 '25 14:02 mathieucarbou