Skip to content
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

"random" crashes #248

Open
juanmartin84 opened this issue Dec 15, 2024 · 2 comments
Open

"random" crashes #248

juanmartin84 opened this issue Dec 15, 2024 · 2 comments
Labels

Comments

@juanmartin84
Copy link

Hello, since a few days I'm getting this "random" crashes, I guess this is happening after a full clean.

I'm using

Below the logs.
Could this be related to Espdash / async lib ?

20:04:41.230 > #0 0x40083e5d in panic_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/panic.c:408
20:04:41.230 > #1 0x4008e84d in esp_system_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/esp_system.c:137
20:04:41.230 > #2 0x40093f31 in abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/abort.c:46
20:04:41.230 > #3 0x4019c1bb in __cxxabiv1::__terminate(void ()()) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:47
20:04:41.230 > #4 0x4019c202 in std::terminate() at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:57
20:04:41.230 > #5 0x4019c163 in __cxa_throw at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/eh_throw.cc:95
20:04:41.230 > #6 0x4019c582 in operator new(unsigned int) at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/gcc/libstdc++-v3/libsupc++/new_op.cc:54
20:04:41.230 > #7 0x401a2505 in __gnu_cxx::new_allocator::allocate(unsigned int, void const
) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\ext/new_allocator.h:111
20:04:41.230 > (inlined by) std::allocator_traits<std::allocator >::allocate(std::allocator&, unsigned int) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/alloc_traits.h:436
20:04:41.230 > (inlined by) std::_Vector_base<unsigned char, std::allocator >::_M_allocate(unsigned int) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_vector.h:296
20:04:41.230 > (inlined by) std::_Vector_base<unsigned char, std::allocator >::_M_create_storage(unsigned int) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_vector.h:311
20:04:41.230 > (inlined by) std::_Vector_base<unsigned char, std::allocator >::_Vector_base(unsigned int, std::allocator const&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_vector.h:260
20:04:41.230 > (inlined by) std::vector<unsigned char, std::allocator >::vector(unsigned int, std::allocator const&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/stl_vector.h:416
20:04:41.230 > (inlined by) void __gnu_cxx::new_allocator<std::vector<unsigned char, std::allocator > >::construct<std::vector<unsigned char, std::allocator >, unsigned int&>(std::vector<unsigned char, std::allocator >, unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\ext/new_allocator.h:136
20:04:41.230 > (inlined by) void std::allocator_traits<std::allocator<std::vector<unsigned char, std::allocator > > >::construct<std::vector<unsigned char, std::allocator >, unsigned int&>(std::allocator<std::vector<unsigned char, std::allocator > >&, std::vector<unsigned char, std::allocator >
, unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/alloc_traits.h:475
20:04:41.230 > (inlined by) std::_Sp_counted_ptr_inplace<std::vector<unsigned char, std::allocator >, std::allocator<std::vector<unsigned char, std::allocator > >, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned int&>(std::allocator<std::vector<unsigned char, std::allocator > >, unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/shared_ptr_base.h:545
20:04:41.230 > (inlined by) std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<std::vector<unsigned char, std::allocator >, std::allocator<std::vector<unsigned char, std::allocator > >, unsigned int&>(std::vector<unsigned char, std::allocator >&, std::_Sp_alloc_shared_tag<std::allocator<std::vector<unsigned char, std::allocator > > >, unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/shared_ptr_base.h:677
20:04:41.230 > #8 0x401a25d3 in std::__shared_ptr<std::vector<unsigned char, std::allocator >, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<std::vector<unsigned char, std::allocator > >, unsigned int&>(std::_Sp_alloc_shared_tag<std::allocator<std::vector<unsigned char, std::allocator > > >, unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/shared_ptr_base.h:1342
20:04:41.230 > (inlined by) std::shared_ptr<std::vector<unsigned char, std::allocator > >::shared_ptr<std::allocator<std::vector<unsigned char, std::allocator > >, unsigned int&>(std::_Sp_alloc_shared_tag<std::allocator<std::vector<unsigned char, std::allocator > > >, unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/shared_ptr.h:359
20:04:41.230 > (inlined by) std::shared_ptr<std::vector<unsigned char, std::allocator > > std::allocate_shared<std::vector<unsigned char, std::allocator >, std::allocator<std::vector<unsigned char, std::allocator > >, unsigned int&>(std::allocator<std::vector<unsigned char, std::allocator > > const&, unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/shared_ptr.h:706
20:04:41.230 > (inlined by) std::shared_ptr<std::vector<unsigned char, std::allocator > > std::make_shared<std::vector<unsigned char, std::allocator >, unsigned int&>(unsigned int&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/shared_ptr.h:722
20:04:41.230 > (inlined by) AsyncWebSocketMessageBuffer::AsyncWebSocketMessageBuffer(unsigned int) at .pio/libdeps/esp32dev/ESPAsyncWebServer/src/AsyncWebSocket.cpp:144
20:04:41.230 > #9 0x401a2617 in AsyncWebSocket::makeBuffer(unsigned int) at .pio/libdeps/esp32dev/ESPAsyncWebServer/src/AsyncWebSocket.cpp:1167
20:04:41.230 > #10 0x401059b9 in ESPDash::send(AsyncWebSocketClient
, ArduinoJson::V721PB22::JsonDocument&) at lib/ESP-DASH-Pro-v4-6-0/src/ESPDashPro.cpp:541
20:04:41.230 > #11 0x40106f49 in ESPDash::generateLayoutJSON(AsyncWebSocketClient*, bool, Card*, Chart*) at lib/ESP-DASH-Pro-v4-6-0/src/ESPDashPro.cpp:409
20:04:41.230 > #12 0x4010765f in _ZZN7ESPDashC4EP14AsyncWebServerPKcbENKUlP14AsyncWebSocketP20AsyncWebSocketClient12AwsEventTypePvPhjE1_clES5_S7_S8_S9_SA_j$isra$249 at lib/ESP-DASH-Pro-v4-6-0/src/ESPDashPro.cpp:96
20:04:41.230 > #13 0x40107b61 in std::_Function_handler<void (AsyncWebSocket*, AsyncWebSocketClient*, AwsEventType, void*, unsigned char*, unsigned int), ESPDash::ESPDash(AsyncWebServer*, char const*, bool)::{lambda(AsyncWebSocket*, AsyncWebSocketClient*, AwsEventType, void*, unsigned char*, unsigned int)#3}>::_M_invoke(std::_Any_data const&, AsyncWebSocket*&&, AsyncWebSocketClient*&&, AwsEventType&&, void*&&, unsigned char*&&, unsigned int&&) at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:297
20:04:41.230 > #14 0x401bab6a in std::function<void (AsyncWebSocket*, AsyncWebSocketClient*, AwsEventType, void*, unsigned char*, unsigned int)>::operator()(AsyncWebSocket*, AsyncWebSocketClient*, AwsEventType, void*, unsigned char*, unsigned int) const at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:687
20:04:41.230 > (inlined by) AsyncWebSocket::_handleEvent(AsyncWebSocketClient*, AwsEventType, void*, unsigned char*, unsigned int) at .pio/libdeps/esp32dev/ESPAsyncWebServer/src/AsyncWebSocket.cpp:778
20:04:41.230 > #15 0x401a1ed2 in AsyncWebSocketClient::_onData(void*, unsigned int) at .pio/libdeps/esp32dev/ESPAsyncWebServer/src/AsyncWebSocket.cpp:586
20:04:41.230 > #16 0x401a1ef9 in std::_Function_handler<void (void*, AsyncClient*, void*, unsigned int), AsyncWebSocketClient::AsyncWebSocketClient(AsyncWebServerRequest*, AsyncWebSocket*)::{lambda(void*, AsyncClient*, void*, unsigned int)#5}>::_M_invoke(std::_Any_data const&, void*&&, AsyncClient*&&, std::_Any_data const&, unsigned int&&) at .pio/libdeps/esp32dev/ESPAsyncWebServer/src/AsyncWebSocket.cpp:288
20:04:41.230 > (inlined by) _M_invoke at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:297
20:04:41.230 > #17 0x4019ef1d in std::function<void (void*, AsyncClient*, void*, unsigned int)>::operator()(void*, AsyncClient*, void*, unsigned int) const at c:\users\juan.platformio\packages\[email protected]+2021r2-patch5\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:687
20:04:41.230 > (inlined by) AsyncClient::_recv(tcp_pcb*, pbuf*, signed char) at .pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:1081
20:04:41.230 > #18 0x4019ef91 in AsyncClient::_s_recv(void*, tcp_pcb*, pbuf*, signed char) at .pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:1475
20:04:41.230 > #19 0x4019f82e in _async_service_task(void*) at .pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:260
20:04:41.230 > (inlined by) _async_service_task at .pio/libdeps/esp32dev/AsyncTCP/src/AsyncTCP.cpp:295

@juanmartin84
Copy link
Author

Hello, I moved the libraries to later versions:

mathieucarbou/ESPAsyncWebServer@^3.3.14
mathieucarbou/AsyncTCP@^3.2.10
EspDashPro 4.6.1

arduino json remain:
bblanchon/ArduinoJson@^7.1.0

I confirm the behavior is the same:

The controller sometimes runs 20 minutes (more often), sometimes 1 hour, sometimes more (not to often).
Cards and dashboard elements work fine.
Then crashes while doing nothing, I just power the microcontroller and watch what happens.
Log is always the same shown in previous post.

@ayushsharma82 could this be related to EspDash lib, EspAsync lib, json lib or some interaction between them?

BR

@mathieucarbou
Copy link
Contributor

@juanmartin84 : first, please make sure to upgrade all he libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants