Replies: 1 comment
-
There are countless of apps running for days even months with asynctcp. I am pretty sure the culprit is how you use it or your app. the provided stacks do not show any hint wehre asynctcp would have a bug somewhere. I am sorry to tell you that, but you must find a way to isolate your issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
IDE / Tooling
PlatformIO
What happened?
I am running ESP-DASH-Pro 4.6.2 on an ESP32 using ESPAsyncWebServer 3.7.7 and AsyncTCP 3.4.0. My application requires that the ESP32 does not reset itself because it is connected to a relay holding the power up of the ESP32. So as soon as the ESP resets, the relay gets released and the ESP32 dies due to power down.
That said, I tried to figure out why the ESP32 dies from time to time (currently approx. once every 1-3 days). To do that I changed the power supply to keep it running even after a reset and added some code to write the coredumps to LittleFS to be able to check them regularly. I am already doing this for months now, but I was not able to catch a good coredump leading me closer to the issue.
As far as I got, it seems like there is a pointer of a callback which points to some very strange memory region (0x8018d038) which gets executed resulting in an InstFetchPorohibited Hardfault. As the thread with these strange pcb is named asyncTCP it seems like its happening somewhere in the AsyncTCP code. Unfortunately the stack trace is now showing the last moment before the strange memory region get called. So I am clueless where to start looking, as it could be a memory leak anywhere in the codebase, or the pointer gets called after it was released already.
I now updated AsyncTCP again to the new version and wait for the next reset to happen.
Any help is appreciated.
Stack Trace
Minimal Reproductible Example (MRE)
This is a hard one, as this is a very sporadic problem and only occurs once in a few days.
I confirm that:
Beta Was this translation helpful? Give feedback.
All reactions