mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 09:05:56 +03:00
[GH-ISSUE #502] Exception 28: LoadProhibited when running Wifi Scan in Dev-Version #420
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#420
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 @thomsenle on GitHub (Feb 5, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/502
Hey,
very cool to see the development of the wifimanger.
I played around a little with the development version and always get a Exeption 28 when i run the Webportal permanent.
My main loop only consists out of
if (!webportalrunning) { wifiManager.startWebPortal(); webportalrunning = true; } else wifiManager.process();In the debug i can see that its scans for the networks and then crashes and reboots. Unfortunatly i have no idea where to start searching for the error.
I allready errased the flash totaly as suggested in a other issue. No change for me.
Thanks for your help, Thomas
Please let me know if you need more debug informations for testing.
Debug output:
*WM: Starting Web Portal
*WM: HTTP server started
*WM: <- HTTP Wifi
*WM: Scan done
*WM: DUP AP: FRITZ!Box Fon WLAN 7270
*WM: DUP AP: Vodafone Hotspot
*WM: DUP AP: Vodafone Hotspot
*WM: DUP AP: Vodafone Hotspot
*WM: DUP AP: Vodafone Hotspot
*WM: DUP AP: Vodafone Homespot
*WM: DUP AP: Vodafone Homespot
*WM: DUP AP: Vodafone Homespot
*WM: DUP AP: Vodafone Homespot
*WM: AP: -57 boingboing
*WM: AP: -59 FRITZ!Box Fon WLAN 7270
*WM: AP: -67 Fritzbox-0815
*WM: AP: -67 Hallo Gast! WLAN
*WM: AP: -69 WLAN-B8BAHX
*WM: AP: -69 Telekom_FON
*WM: AP: -80 KabelBox-3760
*WM: AP: -80 Vodafone Hotspot
*WM: AP: -80 Vodafone Homespot
*WM: AP: -82 FRITZ!Box 6490 Cable
*WM: AP: -82 TP-LINK_AC1A06
*WM: AP: -87 NETGEAR88
*WM: AP: -88 KabelBox-364C
*WM: AP: -89 TP-LINK_B732
*WM: AP: -89 HITRON-3420
*WM: AP: -90 gaensebluemchen
*WM: AP: -91 Netzwerk_KW1509
*WM: AP: -92 vdr.fische.leipzig
Stack-Trace:
Exception (28):
epc1=0x402151f0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000001 depc=0x00000000
ctx: cont
sp: 3fff1080 end: 3fff1450 offset: 01a0
@tablatronix commented on GitHub (Feb 5, 2018):
Do you have a full sketch or can reproduce with example ?
Ill test when I can
@thomsenle commented on GitHub (Feb 5, 2018):
Yes, im running the following code with the artnet-lib made by rstephan.
https://github.com/rstephan/ArtnetWifi
Used Version of the ESP8266 stuff for the IDE is 2.4.0-rc2.
`
/*
Example, transmit all received ArtNet messages (DMX) out of the serial port in plain text.
Stephan Ruloff 2016
https://github.com/rstephan
*/
#if defined(ARDUINO_ARCH_ESP32)
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
#include <WiFiUdp.h>
#include <ArtnetWifi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
bool webportalrunning = false;
WiFiManager wifiManager;
WiFiUDP UdpSend;
ArtnetWifi artnet;
void onDmxFrame(uint16_t universe, uint16_t length, uint8_t sequence, uint8_t* data)
{
boolean tail = false;
Serial.print("DMX: Univ: ");
Serial.print(universe, DEC);
Serial.print(", Seq: ");
Serial.print(sequence, DEC);
Serial.print(", Data (");
Serial.print(length, DEC);
Serial.print("): ");
if (length > 16) {
length = 16;
tail = true;
}
// send out the buffer
for (int i = 0; i < length; i++)
{
Serial.print(data[i], HEX);
Serial.print(" ");
}
if (tail) {
Serial.print("...");
}
Serial.println();
}
void setup()
{
// put your setup code here, to run once:
Serial.begin(115200);
//WiFiManager
//Local intialization. Once its business is done, there is no need to keep it around
WiFiManager wifiManager;
//reset saved settings
//wifiManager.resetSettings();
//set custom ip for portal
//wifiManager.setAPStaticIPConfig(IPAddress(10,0,1,1), IPAddress(10,0,1,1), IPAddress(255,255,255,0));
//fetches ssid and pass from eeprom and tries to connect
//if it does not connect it starts an access point with the specified name
//here "AutoConnectAP"
//and goes into a blocking loop awaiting configuration
wifiManager.autoConnect("AutoConnectAP");
//or use this for auto generated name ESP + ChipID
//wifiManager.autoConnect();
//if you get here you have connected to the WiFi
Serial.println("connected...yeey :)");
artnet.setArtDmxCallback(onDmxFrame);
artnet.begin();
}
void loop()
{
if (!webportalrunning) {
wifiManager.startWebPortal();
webportalrunning = true;
} else wifiManager.process();
//artnet.read();
}
`
@tablatronix commented on GitHub (Feb 6, 2018):
cannot reproduce, you dont say which branch or board.
Try moving WiFiManager wifiManager to global
Also you can decode the exception in ardunio with the exception decoder tool
@MatteoGheza commented on GitHub (Oct 30, 2021):
Having the same error (on a TTGO-T).
My code is similar to the code in the issue.
Here's a decoded stacktrace:
Here that's the extended version of the code that triggered this error: https://github.com/josephdadams/TallyArbiter/blob/move_listener_clients/listener_clients/TTGO_T-listener/TTGO_T-listener.ino
I think that the bug could be in custom params reading.
PS: in this code WM is global