Skip to content
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

OnDemand AP fails with unhandled exception #1751

Open
kungfupizza opened this issue Jul 15, 2024 · 2 comments
Open

OnDemand AP fails with unhandled exception #1751

kungfupizza opened this issue Jul 15, 2024 · 2 comments

Comments

@kungfupizza
Copy link

Basic Infos

Hardware

WiFimanager Branch/Release: Master

Esp8266/Esp32:

Hardware: ESP32-s3

Core Version: 3.0.0, staging

Description

When running WM as an ESP-IDF task and putting the WM into OnDemandPortal when a button is pressed, gets me to an unhandled exception. Very much reproducable at my end.

Settings in IDE

Module: ESP32S3 M1

Additional libraries:

ESP IDF task

static void wtask(void *pvParameters)
{
	WiFi.mode(WIFI_STA);
	wm.setConfigPortalTimeout(30);
	wm.setHostname(PRJ_CONFIG_WIFI_MANAGER_HOSTNAME);
	wm.autoConnect();

	wm.setAPCallback(ap_start_cb);
	wm.setSaveConfigCallback(wifi_connected_cb);

	while (true)
	{
		wm.process();
		vTaskDelay(pdMS_TO_TICKS(100));
	}
}

on button press callback

static void wifiSetupModeCb(void)
{
  if (wm.getConfigPortalActive())
  {
	  wm.stopConfigPortal();
  }
  wm.setConfigPortalTimeout(30);
  wm.startConfigPortal();
}

NOTE: Instance of the class is defined as a static in the code
static WiFiManager wm;

Debug Messages

I (7074) wifi:mode : sta (f4:12:fa:86:76:08) + softAP (f4:12:fa:86:76:09)
I (7074) wifi:Total power save buffer number: 16
I (7075) wifi:Init max length of beacon: 752/752
I (7078) wifi:Init max length of beacon: 752/752
I (7085) esp_netif_lwip: DHCP server started on interface WIFI_AP_DEF with IP: 192.168.4.1
Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.

0x4203a411: WiFiManager::processConfigPortal() at <path>/WiFiManager.cpp:860

<path>/WiFiManager.cpp:860 points to

//HTTP handler
server->handleClient();

in the code

@tablatronix
Copy link
Collaborator

You should probably feed wdt in that loop

@kungfupizza
Copy link
Author

I bet the watchdog is turned off for this test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants