Closed roncoa closed 4 years ago
The issue title mentions 2.5 but this
C:\Users\ronco\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2
clearly shows you are using 2.4.2.
I've tried several cores, but the problem is the same
same. I think it's related to the async staff. I am using async-mqtt library
Did you ever try to decode the stacktrace to see where this points to?
Decoding stack results
0x40206b6d: __yield() at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 105
0x402058d5: OLEDDisplay::drawStringInternal(short, short, char*, unsigned short, unsigned short) at C:\Users\Alex\Documents\Arduino\libraries\esp8266-oled-ssd1306-master\src\OLEDDisplay.cpp line 928
0x4020c883: strtok at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/string/strtok.c line 102
0x40205c2f: OLEDDisplay::drawString(short, short, String) at C:\Users\Alex\Documents\Arduino\libraries\esp8266-oled-ssd1306-master\src\OLEDDisplay.cpp line 512
0x402066b0: String::copy(char const*, unsigned int) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\WString.cpp line 211
0x402066f0: String::String(char const*) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\WString.cpp line 36
0x402012a0: onMqttConnect(bool) at C:\Users\Alex\Documents\Arduino\FullyFeatured-ESP8266/FullyFeatured-ESP8266.ino line 58
0x402084d4: _umm_free(void*) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\umm_malloc\umm_malloc.cpp line 1304
0x402088fc: free(void*) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\umm_malloc\umm_malloc.cpp line 1764
0x40210d9a: operator delete(void*) at ../../../../../dl/gcc-xtensa/libstdc++-v3/libsupc++/del_op.cc line 48
0x40208c11: std::_Function_handler ::_M_invoke(std::_Any_data const&, bool) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2073
0x40203408: AsyncMqttClient::_onConnAck(bool, unsigned char) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2174
0x402011c8: onMqttConnect(bool) at C:\Users\Alex\Documents\Arduino\FullyFeatured-ESP8266/FullyFeatured-ESP8266.ino line 42
0x40208c18: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x40208c04: std::_Function_handler ::_M_invoke(std::_Any_data const&, bool) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x40208e91: std::_Function_handler (AsyncMqttClient*, std::_Placeholder1>, std::_Placeholder2>)> >::_M_invoke(std::_Any_data const&, bool, unsigned char) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2073
0x402042f0: AsyncMqttClientInternals::ConnAckPacket::parseVariableHeader(char*, unsigned int, unsigned int*) at C:\Users\Alex\Documents\Arduino\libraries\async-mqtt-client-master\src\AsyncMqttClient\Packets\ConnAckPacket.cpp line 25
0x4020336d: AsyncMqttClient::_onData(AsyncClient*, char*, unsigned int) at C:\Users\Alex\Documents\Arduino\libraries\async-mqtt-client-master\src\AsyncMqttClient.cpp line 437
0x4020241c: std::_Function_base::_Base_manager (AsyncMqttClient*, std::_Placeholder1>, std::_Placeholder2>)> >::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 1931
0x40208e6c: std::_Function_handler (AsyncMqttClient*, std::_Placeholder1>, std::_Placeholder2>)> >::_M_invoke(std::_Any_data const&, bool, unsigned char) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x40100ba4: millis() at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_wiring.cpp line 186
0x40215a29: tcp_output_alloc_header_common at core/tcp_out.c line 1825
0x402033b4: std::_Function_handler ::_M_invoke(const std::_Any_data &, void *, AsyncClient *, void *, unsigned int) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2073
0x40205054: AsyncClient::_recv(tcp_pcb*, pbuf*, long) at C:\Users\Alex\Documents\Arduino\libraries\ESPAsyncTCP-master\src\ESPAsyncTCP.cpp line 420
0x402088fc: free(void*) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\umm_malloc\umm_malloc.cpp line 1764
0x40205098: AsyncClient::_s_recv(void*, tcp_pcb*, pbuf*, long) at C:\Users\Alex\Documents\Arduino\libraries\ESPAsyncTCP-master\src\ESPAsyncTCP.cpp line 498
0x40214828: tcp_input at core/tcp_in.c line 501
0x40100e60: pvPortMalloc(size_t, char const*, int) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\heap.cpp line 155
0x40208718: malloc(size_t) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\umm_malloc\umm_malloc.cpp line 1677
0x40210000: _fclose_r at /home/earle/src/esp-quick-toolchain/repo/newlib/newlib/libc/stdio/fclose.c line 108
0x40219515: ip4_input at core/ipv4/ip4.c line 710
0x402084d4: _umm_free(void*) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\umm_malloc\umm_malloc.cpp line 1304
0x402114fd: ethernet_input_LWIP2 at netif/ethernet.c line 188
0x40211333: esp2glue_ethernet_input at glue-lwip/lwip-git.c line 441
0x4023055a: ethernet_input at glue-esp/lwip-esp.c line 363
0x4023056b: ethernet_input at glue-esp/lwip-esp.c line 371
0x40208967: run_scheduled_functions() at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\Schedule.cpp line 70
0x40206b2f: loop_wrapper() at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 126
0x40208c80: std::_Function_handler ::_M_invoke(std::_Any_data const&, unsigned short) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x40205f18: HardwareSerial::write(unsigned char const*, unsigned int) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/HardwareSerial.h line 158
0x40208c80: std::_Function_handler ::_M_invoke(std::_Any_data const&, unsigned short) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x40208c94: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x402061a9: Print::write(char const*) at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266/Print.h line 60
0x40208c80: std::_Function_handler ::_M_invoke(std::_Any_data const&, unsigned short) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x40208c94: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x40208c80: std::_Function_handler ::_M_invoke(std::_Any_data const&, unsigned short) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x40208c94: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x402010d2: connectToWifi() at C:\Users\Alex\Documents\Arduino\FullyFeatured-ESP8266/FullyFeatured-ESP8266.ino line 24
0x40208c94: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x4020174c: setup() at C:\Users\Alex\Documents\Arduino\FullyFeatured-ESP8266/FullyFeatured-ESP8266.ino line 129
0x40201164: onMqttPublish(unsigned short) at C:\Users\Alex\Documents\Arduino\FullyFeatured-ESP8266/FullyFeatured-ESP8266.ino line 101
0x40208c94: std::_Function_base::_Base_manager ::_M_manager(std::_Any_data&, std::_Any_data const&, std::_Manager_operation) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 1934
0x40208c80: std::_Function_handler ::_M_invoke(std::_Any_data const&, unsigned short) at c:\users\alex\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9\xtensa-lx106-elf\include\c++\4.8.2/functional line 2069
0x40206a9d: esp_schedule() at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 95
0x40206b32: loop_wrapper() at C:\Users\Alex\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266\core_esp8266_main.cpp line 127
used latest async mqtt example https://github.com/marvinroger/async-mqtt-client and latest esp8266-oled-ssd1306
code: https://gist.github.com/CyanoFresh/eb136c10fcca285fcb346fb00afa61cc
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
When i call void refresh_Display() { display_D.clear(); display_D.setFont(ArialMT_Plain_16); display_D.setTextAlignment(TEXT_ALIGN_LEFT); display_D.drawString(0, 0, Display[0].riga_1); display_D.drawString(0, 27, Display[0].riga_2); display_D.drawString(0, 45, Display[0].riga_3); display_D.display(); }
Sometimes Arduino ide gives me the following error. With Arduino IDE v1.8.9 and ESP8266 2.5.0 and 2.4.2
Panic C:\Users\ronco\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\cores\esp8266\core_esp8266_main.cpp:103 __yield
ctx: sys sp: 3fffe970 end: 3fffffb0 offset: 01b0