arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.71k stars 4.72k forks source link

Going to "Configure Wifi" causes main loop hang and watchdog trigger #21492

Closed btsimonh closed 1 month ago

btsimonh commented 1 month ago

PROBLEM DESCRIPTION

On ESP32S3 with latest dev from web (http://ota.tasmota.com/tasmota32/tasmota32s3.bin) On ESP32cam with self build (pretty close to latest dev, but with cam and BLE enabled)

If you use the GUI to go to Configure Wifi, the main loop is hung until watchdog. Of course the browser will retry the menu....

I traced the backtrace back to watchdog code.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:
none
- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
(
logs from esp32cam with self-build firmware.  
Backtrace -> watchdog code
results on esp32s3 identical with latest firmware downloaded from webupgrade.
).

10:47:21.060 HTP: Configuration
10:47:21.200 web_sensor
10:47:21.738 CAM: avFPS 30.349480 jpg FS:5118(0) f:468 s:72
10:47:23.152 RSL: config = {"ip":"192.168.1.191","dn":"Tasmota","fn":["Tasmota",null,null,null,null,null,null,null],"hn":"tasmota-37F4C4-5316","mac":"7C9EBD37F4C4","md":"AITHINKER CAM","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"14.0.0.1","t":"tasmota_37F4C4","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":1,"lt_st":1,"bat":0,"dslp":0,"sho":[],"sht":[],"ver":1}
10:47:23.229 RSL: sensors = {"sn":{"Time":"2024-05-25T10:47:23"},"ver":1}
10:47:24.815 CAM: avFPS 32.499187 jpg FS:6144(0) f:568 s:72
10:47:25.386 HTP: Configure WiFi
10:47:25.434 WIF: Scanning...
10:47:27.892 CAM: avFPS 32.509754 jpg FS:5082(0) f:668 s:72

Backtrace: 
0x4008ea77:0x3ffbd7e0 
0x4013fc05:0x3ffbd800 
0x401c26db:0x3ffbd820

ELF file SHA256: a473d1bf458d1531

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:184
load:0x40078000,len:13244
ho 0 tail 12 room 4
load:0x40080400,len:4
load:0x40080404,len:2924
entry 0x40080570

00:00:00.002 HDW: ESP32-D0WDQ6 v1.0 (PSRAM)
00:00:00.057 UFS: FlashFS mounted with 280 kB free
00:00:00.074 CFG: Loaded from File, Count 153

TO REPRODUCE

Steps to reproduce the behavior: Visit Configure Wifi in a browser

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen. I should be able to configure the wifi - the device should not crash

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here. Console "wifiscan 1" does not hang, and shows valid results.

(Please, remember to close the issue when the problem has been addressed)