[GH-ISSUE #514] crash on wemos and sample firmware #430

Closed
opened 2026-02-28 01:25:15 +03:00 by kerem · 16 comments
Owner

Originally created by @pat1 on GitHub (Feb 12, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/514

I use wemos D1 mini and pro with Arduino core for ESP8266 git master branch and Lwip v2.
With my firmware and also with AutoConnect example I get Exception (3)

This is the tail trace for AutoConnect example with debug activated:

Request: /
Arguments:
WM: Handle root
New client
method: GET url: /wifisave search: s=pat1&p=mypassword
headerName: Host
headerValue: 192.168.4.1
headerName: Referer
headerValue: http://192.168.4.1/wifi?
headerName: User-Agent
headerValue: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/605.1 (KHTML, like Gecko) Version/11.0 Safari/605.1
headerName: Accept
headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,
/*;q=0.8
headerName: Upgrade-Insecure-Requests
headerValue: 1
headerName: Accept-Encoding
headerValue: gzip, deflate
headerName: Accept-Language
headerValue: it-IT
headerName: Connection
headerValue: Keep-Alive
args: s=pat1&p=mypassword
args count: 2
pos 0=@ 1 &@ 6
arg 0 key: s value: pat1
pos 7=@ 8 &@ -1
arg 1 key: p value: mypassword
args count: 2
Request: /wifisave
Arguments: s=pat1&p=mypassword
*WM: WiFi save
*WM: Sent wifi save page
*WM: Connecting to new AP
*WM: Connecting as wifi client...
wifi evt: 2
wifi evt: 7
wifi evt: 7
wifi evt: 0
wifi evt: 3
*WM: Connection result:
*WM: 3

Exception (3):
epc1=0x4010044e epc2=0x00000000 epc3=0x00000000 excvaddr=0x40246804 depc=0x00000000

ctx: cont
sp: 3fff0ac0 end: 3fff0e90 offset: 01a0

stack>>>
3fff0c60: 00000100 40004aa0 00000100 003ff000
3fff0c70: 00000000 400042db 3fffc718 003ff000
3fff0c80: 3ffefd7c 0000036e 0000036e 4010020c
3fff0c90: 00000020 40248440 3fff2f24 401009a8
3fff0ca0: 3ffefd7c 0000031a 0000031a 4010020c
3fff0cb0: 00000000 00000000 3fff2104 4010053a
3fff0cc0: 00000000 00000000 3fff1ddc 4010099c
3fff0cd0: 3ffefd7c 00000300 3fff1ddc 4020a20c
3fff0ce0: 3ffefd7c 000002f3 3fff1ddc 40204f79
3fff0cf0: 00000000 00000000 3fff1de0 40211d33
3fff0d00: 00000000 3fff20f8 3fff2b54 00000000
3fff0d10: 00000000 00000000 3fff1ddc 4020501a
3fff0d20: 3fff1d2c 00000003 3fff1ddc 4020595f
3fff0d30: 40239e46 3ffefb58 3fff1ddc 402059cf
3fff0d40: 402027af 40245d2c 3fff0de0 4020a822
3fff0d50: 00000000 3ffefb58 3fff0de0 40208b40
3fff0d60: 00000000 00000000 00000000 00000000
3fff0d70: 00000000 00000000 3fff18dc 401009a8
3fff0d80: 3ffe97f0 40245d4d 3fff0dac 00000000
3fff0d90: 00000000 3ffe8a60 3fff0de0 40208bf5
3fff0da0: 00000000 00000000 00000000 00000000
3fff0db0: 00000000 00000000 3ffefda0 402091ec
3fff0dc0: 0001c200 00000000 3fff0de0 3ffefe60
3fff0dd0: 3fffdad0 00000000 3ffefda0 40202217
3fff0de0: 3fff1d6c 00000000 3ffe8a60 00000000
3fff0df0: 3fff2724 0000000f 00000004 3fff2744
3fff0e00: 0000000f 00000008 00000000 00000000
3fff0e10: 00008fa0 40107458 00000000 40107458
3fff0e20: 00000000 40107458 00000000 40107458
3fff0e30: 00000000 40107458 00000000 40107458
3fff0e40: 00000000 00000000 ffffffff fe000001
3fff0e50: 3ffe97f0 00000000 fe010035 00000000
3fff0e60: 00000000 0000000a 3fff2764 feefeffe
3fff0e70: feefeffe feefeffe 3ffefe58 4020a303
3fff0e80: feefeffe feefeffe 3ffefe70 40100a2c
<<<stack<<<

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

ets Jan 8 2013,rst cause:4, boot mode:(1,7)

wdt reset

Originally created by @pat1 on GitHub (Feb 12, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/514 I use wemos D1 mini and pro with Arduino core for ESP8266 git master branch and Lwip v2. With my firmware and also with AutoConnect example I get Exception (3) This is the tail trace for AutoConnect example with debug activated: Request: / Arguments: *WM: Handle root New client method: GET url: /wifisave search: s=pat1&p=mypassword headerName: Host headerValue: 192.168.4.1 headerName: Referer headerValue: http://192.168.4.1/wifi? headerName: User-Agent headerValue: Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/605.1 (KHTML, like Gecko) Version/11.0 Safari/605.1 headerName: Accept headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 headerName: Upgrade-Insecure-Requests headerValue: 1 headerName: Accept-Encoding headerValue: gzip, deflate headerName: Accept-Language headerValue: it-IT headerName: Connection headerValue: Keep-Alive args: s=pat1&p=mypassword args count: 2 pos 0=@ 1 &@ 6 arg 0 key: s value: pat1 pos 7=@ 8 &@ -1 arg 1 key: p value: mypassword args count: 2 Request: /wifisave Arguments: s=pat1&p=mypassword *WM: WiFi save *WM: Sent wifi save page *WM: Connecting to new AP *WM: Connecting as wifi client... wifi evt: 2 wifi evt: 7 wifi evt: 7 wifi evt: 0 wifi evt: 3 *WM: Connection result: *WM: 3 Exception (3): epc1=0x4010044e epc2=0x00000000 epc3=0x00000000 excvaddr=0x40246804 depc=0x00000000 ctx: cont sp: 3fff0ac0 end: 3fff0e90 offset: 01a0 >>>stack>>> 3fff0c60: 00000100 40004aa0 00000100 003ff000 3fff0c70: 00000000 400042db 3fffc718 003ff000 3fff0c80: 3ffefd7c 0000036e 0000036e 4010020c 3fff0c90: 00000020 40248440 3fff2f24 401009a8 3fff0ca0: 3ffefd7c 0000031a 0000031a 4010020c 3fff0cb0: 00000000 00000000 3fff2104 4010053a 3fff0cc0: 00000000 00000000 3fff1ddc 4010099c 3fff0cd0: 3ffefd7c 00000300 3fff1ddc 4020a20c 3fff0ce0: 3ffefd7c 000002f3 3fff1ddc 40204f79 3fff0cf0: 00000000 00000000 3fff1de0 40211d33 3fff0d00: 00000000 3fff20f8 3fff2b54 00000000 3fff0d10: 00000000 00000000 3fff1ddc 4020501a 3fff0d20: 3fff1d2c 00000003 3fff1ddc 4020595f 3fff0d30: 40239e46 3ffefb58 3fff1ddc 402059cf 3fff0d40: 402027af 40245d2c 3fff0de0 4020a822 3fff0d50: 00000000 3ffefb58 3fff0de0 40208b40 3fff0d60: 00000000 00000000 00000000 00000000 3fff0d70: 00000000 00000000 3fff18dc 401009a8 3fff0d80: 3ffe97f0 40245d4d 3fff0dac 00000000 3fff0d90: 00000000 3ffe8a60 3fff0de0 40208bf5 3fff0da0: 00000000 00000000 00000000 00000000 3fff0db0: 00000000 00000000 3ffefda0 402091ec 3fff0dc0: 0001c200 00000000 3fff0de0 3ffefe60 3fff0dd0: 3fffdad0 00000000 3ffefda0 40202217 3fff0de0: 3fff1d6c 00000000 3ffe8a60 00000000 3fff0df0: 3fff2724 0000000f 00000004 3fff2744 3fff0e00: 0000000f 00000008 00000000 00000000 3fff0e10: 00008fa0 40107458 00000000 40107458 3fff0e20: 00000000 40107458 00000000 40107458 3fff0e30: 00000000 40107458 00000000 40107458 3fff0e40: 00000000 00000000 ffffffff fe000001 3fff0e50: 3ffe97f0 00000000 fe010035 00000000 3fff0e60: 00000000 0000000a 3fff2764 feefeffe 3fff0e70: feefeffe feefeffe 3ffefe58 4020a303 3fff0e80: feefeffe feefeffe 3ffefe70 40100a2c <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(1,7) ets Jan 8 2013,rst cause:4, boot mode:(1,7) wdt reset
kerem closed this issue 2026-02-28 01:25:15 +03:00
Author
Owner

@tablatronix commented on GitHub (Feb 12, 2018):

Use development branch

<!-- gh-comment-id:365084378 --> @tablatronix commented on GitHub (Feb 12, 2018): Use development branch
Author
Owner

@tablatronix commented on GitHub (Feb 12, 2018):

Can you try decoding the exception with the arduino tool?

<!-- gh-comment-id:365085193 --> @tablatronix commented on GitHub (Feb 12, 2018): Can you try decoding the exception with the arduino tool?
Author
Owner

@pat1 commented on GitHub (Feb 12, 2018):

The trace below happen with WiFiManager development branch Lwip version 1.4 and debug disabled.
Decoding the exception is not so easy due to this bug:
https://github.com/me-no-dev/EspExceptionDecoder/issues/20

*WM: <- HTTP WiFi save
*WM: Method: POST
*WM: Sent wifi save page
*WM: Connecting save WiFi
*WM: Connecting as wifi client...
*WM: wifi station disconnect
*WM: Connecting to new AP
*WM: enableSTA PERSISTENT ON
*WM: connectTimeout not set, ESP waitForConnectResult...
*WM: Connection result: WL_CONNECTED
*WM: Connect to new AP SUCCESS

Exception (3):
epc1=0x4010010e epc2=0x00000000 epc3=0x00000000 excvaddr=0x4000e8d1 depc=0x00000000

ctx: cont
sp: 3fff0370 end: 3fff0760 offset: 01a0

stack>>>
3fff0510: 3fff38c4 3fff148c 0000e648 3fff392c
3fff0520: 3ffef64c 00003b2b 00003b2b 4010020c
3fff0530: 00000003 5e5f2888 5e5f2894 40100690
3fff0540: 3ffef64c 000001aa 000001aa 4020aa18
3fff0550: 3ffef64c 000001a0 3fff124c 40204994
3fff0560: 00000000 00000000 3fff1c7c 40100690
3fff0570: 00000003 3fff1cd0 3fff1c7c 00000000
3fff0580: 00000003 00000000 3fff124c 40204a46
3fff0590: 00000001 3fff1274 3fff124c 4020536b
3fff05a0: 40106c68 00000000 3fff124c 402053db
3fff05b0: 00000000 00000000 3fff0680 4020bb42
3fff05c0: 00000003 00000003 3fff0680 40207f37
3fff05d0: 00000000 00000003 3fff0680 4020912e
3fff05e0: 00000000 00000000 00000000 00000000
3fff05f0: 00000000 00000000 3fff0680 00000000
3fff0600: 00000000 00000000 3fff0680 40209cfd
3fff0610: 3ffe8d4f 402029a0 3fff0680 3ffe8b00
3fff0620: 00000000 00000001 3fff0680 40209da5
3fff0630: 00000000 00000000 00000000 00000000
3fff0640: 00000000 00000000 3fff0680 4020a734
3fff0650: 3ffef428 40248e15 3fff0680 40207c24
3fff0660: 0001c200 00000000 3ffef428 3ffef734
3fff0670: 3fffdad0 00000000 3ffef674 40202077
3fff0680: 3fff110c 00000000 40106dd8 00000000
3fff0690: 40106dd8 00000000 40106dd8 00000000
3fff06a0: 40106dd8 00000000 40106dd8 00000000
3fff06b0: 40106dd8 00000000 feefef35 3fff1924
3fff06c0: 0000000f 0000000d 3fff193c 0000000f
3fff06d0: 00000000 3fff1954 0000000f 00000004
3fff06e0: 3fff196c 0000000f 00000008 00000000
3fff06f0: 00000000 0001ea6d 0001ea75 00000001
3fff0700: ffffffff 01000001 00010100 feefef01
3fff0710: 3ffe8d4f 00000000 01000000 01000000
3fff0720: 0001de89 00000000 00000005 3fff1984
3fff0730: feefef01 3ffef674 00000000 00000000
3fff0740: feefeffe feefeffe 3ffef72c 4020b5c4
3fff0750: feefeffe feefeffe 3ffef740 40100710
<<<stack<<<

ets Jan 8 2013,rst cause:2, boot mode:(1,6)

ets Jan 8 2013,rst cause:4, boot mode:(1,6)

wdt reset

<!-- gh-comment-id:365088759 --> @pat1 commented on GitHub (Feb 12, 2018): The trace below happen with WiFiManager development branch Lwip version 1.4 and debug disabled. Decoding the exception is not so easy due to this bug: https://github.com/me-no-dev/EspExceptionDecoder/issues/20 *WM: <- HTTP WiFi save *WM: Method: POST *WM: Sent wifi save page *WM: Connecting save WiFi *WM: Connecting as wifi client... *WM: wifi station disconnect *WM: Connecting to new AP *WM: enableSTA PERSISTENT ON *WM: connectTimeout not set, ESP waitForConnectResult... *WM: Connection result: WL_CONNECTED *WM: Connect to new AP SUCCESS Exception (3): epc1=0x4010010e epc2=0x00000000 epc3=0x00000000 excvaddr=0x4000e8d1 depc=0x00000000 ctx: cont sp: 3fff0370 end: 3fff0760 offset: 01a0 >>>stack>>> 3fff0510: 3fff38c4 3fff148c 0000e648 3fff392c 3fff0520: 3ffef64c 00003b2b 00003b2b 4010020c 3fff0530: 00000003 5e5f2888 5e5f2894 40100690 3fff0540: 3ffef64c 000001aa 000001aa 4020aa18 3fff0550: 3ffef64c 000001a0 3fff124c 40204994 3fff0560: 00000000 00000000 3fff1c7c 40100690 3fff0570: 00000003 3fff1cd0 3fff1c7c 00000000 3fff0580: 00000003 00000000 3fff124c 40204a46 3fff0590: 00000001 3fff1274 3fff124c 4020536b 3fff05a0: 40106c68 00000000 3fff124c 402053db 3fff05b0: 00000000 00000000 3fff0680 4020bb42 3fff05c0: 00000003 00000003 3fff0680 40207f37 3fff05d0: 00000000 00000003 3fff0680 4020912e 3fff05e0: 00000000 00000000 00000000 00000000 3fff05f0: 00000000 00000000 3fff0680 00000000 3fff0600: 00000000 00000000 3fff0680 40209cfd 3fff0610: 3ffe8d4f 402029a0 3fff0680 3ffe8b00 3fff0620: 00000000 00000001 3fff0680 40209da5 3fff0630: 00000000 00000000 00000000 00000000 3fff0640: 00000000 00000000 3fff0680 4020a734 3fff0650: 3ffef428 40248e15 3fff0680 40207c24 3fff0660: 0001c200 00000000 3ffef428 3ffef734 3fff0670: 3fffdad0 00000000 3ffef674 40202077 3fff0680: 3fff110c 00000000 40106dd8 00000000 3fff0690: 40106dd8 00000000 40106dd8 00000000 3fff06a0: 40106dd8 00000000 40106dd8 00000000 3fff06b0: 40106dd8 00000000 feefef35 3fff1924 3fff06c0: 0000000f 0000000d 3fff193c 0000000f 3fff06d0: 00000000 3fff1954 0000000f 00000004 3fff06e0: 3fff196c 0000000f 00000008 00000000 3fff06f0: 00000000 0001ea6d 0001ea75 00000001 3fff0700: ffffffff 01000001 00010100 feefef01 3fff0710: 3ffe8d4f 00000000 01000000 01000000 3fff0720: 0001de89 00000000 00000005 3fff1984 3fff0730: feefef01 3ffef674 00000000 00000000 3fff0740: feefeffe feefeffe 3ffef72c 4020b5c4 3fff0750: feefeffe feefeffe 3ffef740 40100710 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(1,6) ets Jan 8 2013,rst cause:4, boot mode:(1,6) wdt reset
Author
Owner

@tablatronix commented on GitHub (Feb 12, 2018):

Thanks, this is on master? Ill try to reproduce, i have been using it all week with no problems.

Have you tried erasing flash with esptool?

<!-- gh-comment-id:365098573 --> @tablatronix commented on GitHub (Feb 12, 2018): Thanks, this is on master? Ill try to reproduce, i have been using it all week with no problems. Have you tried erasing flash with esptool?
Author
Owner

@pat1 commented on GitHub (Feb 12, 2018):

Thanks, this is on master?
as reported the first is on master the second on development branch.
for erasing flash I do not use esptool but SPIFFS.format() and wifiManager.resetSettings()

<!-- gh-comment-id:365104679 --> @pat1 commented on GitHub (Feb 12, 2018): > Thanks, this is on master? as reported the first is on master the second on development branch. for erasing flash I do not use esptool but SPIFFS.format() and wifiManager.resetSettings()
Author
Owner

@tablatronix commented on GitHub (Feb 13, 2018):

I mean esp stable or staging

<!-- gh-comment-id:365105521 --> @tablatronix commented on GitHub (Feb 13, 2018): I mean esp stable or staging
Author
Owner

@pat1 commented on GitHub (Feb 13, 2018):

esp git version master branch up-to-date

<!-- gh-comment-id:365106221 --> @pat1 commented on GitHub (Feb 13, 2018): esp git version master branch up-to-date
Author
Owner

@tablatronix commented on GitHub (Feb 13, 2018):

reproduced, seems to be
server.reset();
causing this

<!-- gh-comment-id:365122279 --> @tablatronix commented on GitHub (Feb 13, 2018): reproduced, seems to be server.reset(); causing this
Author
Owner

@tablatronix commented on GitHub (Feb 13, 2018):

Now I cannot reproduce, might be a combination of hardware or router beacons, there is a open issue that mentions this. I will keep looking into it and find time to decode my exceptions.

<!-- gh-comment-id:365351655 --> @tablatronix commented on GitHub (Feb 13, 2018): Now I cannot reproduce, might be a combination of hardware or router beacons, there is a open issue that mentions this. I will keep looking into it and find time to decode my exceptions.
Author
Owner

@tablatronix commented on GitHub (Feb 13, 2018):

ok got another one, so it is probably a memory or race condition

*WM: disconnect configportal
station: dc:0c:5c:e2:24:41 leave, AID = 1
rm 1wifi evt: 6

bcn 0
del if1
pm open,type:2 0
Fatal exception 3(LoadStoreErrorCause):
epc1=0x4010044e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40248488, depc=0x00000000

Exception (3):
epc1=0x4010044e epc2=0x00000000 epc3=0x00000000 excvaddr=0x40248488 depc=0x00000000

ctx: cont 
sp: 3fff0c80 end: 3fff10c0 offset: 01a0

>>>stack>>>
3fff0e20:  00000014 00000010 00000009 00000000  
3fff0e30:  3fff0e70 3fff0e70 00000004 4010020c  
3fff0e40:  4010137c 014007a9 3ffec5a4 00000000  
3fff0e50:  3ffea600 3ffec5a4 3ffec410 00000000  
3fff0e60:  00000000 013ee2b1 40245826 3ffec410  
3fff0e70:  00000000 00000000 3fff1c8c 4010053a  
3fff0e80:  40243a95 3ffeb778 3fff26cc 40100990  
3fff0e90:  3ffec9e0 40242c98 3fff26cc 40106d84  
3fff0ea0:  00000000 00000000 00000001 40242831  
3fff0eb0:  40217ce3 3fff20b4 00000000 00000000  
3fff0ec0:  3ffead30 4022dd60 3fff0f30 3ffeacf0  
3fff0ed0:  3ffeac78 00000000 00000000 3ffea544  
3fff0ee0:  3ffead2c 3ffead4c 00000000 4022deb7  
3fff0ef0:  3fff0f30 00000000 00000001 00000000  
3fff0f00:  00000001 4022de3f 3fff0f30 00000001  
3fff0f10:  00000000 4022dee2 3fff0fe0 00000000  
3fff0f20:  402075a6 00000001 00000000 3fff0eb1  
3fff0f30:  3fff1200 0000028b 0000028b 4010020c  
3fff0f40:  3fff12d8 00000000 3ffe9eec 4020bc40  
3fff0f50:  00000000 00000000 3fff2fc4 00000000  
3fff0f60:  00000001 4024a448 3fff0068 40201225  
3fff0f70:  3ffe9eec 00000000 3fff272c 4010099c  
3fff0f80:  00000001 3fff0068 3fff0fe0 402012fc  
3fff0f90:  00000001 00000000 3fff0fe0 40204654  
3fff0fa0:  00000001 00000000 3fff0fe0 4020494c  
3fff0fb0:  00000000 00000000 3fff0fe0 40206700  
3fff0fc0:  4020213c 00000000 3fff0fe0 3fff008c  
3fff0fd0:  3fffdad0 00000000 00000000 4020c1a6  
3fff0fe0:  00000000 00000000 3ffe9678 00000000  
3fff0ff0:  3ffe9678 00000000 3ffe9678 00000000  
3fff1000:  3ffe9678 00000000 3ffe9678 00000000  
3fff1010:  3ffe9678 00000000 feefef35 3fff28a4  
3fff1020:  0000000f 0000000a 3fff278c 0000000f  
3fff1030:  00000000 3fff27ac 0000000f 00000000  
3fff1040:  3fff2d14 0000000f 00000000 0001d4c0  
3fff1050:  00000000 00010532 00010532 00000003  
3fff1060:  ffffffff 01000001 00010100 40201201  
3fff1070:  3ffe9bbc 00000000 01000100 01000000  
3fff1080:  00010296 00000000 00000005 3fff2d34  
3fff1090:  00000001 3fff0068 00000000 00000000  
3fff10a0:  3fffdad0 00000000 3fff0084 40202164  
3fff10b0:  feefeffe feefeffe 3fff00a0 402032c8  
<<<stack<<<

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v00000000
Exception Cause: 3  [LoadStoreError: Processor internal physical address or data error during load or store]

0x4010044e: check_poison_block at umm_malloc.c:?
0x40248488: wdev_exit_sniffer at ??:?
0x4010044e: check_poison_block at umm_malloc.c:?
0x40248488: wdev_exit_sniffer at ??:?
0x4010020c: _umm_free at umm_malloc.c:?
0x4010137c: ets_timer_arm_new at ??:?
0x40245826: pp_enable_noise_timer at ??:?
0x4010053a: get_unpoisoned at umm_malloc.c:?
0x40243a95: pm_open at ??:?
0x40100990: free at ??:?
0x40242c98: ic_interface_is_p2p at ??:?
0x40106d84: vPortFree at ??:?
0x40242831: esf_buf_alloc at ??:?
0x40217ce3: wifi_softap_stop at ??:?
0x4022dd60: wifi_softap_get_config_default at ??:?
0x4022deb7: wifi_softap_get_config_default at ??:?
0x4022de3f: wifi_softap_get_config_default at ??:?
0x4022dee2: wifi_softap_get_config_default at ??:?
0x402075a6: ESP8266WiFiAPClass::softAP(char const*, char const*, int, int, int) at ??:?
0x4010020c: _umm_free at umm_malloc.c:?
0x4020bc40: WiFiServer::_s_accept(void*, tcp_pcb*, long) at ??:?
0x4024a448: chip_v6_unset_chanfreq at ??:?
0x40201225: Print::write(char const*) at ??:?
0x4010099c: free at ??:?
0x402012fc: Print::print(char const*) at ??:?
0x40204654: void WiFiManager::DEBUG_WM<__FlashStringHelper const*>(__FlashStringHelper const*) at ??:?
0x4020494c: WiFiManager::stopConfigPortal() at ??:?
0x40206700: WiFiManager::startConfigPortal(char const*, char const*) at ??:?
0x4020213c: loop_wrapper() at core_esp8266_main.cpp:?
0x4020c1a6: WiFiServer::write(unsigned char) at ??:?
0x40201201: Print::write(char const*) at ??:?
0x40202164: loop_wrapper() at core_esp8266_main.cpp:?
0x402032c8: cont_norm at cont.o:?
0x4010f000: ?? ??:0
<!-- gh-comment-id:365356666 --> @tablatronix commented on GitHub (Feb 13, 2018): ok got another one, so it is probably a memory or race condition ``` *WM: disconnect configportal station: dc:0c:5c:e2:24:41 leave, AID = 1 rm 1wifi evt: 6 bcn 0 del if1 pm open,type:2 0 Fatal exception 3(LoadStoreErrorCause): epc1=0x4010044e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x40248488, depc=0x00000000 Exception (3): epc1=0x4010044e epc2=0x00000000 epc3=0x00000000 excvaddr=0x40248488 depc=0x00000000 ctx: cont sp: 3fff0c80 end: 3fff10c0 offset: 01a0 >>>stack>>> 3fff0e20: 00000014 00000010 00000009 00000000 3fff0e30: 3fff0e70 3fff0e70 00000004 4010020c 3fff0e40: 4010137c 014007a9 3ffec5a4 00000000 3fff0e50: 3ffea600 3ffec5a4 3ffec410 00000000 3fff0e60: 00000000 013ee2b1 40245826 3ffec410 3fff0e70: 00000000 00000000 3fff1c8c 4010053a 3fff0e80: 40243a95 3ffeb778 3fff26cc 40100990 3fff0e90: 3ffec9e0 40242c98 3fff26cc 40106d84 3fff0ea0: 00000000 00000000 00000001 40242831 3fff0eb0: 40217ce3 3fff20b4 00000000 00000000 3fff0ec0: 3ffead30 4022dd60 3fff0f30 3ffeacf0 3fff0ed0: 3ffeac78 00000000 00000000 3ffea544 3fff0ee0: 3ffead2c 3ffead4c 00000000 4022deb7 3fff0ef0: 3fff0f30 00000000 00000001 00000000 3fff0f00: 00000001 4022de3f 3fff0f30 00000001 3fff0f10: 00000000 4022dee2 3fff0fe0 00000000 3fff0f20: 402075a6 00000001 00000000 3fff0eb1 3fff0f30: 3fff1200 0000028b 0000028b 4010020c 3fff0f40: 3fff12d8 00000000 3ffe9eec 4020bc40 3fff0f50: 00000000 00000000 3fff2fc4 00000000 3fff0f60: 00000001 4024a448 3fff0068 40201225 3fff0f70: 3ffe9eec 00000000 3fff272c 4010099c 3fff0f80: 00000001 3fff0068 3fff0fe0 402012fc 3fff0f90: 00000001 00000000 3fff0fe0 40204654 3fff0fa0: 00000001 00000000 3fff0fe0 4020494c 3fff0fb0: 00000000 00000000 3fff0fe0 40206700 3fff0fc0: 4020213c 00000000 3fff0fe0 3fff008c 3fff0fd0: 3fffdad0 00000000 00000000 4020c1a6 3fff0fe0: 00000000 00000000 3ffe9678 00000000 3fff0ff0: 3ffe9678 00000000 3ffe9678 00000000 3fff1000: 3ffe9678 00000000 3ffe9678 00000000 3fff1010: 3ffe9678 00000000 feefef35 3fff28a4 3fff1020: 0000000f 0000000a 3fff278c 0000000f 3fff1030: 00000000 3fff27ac 0000000f 00000000 3fff1040: 3fff2d14 0000000f 00000000 0001d4c0 3fff1050: 00000000 00010532 00010532 00000003 3fff1060: ffffffff 01000001 00010100 40201201 3fff1070: 3ffe9bbc 00000000 01000100 01000000 3fff1080: 00010296 00000000 00000005 3fff2d34 3fff1090: 00000001 3fff0068 00000000 00000000 3fff10a0: 3fffdad0 00000000 3fff0084 40202164 3fff10b0: feefeffe feefeffe 3fff00a0 402032c8 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d v00000000 ``` ``` Exception Cause: 3 [LoadStoreError: Processor internal physical address or data error during load or store] 0x4010044e: check_poison_block at umm_malloc.c:? 0x40248488: wdev_exit_sniffer at ??:? 0x4010044e: check_poison_block at umm_malloc.c:? 0x40248488: wdev_exit_sniffer at ??:? 0x4010020c: _umm_free at umm_malloc.c:? 0x4010137c: ets_timer_arm_new at ??:? 0x40245826: pp_enable_noise_timer at ??:? 0x4010053a: get_unpoisoned at umm_malloc.c:? 0x40243a95: pm_open at ??:? 0x40100990: free at ??:? 0x40242c98: ic_interface_is_p2p at ??:? 0x40106d84: vPortFree at ??:? 0x40242831: esf_buf_alloc at ??:? 0x40217ce3: wifi_softap_stop at ??:? 0x4022dd60: wifi_softap_get_config_default at ??:? 0x4022deb7: wifi_softap_get_config_default at ??:? 0x4022de3f: wifi_softap_get_config_default at ??:? 0x4022dee2: wifi_softap_get_config_default at ??:? 0x402075a6: ESP8266WiFiAPClass::softAP(char const*, char const*, int, int, int) at ??:? 0x4010020c: _umm_free at umm_malloc.c:? 0x4020bc40: WiFiServer::_s_accept(void*, tcp_pcb*, long) at ??:? 0x4024a448: chip_v6_unset_chanfreq at ??:? 0x40201225: Print::write(char const*) at ??:? 0x4010099c: free at ??:? 0x402012fc: Print::print(char const*) at ??:? 0x40204654: void WiFiManager::DEBUG_WM<__FlashStringHelper const*>(__FlashStringHelper const*) at ??:? 0x4020494c: WiFiManager::stopConfigPortal() at ??:? 0x40206700: WiFiManager::startConfigPortal(char const*, char const*) at ??:? 0x4020213c: loop_wrapper() at core_esp8266_main.cpp:? 0x4020c1a6: WiFiServer::write(unsigned char) at ??:? 0x40201201: Print::write(char const*) at ??:? 0x40202164: loop_wrapper() at core_esp8266_main.cpp:? 0x402032c8: cont_norm at cont.o:? 0x4010f000: ?? ??:0 ```
Author
Owner

@tablatronix commented on GitHub (Feb 13, 2018):

this code is new


  if (_params != NULL){
    DEBUG_WM(F("freeing allocated params!"));
    free(_params);
  }

maybe try removing it and see if it helps ?

<!-- gh-comment-id:365380449 --> @tablatronix commented on GitHub (Feb 13, 2018): this code is new ``` if (_params != NULL){ DEBUG_WM(F("freeing allocated params!")); free(_params); } ``` maybe try removing it and see if it helps ?
Author
Owner

@jp112sdl commented on GitHub (Feb 13, 2018):

I have the same issue also on an old version of WifiManager.

And I am also using a wemos D1 mini with Arduino core for ESP8266 git master branch.

server.reset() causes an exception.

It does not make a difference if I am using lwip2 or 1.4

<!-- gh-comment-id:365407916 --> @jp112sdl commented on GitHub (Feb 13, 2018): I have the same issue also on an old version of WifiManager. And I am also using a wemos D1 mini with Arduino core for ESP8266 git master branch. server.reset() causes an exception. It does not make a difference if I am using lwip2 or 1.4
Author
Owner

@tablatronix commented on GitHub (Feb 13, 2018):

yeah its weird it does not always do it for me, I wonder if it has to do with the socket still being in use..
If you can reproduce everytime, please give me a sketch, or revert esp core and see if you can identify when it broke.

https://github.com/esp8266/Arduino/issues/4361

Would be even better if you can use an example and remove wifimanager from the test entirely

<!-- gh-comment-id:365412897 --> @tablatronix commented on GitHub (Feb 13, 2018): yeah its weird it does not always do it for me, I wonder if it has to do with the socket still being in use.. If you can reproduce everytime, please give me a sketch, or revert esp core and see if you can identify when it broke. https://github.com/esp8266/Arduino/issues/4361 Would be even better if you can use an example and remove wifimanager from the test entirely
Author
Owner

@tablatronix commented on GitHub (Feb 14, 2018):

I was able to reproduce constantly and narrow it down

can you try this fix?

https://github.com/esp8266/Arduino/issues/4350

<!-- gh-comment-id:365480589 --> @tablatronix commented on GitHub (Feb 14, 2018): I was able to reproduce constantly and narrow it down can you try this fix? https://github.com/esp8266/Arduino/issues/4350
Author
Owner

@jp112sdl commented on GitHub (Feb 14, 2018):

Works for me! Thanks!

<!-- gh-comment-id:365499297 --> @jp112sdl commented on GitHub (Feb 14, 2018): Works for me! Thanks!
Author
Owner

@tablatronix commented on GitHub (Feb 15, 2018):

Good news this has been fixed in core

<!-- gh-comment-id:365813848 --> @tablatronix commented on GitHub (Feb 15, 2018): Good news this has been fixed in core
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#430
No description provided.