-
-
Notifications
You must be signed in to change notification settings - Fork 62
Crash once capture list is 'const' while responding by callback containing templates and extra headers #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
another stack trace I got. It seems that the Stack Trace
this how the serial log
|
stack trace again
```
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump: Backtrace: 0x4008a295:0x3ffddce0 0x400d337f:0x3ffddcf0 0x400fc3da:0x3ffddd10 0x400fd3ef:0x3ffddd40 0x400fd8bd:0x3ffdddd0 0x4019997a:0x3ffdde30 0x400f9a99:0x3ffdde50 0x400f4672:0x3ffdde70 0x400f47e4:0x3ffddea0 0x400f5009:0x3ffddec0 #0 0x4008a295:0x3ffddce0 in memcpy at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/memcpy.S:262
|
it was my fault, I didn't took enough care about scope of variables used in lambda. |
fix(sse): break loop after erasing client
Strange thing - I try to get a function for the user to download the core dump from the coredump partition. During loading the data I faced an issue and get contiously core-dumps.
I'm developing on a standard ESP32-Wroom32.
The code is slightly changed for debugging purposes. The buffer is initialized by a for-loop to better check for valid data. First the capture list was only by reference
[&]
but then I saw that my buffer (data[]
) was modified. Then I changed the capture-list to const reference. This leads to a reproduceable state where the ESP reboots.Code snippet
once I call my ESP with
[IP]/coredump
the following stacktrace will be printedCore Dump
Your documentation:
https://github.com/esphome/ESPAsyncWebServer/blob/main/README.md#respond-with-content-using-a-callback-containing-templates-and-extra-headers
Is there anything I'm missing? Don't know where the issue is related to.
The text was updated successfully, but these errors were encountered: