[GH-ISSUE #180] Crash on AutoConnectWithFSParameters #143

Closed
opened 2026-02-28 01:23:39 +03:00 by kerem · 4 comments
Owner

Originally created by @odilonafonso on GitHub (Jun 2, 2016).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/180

I tried to use this sample, without changes, got this error:

mounting FS...
mounted file system
reading config file
opened config file
{"serverName":"api.example.com","accessToken":"128du9as8du12eoue8da98h123ueh9h98"}
parsed json

Exception (28):
epc1=0x4000bf3c epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3fff0220 end: 3fff0520 offset: 01a0

>>>stack>>>
3fff03c0:  3fff0544 3fff1c80 3ffef43c 40206adb  
3fff03d0:  3ffe8fa8 00000000 000003e8 feefeffe  
3fff03e0:  3fff129c 3fff0de4 feefeffe feefeffe  
3fff03f0:  feefeffe feefeffe feefeffe feefeffe  
3fff0400:  feefeffe feefeffe feefeffe feefeffe  
3fff0410:  feefeffe feefeffe feefeffe feefeffe  
3fff0420:  feefeffe feefeffe feefeffe feefeffe  
3fff0430:  feefeffe feefeffe feefeffe feefeffe  
3fff0440:  feefeffe feefeffe feefeffe feefeffe  
3fff0450:  feefeffe feefeffe feefeffe feefeffe  
3fff0460:  feefeffe feefeffe feefeffe feefeffe  
3fff0470:  feefeffe feefeffe feefeffe 3ffe87e8  
3fff0480:  feefeffe 3fff1c74 00000200 feefeffe  
3fff0490:  feefeffe feefeffe feefeffe feefeffe  
3fff04a0:  feefeffe feefeffe feefeffe feefeffe  
3fff04b0:  feefeffe feefeffe feefeffe feefeffe  
3fff04c0:  feefeffe feefeffe feefeffe feefeffe  
3fff04d0:  feefeffe feefeffe feefeffe feefeffe  
3fff04e0:  feefeffe feefeffe feefeffe feefeffe  
3fff04f0:  feefeffe feefeffe feefeffe 3ffef4f8  
3fff0500:  3fffdad0 00000000 3ffef4f0 4020e3b4  
3fff0510:  feefeffe feefeffe 3ffef500 40100718  
<<<stack<<<

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


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

wdt reset

Any suggestion ?
Thanks

Originally created by @odilonafonso on GitHub (Jun 2, 2016). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/180 I tried to use this sample, without changes, got this error: ``` mounting FS... mounted file system reading config file opened config file {"serverName":"api.example.com","accessToken":"128du9as8du12eoue8da98h123ueh9h98"} parsed json Exception (28): epc1=0x4000bf3c epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000 ctx: cont sp: 3fff0220 end: 3fff0520 offset: 01a0 >>>stack>>> 3fff03c0: 3fff0544 3fff1c80 3ffef43c 40206adb 3fff03d0: 3ffe8fa8 00000000 000003e8 feefeffe 3fff03e0: 3fff129c 3fff0de4 feefeffe feefeffe 3fff03f0: feefeffe feefeffe feefeffe feefeffe 3fff0400: feefeffe feefeffe feefeffe feefeffe 3fff0410: feefeffe feefeffe feefeffe feefeffe 3fff0420: feefeffe feefeffe feefeffe feefeffe 3fff0430: feefeffe feefeffe feefeffe feefeffe 3fff0440: feefeffe feefeffe feefeffe feefeffe 3fff0450: feefeffe feefeffe feefeffe feefeffe 3fff0460: feefeffe feefeffe feefeffe feefeffe 3fff0470: feefeffe feefeffe feefeffe 3ffe87e8 3fff0480: feefeffe 3fff1c74 00000200 feefeffe 3fff0490: feefeffe feefeffe feefeffe feefeffe 3fff04a0: feefeffe feefeffe feefeffe feefeffe 3fff04b0: feefeffe feefeffe feefeffe feefeffe 3fff04c0: feefeffe feefeffe feefeffe feefeffe 3fff04d0: feefeffe feefeffe feefeffe feefeffe 3fff04e0: feefeffe feefeffe feefeffe feefeffe 3fff04f0: feefeffe feefeffe feefeffe 3ffef4f8 3fff0500: 3fffdad0 00000000 3ffef4f0 4020e3b4 3fff0510: feefeffe feefeffe 3ffef500 40100718 <<<stack<<< ets Jan 8 2013,rst cause:2, boot mode:(1,2) ets Jan 8 2013,rst cause:4, boot mode:(1,2) wdt reset ``` Any suggestion ? Thanks
kerem closed this issue 2026-02-28 01:23:40 +03:00
Author
Owner

@odilonafonso commented on GitHub (Jun 3, 2016):

After formatting, without crash

<!-- gh-comment-id:223601919 --> @odilonafonso commented on GitHub (Jun 3, 2016): After formatting, without crash
Author
Owner

@DavidTruyens commented on GitHub (Jul 30, 2017):

Hi @odilonafonso, @tzapu,

I have the same issue. And it works again after formatting. But if I push the reset button with formatting turned off it crashes again.

I'm using an Adafruit Huzzah with the HTTPRedirect from @electronicsguy.

<!-- gh-comment-id:318926613 --> @DavidTruyens commented on GitHub (Jul 30, 2017): Hi @odilonafonso, @tzapu, I have the same issue. And it works again after formatting. But if I push the reset button with formatting turned off it crashes again. I'm using an Adafruit Huzzah with the HTTPRedirect from @electronicsguy.
Author
Owner

@nhaduy99 commented on GitHub (Jul 31, 2017):

Hi, I had the same problem. I have a solution that:
This is due to the FS parameter problem at the beginning after resetting the ESp8266, the WifimanagerFSparameter.ino file firstly will read the JSON file which has already saved in FS memory. When you fist program to a new ESP, FS file has no JSON file in its FS memory, then it causes error like that.
To solve that problem I did following steps:
Step 1: You have to reprograme again but commented out the 4 lines (In my program I added 4 parameters and the ESP will check and read them in FS at the beginning, other parts is good to let it be) We commented out to let the ESP ignore it to prevent the error.
image

Step 2: Then you will get no error any more, get into the WiFi Configuration and add values for 4 parameters. Check if the FS is saved all parameter or not. But this time when you reset the ESP it will not read the 4 parameters because you have commented the 4 lines above.

Step 3: After ESP saved the parameter successfully, then you un-commented these 4 lines again and upload the code 1 more time to make the ESP read the FS at the beginning.
Then next time you will get no error until you want to add new parameters (or change the name of parameters)
That's it, the problem solved for me. How about you, please comment is issue your result.

Regards
Seppy

<!-- gh-comment-id:318956310 --> @nhaduy99 commented on GitHub (Jul 31, 2017): Hi, I had the same problem. I have a solution that: This is due to the FS parameter problem at the beginning after resetting the ESp8266, the WifimanagerFSparameter.ino file firstly will read the JSON file which has already saved in FS memory. When you fist program to a new ESP, FS file has no JSON file in its FS memory, then it causes error like that. To solve that problem I did following steps: Step 1: You have to reprograme again but commented out the 4 lines (In my program I added 4 parameters and the ESP will check and read them in FS at the beginning, other parts is good to let it be) We commented out to let the ESP ignore it to prevent the error. ![image](https://user-images.githubusercontent.com/6198026/28761120-9bb9fa0c-75d6-11e7-9206-b1ec63f5abff.png) Step 2: Then you will get no error any more, get into the WiFi Configuration and add values for 4 parameters. Check if the FS is saved all parameter or not. But this time when you reset the ESP it will not read the 4 parameters because you have commented the 4 lines above. Step 3: After ESP saved the parameter successfully, then you un-commented these 4 lines again and upload the code 1 more time to make the ESP read the FS at the beginning. Then next time you will get no error until you want to add new parameters (or change the name of parameters) That's it, the problem solved for me. How about you, please comment is issue your result. Regards Seppy
Author
Owner

@DavidTruyens commented on GitHub (Jul 31, 2017):

Hi @nhaduy99 ,

seems to work! I'll do some more testing soon.

Thanks for your reaction!

<!-- gh-comment-id:319074119 --> @DavidTruyens commented on GitHub (Jul 31, 2017): Hi @nhaduy99 , seems to work! I'll do some more testing soon. Thanks for your reaction!
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#143
No description provided.