mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #329] Crash when using WiFiManagerParameter #274
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#274
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 @daniftodi on GitHub (Mar 5, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/329
Hi,
When using WiFiManager with custom parameters, when connecting to AP and trying to access configuration page, my devices restarts ( ESP-12-F ), here is the serial output:
BM29 is the last Wifi network indentified by WiFiManager and I think before this, custom parameters are rendered.
Here is the source code that I'm using:
Help me please figure what is wrong with my code and what should I do.
@rkoptev commented on GitHub (Sep 9, 2017):
Having the same issue.
Here is my code:
It lloks like WiFiManagr consumes too much RAM:
Fatal exception 29(StoreProhibitedCause):
epc1=0x4000e1c3, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000018, depc=0x00000000
Exception (29):
epc1=0x4000e1c3 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000018 depc=0x00000000
ctx: sys
sp: 3ffffc80 end: 3fffffb0 offset: 01a0
Here is the output from ESP exception decoder:
Decoding 19 results
0x4021dc5d: wpa_receive at ?? line ?
0x4021db9a: wpa_receive at ?? line ?
0x4021dcf8: wpa_receive at ?? line ?
0x401004f4: calloc at C:\Users\Ruslan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\umm_malloc/umm_malloc.c line 1684
0x4021aa4f: chm_end_op at ?? line ?
0x4021a921: chm_init at ?? line ?
0x402113a1: esf_buf_setup at ?? line ?
0x40211393: esf_buf_setup at ?? line ?
0x40211418: esf_buf_setup at ?? line ?
0x401068c4: __divsf3_aux at d:\ivan\projects\arduinoesp\toolchain\dl\gcc-xtensa\build-2\xtensa-lx106-elf\libgcc/../../../libgcc/config/xtensa/ieee754-sf.S line 915
0x401004d8: malloc at C:\Users\Ruslan\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266\umm_malloc/umm_malloc.c line 1664
0x40221eb9: rijndaelEncrypt at ?? line ?
0x4021a1b9: sta_input at ?? line ?
0x40215624: ieee80211_setup_basic_htrates at ?? line ?
0x40215256: ieee80211_ht_node_cleanup at ?? line ?
0x40214ba3: hostap_input at ?? line ?
0x402113a7: esf_buf_setup at ?? line ?
@tablatronix commented on GitHub (Sep 9, 2017):
what branch ?
which esp core?
@rkoptev commented on GitHub (Sep 9, 2017):
I'm using ESP12E module from AI-Thinker. In Arduino IDE I selected NodeMCU 1.0(ESP-12E module)
What wifimanager branch or release?
@tablatronix commented on GitHub (Sep 9, 2017):
Oops I edited your post
What version branch of wifimanager?
@rkoptev commented on GitHub (Sep 9, 2017):
As mentioned in library.properties file: version=0.12
Basically, the last version
@tablatronix commented on GitHub (Sep 9, 2017):
Ok cause I think they all say the same
Making sure you are not using dev or kentaylor branch forks
Ill see if i can reproduce
@rkoptev commented on GitHub (Sep 13, 2017):
It seems that I managed to make some progress in solving this problem. I began to disable the libraries in my sketch in turn. WiFiManager started working correctly after I disabled SoftwareSerial library that I use to recieve data from GPS sensor.
I assumed that the matter is in timers or interrupts. Perhaps interrupts that are used in esp SoftwareSerial library to get data from the sensor prevent the work of the WiFiManager. I analyzed this library, and found out that when creating an softserial object, constructor calls enableRx() method that calls this:
attachInterrupt(m_rxPin, ISRList[m_rxPin], m_invert ? RISING : FALLING);I can not be sure, but it seems to me that this was the main problem. In any case, I managed to solve this problem by calling enableRx(0) before starting WiFiManager.
@tablatronix commented on GitHub (Sep 13, 2017):
Also make sure you are never doing work inside an interrupt, instead use flag states or some other way,