mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #514] crash on wemos and sample firmware #430
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#430
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
ets Jan 8 2013,rst cause:2, boot mode:(1,7)
ets Jan 8 2013,rst cause:4, boot mode:(1,7)
wdt reset
@tablatronix commented on GitHub (Feb 12, 2018):
Use development branch
@tablatronix commented on GitHub (Feb 12, 2018):
Can you try decoding the exception with the arduino tool?
@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
ets Jan 8 2013,rst cause:2, boot mode:(1,6)
ets Jan 8 2013,rst cause:4, boot mode:(1,6)
wdt reset
@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?
@pat1 commented on GitHub (Feb 12, 2018):
@tablatronix commented on GitHub (Feb 13, 2018):
I mean esp stable or staging
@pat1 commented on GitHub (Feb 13, 2018):
esp git version master branch up-to-date
@tablatronix commented on GitHub (Feb 13, 2018):
reproduced, seems to be
server.reset();
causing this
@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.
@tablatronix commented on GitHub (Feb 13, 2018):
ok got another one, so it is probably a memory or race condition
@tablatronix commented on GitHub (Feb 13, 2018):
this code is new
maybe try removing it and see if it helps ?
@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
@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
@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
@jp112sdl commented on GitHub (Feb 14, 2018):
Works for me! Thanks!
@tablatronix commented on GitHub (Feb 15, 2018):
Good news this has been fixed in core