-->
Page 1 of 1

Feather ESP8266 as web server makes it crash!

PostPosted: Fri Jun 10, 2016 12:46 am
by JJussi
Hi!
I have programmed this code :
https://github.com/SensorsIot/Internet- ... th-ESP8266
to my Feather ESP8266 Wifi (with little changes, like enabling admin mode).

I can easily connect to that "ESP" AP, but problems starts when I'm requesting (GET) web page... What ever I request, my Feather crashes and watchdoc is resetting the system.

Code: Select allStarting ESP8266
Setting default parameters
Writing Config
Current Direction 0
HTTP server started
send_network_configuration_html
style.css

Exception (3):
epc1=0x4000bef4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4023ad8a depc=0x00000000

ctx: cont
sp: 3fff14b0 end: 3fff17c0 offset: 01a0

>>>stack>>>
3fff1650:  3ffe89bf 00000001 3fff1690 4020b405 
3fff1660:  00000001 00000001 3fff1690 4020b456 
3fff1670:  4023ad8a 0000000a 3fff06d8 4020ab44 
3fff1680:  3fff06b0 00000001 3fff29ac 40202bae 
3fff1690:  3fff3074 000006ef 000006e4 4010068c 
3fff16a0:  00000000 3fffc6fc 3fff29ac 40207bf2 
3fff16b0:  3fff29ac 3ffefce8 3fff29ac 40207c2e 
3fff16c0:  00000000 00000000 00000000 4020b534 
3fff16d0:  3fff29ac 3ffefce8 3ffefca8 40207cbd 
3fff16e0:  3fff245c 0000000f 0000000a 40206698 
3fff16f0:  3ffefce8 3fffdad0 3fff07a0 00000001 
3fff1700:  00000001 402071b8 00000010 4020b384 
3fff1710:  3ffe89c1 00000000 3fff176c 3fff0794 
3fff1720:  00000001 3ffefccc 3ffefca8 40207f23 
3fff1730:  3ffe89c1 00000000 3fff176c 4020b456 
3fff1740:  3ffe89c1 3fff304c 3fff06d8 4020b328 
3fff1750:  3ffe89c1 3ffefc6c 3ffefc2c 40204bd2 
3fff1760:  3ffefbb0 3fff06d8 3fff07a0 3fff2db4 
3fff1770:  0000000f 00000000 4020bdf8 3fff07a0 
3fff1780:  feefeffe feefeffe 3fff078d 3fff0794 
3fff1790:  3fffdad0 00000000 3fff078d 402058c8 
3fff17a0:  3fffdad0 00000000 3fff078d 4020be44 
3fff17b0:  feefeffe feefeffe 3fff07a0 40100718 
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x0f
csum 0x0f
~ld

Starting ESP8266


This same crash happens if I use that original code:
http://www.john-lassen.de/index.php/pro ... -webconfig

of course, this code don't have watchdog, so I need to press RST button my self...

Any idea how to "debug".. Or could my ESP8266 be somehow "faulty"?!?

Re: Feather ESP8266 as web server makes it crash!

PostPosted: Fri Jun 10, 2016 1:05 pm
by martinayotte
You should install the EspExceptionDecoder from https://github.com/me-no-dev/EspExceptionDecoder to get more meanful stacktrace where source files and line number will be displayed.

Re: Feather ESP8266 as web server makes it crash!

PostPosted: Sat Jun 11, 2016 3:13 am
by JJussi
Thank you!
Even I'm not sure that this result will help me much.. But will see!

Code: Select allDecoding 16 results
0x40206600: Print::println() at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/Print.cpp line 76
0x40235b95: sleep_reset_analog_rtcreg_8266 at ?? line ?
0x4020664c: Print::println(char const*) at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/Print.cpp line 76
0x402020ee: operator() at /var/folders/zx/54nzd7qs58v8mh36x505x0_r0000gp/T/buildf2b8fbee5900f089e786a92c3828e298.tmp/sketch/PAGE_NetworkConfiguration.h line 205
:  (inlined by) _M_invoke at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/functional line 2071
0x4010068c: free at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/umm_malloc/umm_malloc.c line 1731
0x40204b22: std::function ::operator()() const at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h line 53
0x40204b5e: FunctionRequestHandler::handle(ESP8266WebServer&, HTTPMethod, String) at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h line 53
0x40206b0c: String::String(String const&) at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/WString.cpp line 519
0x40204bed: ESP8266WebServer::_handleRequest() at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h line 53
0x402035f0: WiFiClient::~WiFiClient() at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WiFi/src/WiFiClient.cpp line 149
0x402040e8: FunctionRequestHandler::canHandle(HTTPMethod, String) at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h line 53
0x40204e53: ESP8266WebServer::handleClient() at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h line 53
0x402028a3: loop at /Volumes/Data/Users/jjussi/ownCloud/Documents/Arduino/ESP_WebConfig_Master/ESP_WebConfig_Master.ino line 196
0x40202110: operator() at /var/folders/zx/54nzd7qs58v8mh36x505x0_r0000gp/T/buildf2b8fbee5900f089e786a92c3828e298.tmp/sketch/PAGE_NetworkConfiguration.h line 205
:  (inlined by) _M_invoke at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/xtensa-lx106-elf/include/c++/4.8.2/functional line 2071
0x402070f4: loop_wrapper at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/core_esp8266_main.cpp line 43
0x40100718: cont_norm at /Volumes/Data/Users/jjussi/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/cores/esp8266/cont.S line 109