Replies: 1 comment 1 reply
-
Moving that to a support ticket because your code shows that there might be one or two mistakes in your code and does not show any issue in our lib. First just know that esp8266 is not supported anymore. Secondly, you didn’t add any stack trace. So what is the crash exactly and from where ? Third, you seem to send a non initialized buffer ? Also you have a big buffer and using a method that is copying your buffer in a message. That’s not good because will duplicate the amount of memory needed. For large buffers there is a way to directly feed the message - see the doc. And finally, you are allocating your big buffer on the stack not the heap… so please fix your code first ;-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
ESP32
IDE / Tooling
Arduino (IDE/CLI)
What happened?
I have found an issue where the system will panic and crash
Stack Trace
corrupted.
Minimal Reproductible Example (MRE)
This command will cause a system panic when buffer is too large (8192 was the value in my case), before any clients are connected: ws.textAll(buffer);
This is the Eth example with the problematic function included.
I confirm that:
Beta Was this translation helpful? Give feedback.
All reactions