kakopappa / arduino-esp8266-alexa-multiple-wemo-switch

multiple belkin wemos switch emulator using ESP8266
https://sinric.pro
MIT License
307 stars 197 forks source link

Exception (9) #19

Open bryanberger opened 7 years ago

bryanberger commented 7 years ago

Got this working on my NodeMCU v2 ESP 12-E module but every so often I get an Exception and the NodeMCU crashes.

here is the stack trace

Exception (9):
epc1=0x40202047 epc2=0x00000000 epc3=0x00000000 excvaddr=0x73626577 depc=0x00000000

ctx: cont 
sp: 3fff07b0 end: 3fff0990 offset: 01a0

>>>stack>>>
3fff0950:  3fffdad0 00000000 3ffef7b0 3ffef968  
3fff0960:  3fffdad0 00000000 3ffef7b0 40202aec  
3fff0970:  3fffdad0 00000000 3ffef960 40206c10  
3fff0980:  feefeffe feefeffe 3ffef970 40100718  
<<<stack<<<
⸮⸮P9⸮⸮

here is the decoded stack trace

Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address
Decoding 4 results
0x40202047: Switch::serverLoop() at /var/folders/7s/dpy0prln67z0_gc91jrggncm0000gn/T/arduino_build_357420/sketch/Switch.cpp line 36
0x40202aec: setup at /Users/BB/development/arduino-esp8266-alexa-multiple-wemo-switch/wemos/wemos.ino line 50
0x40206c10: __yield at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_main.cpp line 56
0x40100718: cont_norm at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/cont.S line 109

Also get this one sometimes as well


Exception 9: LoadStoreAlignmentCause: Load or store to an unaligned address
Decoding 33 results
0x401050f1: ets_timer_disarm at ?? line ?
0x4020cd47: pm_post at ?? line ?
0x4021d4b2: system_get_os_print at ?? line ?
0x4021d65b: system_restart_local at ?? line ?
0x40201981: __wrap_system_restart_local at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_postmortem.c line 190
0x4010164a: pp_post at ?? line ?
0x40106afc: delayMicroseconds at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_wiring.c line 74
0x40201997: __wrap_system_restart_local at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_postmortem.c line 190
0x40201994: __wrap_system_restart_local at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_postmortem.c line 190
0x40104927: lmacRxDone at ?? line ?
0x401024ec: trc_NeedRTS at ?? line ?
0x40202047: Switch::serverLoop() at /var/folders/7s/dpy0prln67z0_gc91jrggncm0000gn/T/arduino_build_357420/sketch/Switch.cpp line 36
0x40103891: lmacProcessTXStartData at ?? line ?
0x40234830: sleep_reset_analog_rtcreg_8266 at ?? line ?
0x40202047: Switch::serverLoop() at /var/folders/7s/dpy0prln67z0_gc91jrggncm0000gn/T/arduino_build_357420/sketch/Switch.cpp line 36
0x4021c407: user_uart_wait_tx_fifo_empty at ?? line ?
0x40202047: Switch::serverLoop() at /var/folders/7s/dpy0prln67z0_gc91jrggncm0000gn/T/arduino_build_357420/sketch/Switch.cpp line 36
0x40104c27: wdt_feed at ?? line ?
0x40104c08: wdt_feed at ?? line ?
0x40202047: Switch::serverLoop() at /var/folders/7s/dpy0prln67z0_gc91jrggncm0000gn/T/arduino_build_357420/sketch/Switch.cpp line 36
0x40202047: Switch::serverLoop() at /var/folders/7s/dpy0prln67z0_gc91jrggncm0000gn/T/arduino_build_357420/sketch/Switch.cpp line 36
0x4020295c: loop at /Users/BB/development/arduino-esp8266-alexa-multiple-wemo-switch/wemos/wemos.ino line 58
0x4010020c: _umm_free at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/umm_malloc/umm_malloc.c line 1287
0x4020643c: String::changeBuffer(unsigned int) at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/WString.cpp line 519
0x4020648b: String::reserve(unsigned int) at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/WString.cpp line 519
0x4010020c: _umm_free at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/umm_malloc/umm_malloc.c line 1287
0x4010068c: free at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/umm_malloc/umm_malloc.c line 1733
0x402063e0: String::~String() at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/WString.cpp line 519
0x40202885: UpnpBroadcastResponder::serverLoop() at /var/folders/7s/dpy0prln67z0_gc91jrggncm0000gn/T/arduino_build_357420/sketch/UpnpBroadcastResponder.cpp line 84
0x40202954: loop at /Users/BB/development/arduino-esp8266-alexa-multiple-wemo-switch/wemos/wemos.ino line 56
0x40206bec: loop_wrapper at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/core_esp8266_main.cpp line 56
0x40100718: cont_norm at /Users/BB/Library/Arduino15/packages/esp8266/hardware/esp8266/2.3.0/cores/esp8266/cont.S line 109

Sometimes it re-initializes sometimes it doesn't. Any idea what this error means?

Seems related to https://github.com/kakopappa/arduino-esp8266-alexa-multiple-wemo-switch/issues/13

kakopappa commented 7 years ago

Not sure what's causing it. you try this https://bitbucket.org/xoseperez/fauxmoesp . does it work?

bryanberger commented 7 years ago

@kakopappa cloned fauxmoesp and it seems to be working, no hiccups yet, thanks for the suggestion!