-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when using wifiManager.setAPStaticIPConfig() #1006
Comments
Use this commit and the readme on this repo to reproduce issue 1003 tzapu/WiFiManager#1003 This is the stack trace crash that we get once a client connects to the portal: PC: 0x00000000 EXCVADDR: 0x00000000 Decoding stack results 0x40121376: handle_dhcp at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/apps/dhcpserver/dhcpserver.c line 1031 0x4012e465: udp_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/udp.c line 401 0x4013346d: ip4_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c line 740 0x4013870a: ethernet_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/netif/ethernet.c line 184 0x40121d7f: tcpip_thread at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/tcpip.c line 135 0x40088b7d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143 06:35:25.036 -> *WM: [3] allocating params bytes: 20 06:35:25.036 -> *WM: [2] Added Parameter: wifi_pass 06:35:25.036 -> *WM: [2] Added Parameter: mqtt_server 06:35:25.036 -> *WM: [2] Added Parameter: mqtt_port 06:35:25.036 -> *WM: [2] Added Parameter: mqtt_username 06:35:25.036 -> *WM: [2] Added Parameter: mqtt_password 06:35:25.036 -> *WM: [3] Updated _max_params: 10 06:35:25.036 -> *WM: [3] re-allocating params bytes: 40 06:35:25.036 -> *WM: [2] Added Parameter: mqtt_topic 06:35:25.036 -> *WM: [1] Free heap: 263960 06:35:25.036 -> *WM: [1] ESP-IDF version: v3.2.3-14-gd3e562907 06:35:25.036 -> *WM: [2] Starting Config Portal 06:35:25.036 -> *WM: [3] WIFI station disconnect 06:35:25.036 -> *WM: [3] WiFi station enable 06:35:25.036 -> *WM: [2] Disabling STA 06:35:25.036 -> *WM: [2] Enabling AP 06:35:25.036 -> *WM: [1] StartAP with SSID: ESP32_3312CFA4 06:35:25.036 -> *WM: [1] Custom AP IP/GW/Subnet: 06:35:25.141 -> *WM: [2] AP has anonymous access! 06:35:25.141 -> *WM: [1] SoftAP Configuration 06:35:25.141 -> *WM: [1] -------------------- 06:35:25.141 -> *WM: [1] ssid: ESP32_3312CFA4 06:35:25.141 -> *WM: [1] password: 06:35:25.141 -> *WM: [1] ssid_len: 14 06:35:25.141 -> *WM: [1] channel: 1 06:35:25.141 -> *WM: [1] authmode: 06:35:25.141 -> *WM: [1] ssid_hidden: 06:35:25.141 -> *WM: [1] max_connection: 4 06:35:25.141 -> *WM: [1] country: CN 06:35:25.141 -> *WM: [1] beacon_interval: 100(ms) 06:35:25.141 -> *WM: [1] -------------------- 06:35:25.645 -> *WM: [1] AP IP address: 10.0.1.1 06:35:25.645 -> *WM: [3] setupConfigPortal 06:35:25.645 -> *WM: [1] Starting Web Portal 06:35:25.645 -> *WM: [3] dns server started with ip: 10.0.1.1 06:35:25.645 -> *WM: [2] HTTP server started 06:35:27.953 -> *WM: [2] WiFi Scan completed in 2303 ms 06:35:27.953 -> *WM: [2] Config Portal Running, blocking, waiting for clients... 06:35:40.189 -> dhcps: send_nak>>udp_sendto result 0 06:35:41.442 -> dhcps: send_offer>>udp_sendto result 0 06:35:42.544 -> Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled. 06:35:42.544 -> Core 0 register dump: 06:35:42.544 -> PC : 0x00000000 PS : 0x00060230 A0 : 0x80121379 A1 : 0x3ffb3f70 06:35:42.544 -> A2 : 0x3ffce5cc A3 : 0x3ffcf088 A4 : 0x3ffce848 A5 : 0x3ffce828 06:35:42.544 -> A6 : 0x0201000a A7 : 0x0c01000a A8 : 0x8012121c A9 : 0x3ffb3f30 06:35:42.544 -> A10 : 0x3ffce5dc A11 : 0x3ffcf088 A12 : 0x3ffb3f7c A13 : 0x00000044 06:35:42.544 -> A14 : 0x00000001 A15 : 0x00000006 SAR : 0x00000010 EXCCAUSE: 0x00000014 06:35:42.544 -> EXCVADDR: 0x00000000 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0x00000000 06:35:42.544 -> 06:35:42.544 -> Backtrace: 0x00000000:0x3ffb3f70 0x40121376:0x3ffb3fb0 0x4012e465:0x3ffb3fd0 0x4013346d:0x3ffb4010 0x4013870a:0x3ffb4030 0x40121d7f:0x3ffb4050 0x40088b7d:0x3ffb4080 06:35:42.544 -> 06:35:42.544 -> Rebooting... 06:35:42.580 -> ets Jun 8 2016 00:22:57 06:35:42.580 -> 06:35:42.580 -> rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
What happen if you use regular const or vars? Not defines. have you tried a plain sketch without wm ? |
The same issue happens when I use const, static or plain variables. See: flavio-fernandes/persistWifiSetting@17f485e
|
I am assuming you tried inline also? Ill try to test , in the meantime I am sure there is a example for static ip try that also as this exception seems to make it to the esp lib so see if its a esp bug |
You using arduino for idf? |
Wrong thread |
I can't really check right away but i'm on ESP8266 and i think i'm passing thru the same issue. |
Basic Infos
Hardware
WiFimanager Branch/Release:
Esp8266/Esp32:
Hardware: ESP-12e, esp01, esp25
ESP Core Version: 2.4.0, staging
Description
While trying to configure setAPStaticIPConfig using the following code:
I see the following exception as soon as my laptop connects to the portal:
This is what I see in the Serial output when it happens:
This is 100% reproducible. And it never happens if I avoid making the
wifiManager.setAPStaticIPConfig()
call.Settings in IDE
Arduino IDE 1.8.10
IDE setting here: https://imgur.com/a/JDwuLlt
WifiManager library, on branch
development
Additional libraries:
N/A
Please see flavio-fernandes/persistWifiSetting@879c848 for code used to make it happen.
The text was updated successfully, but these errors were encountered: