Closed btsimonh closed 1 month ago
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.
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
Configuration output here: 11:15:31.559 CMD: Backlog Template; Module; GPIO 255 11:15:31.561 SRC: WebConsole from 192.168.1.174 11:15:31.562 CMD: Grp 0, Cmd 'BACKLOG', Idx 1, Len 26, Pld -99, Data 'Template; Module; GPIO 255' 11:15:31.610 SRC: Backlog 11:15:31.614 CMD: Grp 0, Cmd 'TEMPLATE', Idx 1, Len 0, Pld -99, Data '' 11:15:31.619 RSL: RESULT = {"NAME":"ESP32S3-FNK085","GPIO":[1,1,1,1,5024,5056,5120,5152,5090,5089,5091,5088,5092,5184,1,4992,5095,5094,5093,1,1,1,0,0,0,0,0,8800,8832,8864,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":1} 11:15:31.816 SRC: Backlog 11:15:31.818 CMD: Grp 0, Cmd 'MODULE', Idx 1, Len 0, Pld -99, Data '' 11:15:31.819 RSL: RESULT = {"Module":{"0":"ESP32S3-FNK085"}} 11:15:32.019 SRC: Backlog 11:15:32.021 CMD: Grp 0, Cmd 'GPIO', Idx 1, Len 3, Pld 255, Data '255' 11:15:32.027 RSL: RESULT = {"GPIO0":{"0":"None"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"5024":"CAM_SIOD"},"GPIO5":{"5056":"CAM_SIOC"},"GPIO6":{"5120":"CAM_VSYNC"},"GPIO7":{"5152":"CAM_HREF"},"GPIO8":{"5090":"CAM_DATA"},"GPIO9":{"5089":"CAM_DATA"},"GPIO10":{"5091":"CAM_DATA"},"GPIO11":{"5088":"CAM_DATA"},"GPIO12":{"5092":"CAM_DATA"},"GPIO13":{"5184":"CAM_PCLK"},"GPIO14":{"0":"None"},"GPIO15":{"4992":"CAM_XCLK"},"GPIO16":{"5095":"CAM_DATA"},"GPIO17":{"5094":"CAM_DATA"},"GPIO18":{"5093":"CAM_DATA"},"GPIO19":{"0":"None"},"GPIO20":{"0":"None"},"GPIO21":{"0":"None"},"GPIO33":{"0":"None"},"GPIO34":{"0":"None"},"GPIO35":{"0":"None"},"GPIO36":{"0":"None"},"GPIO37":{"0":"None"},"GPIO38":{"8800":"SDIO CMD"},"GPIO39":{"8832":"SDIO CLK"},"GPIO40":{"8864":"SDIO D0"},"GPIO41":{"0":"None"},"GPIO42":{"0":"None"},"GPIO43":{"0":"None"},"GPIO44":{"0":"None"},"GPIO45":{"0":"None"},"GPIO46":{"0":"None"},"GPIO47":{"0":"None"},"GPIO48":{"1376":"WS28121"}} 11:15:34.620 BRY: GC from 24213 to 21479 bytes, objects freed 11/314 (in 2 ms) - slots from 289/411 to 286/411 11:15:34.628 RSL: STATE = {"Time":"2024-05-25T11:15:34","Uptime":"0T00:09:09","UptimeSec":549,"Heap":174,"SleepMode":"Dynamic","Sleep":1,"LoadAvg":999,"MqttCount":0,"Berry":{"HeapUsed":20,"Objects":314},"POWER":"OFF","Dimmer":15,"Color":"262626","HSBColor":"0,0,15","Channel":[15,15,15],"Scheme":0,"Width":1,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"MYSSID","BSSId":"AC:B6:87:C7:0E:B8","Channel":6,"Mode":"HT20","RSSI":80,"Signal":-60,"LinkCount":1,"Downtime":"0T00:00:03"}} 1
- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`: ```lua Rules output here: none
Status 0
STATUS 0 output here: 11:16:18.581 CMD: status 0 11:16:18.583 SRC: WebConsole from 192.168.1.174 11:16:18.584 CMD: Grp 0, Cmd 'STATUS', Idx 1, Len 1, Pld 0, Data '0' 11:16:18.587 RSL: STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota","FriendlyName":["Tasmota"],"Topic":"tasmota_9CE64C","ButtonTopic":"0","Power":"0","PowerLock":"0","PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[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],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}} 11:16:18.633 RSL: STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/tasmota32s3.bin","RestartReason":"Software reset CPU","Uptime":"0T00:09:53","StartupUTC":"2024-05-25T10:06:25","Sleep":1,"CfgHolder":4617,"BootCount":176,"BCResetTime":"2023-08-14T12:16:33","SaveCount":424}} 11:16:18.659 RSL: STATUS2 = {"StatusFWR":{"Version":"14.0.0.1(688f3ff-tasmota32)","BuildDateTime":"2024-05-25T07:28:08","Core":"3_0_0","SDK":"5.1.3.240430","CpuFrequency":240,"Hardware":"ESP32-S3 v0.1","CR":"379/699"}} 11:16:18.684 RSL: STATUS3 = {"StatusLOG":{"SerialLog":4,"WebLog":4,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["MYSSID",""],"TelePeriod":90,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006000","00004002","00000000"]}} 11:16:18.714 RSL: STATUS4 = {"StatusMEM":{"ProgramSize":1973,"Free":906,"Heap":173,"StackLowMark":3,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":8192,"FlashSize":8192,"FlashChipId":"1740C8","FlashFrequency":80,"FlashMode":"QIO","Features":["0809","9F9AD7DF","0015A001","B7F7BFCF","05DA9BC4","E0360DC7","480840D2","20200000","D4BC482D","810A80B1","00000014"],"Drivers":"1,2,!3,4,!5,7,!8,9,10,11,12,!14,!16,!17,!20,!21,!24,26,!27,29,!34,!35,38,50,52,!59,!60,62,!63,!66,!67,!68,!73,82,!86,!87,!88,!121","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,98,103,105,109,127","I2CDriver":"7,8,9,10,11,12,13,14,15,17,18,20,24,29,31,36,41,42,44,46,48,58,62,65,69,76,77,82"}} 11:16:18.788 RSL: STATUS5 = {"StatusNET":{"Hostname":"tasmota-9CE64C-1612","IPAddress":"192.168.1.198","Gateway":"192.168.1.254","Subnetmask":"255.255.255.0","DNSServer1":"192.168.1.254","DNSServer2":"0.0.0.0","Mac":"34:85:18:9C:E6:4C","IP6Global":"2a00:23c6:661f:c801:3685:18ff:fe9c:e64c","IP6Local":"fe80::3685:18ff:fe9c:e64c%st1","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"192.168.1.254","DNSServer2":"0.0.0.0","Mac":"00:00:00:00:00:00","IP6Global":"","IP6Local":""},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":19.0}} 11:16:18.837 RSL: STATUS6 = {"StatusMQT":{"MqttHost":"","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_9CE64C","MqttUser":"DVES_USER","MqttCount":0,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}} 11:16:18.863 RSL: STATUS7 = {"StatusTIM":{"UTC":"2024-05-25T10:16:18Z","Local":"2024-05-25T11:16:18","StartDST":"2024-03-31T02:00:00","EndDST":"2024-10-27T03:00:00","Timezone":"+01:00","Sunrise":"04:56","Sunset":"20:37"}} 11:16:18.881 RSL: STATUS10 = {"StatusSNS":{"Time":"2024-05-25T11:16:18"}} 11:16:18.885 BRY: GC from 26245 to 21479 bytes, objects freed 11/314 (in 1 ms) - slots from 287/411 to 286/411 11:16:18.903 RSL: STATUS11 = {"StatusSTS":{"Time":"2024-05-25T11:16:18","Uptime":"0T00:09:53","UptimeSec":593,"Heap":171,"SleepMode":"Dynamic","Sleep":1,"LoadAvg":999,"MqttCount":0,"Berry":{"HeapUsed":20,"Objects":314},"POWER":"OFF","Dimmer":15,"Color":"262626","HSBColor":"0,0,15","Channel":[15,15,15],"Scheme":0,"Width":1,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"MYSSID","BSSId":"AC:B6:87:C7:0E:B8","Channel":6,"Mode":"HT20","RSSI":82,"Signal":-59,"LinkCount":1,"Downtime":"0T00:00:03"}}} 11:16:18.948 RSL: STATUS12 = {"StatusSTK":{"Exception":1070553056,"Reason":"Unknown","EPC":"4037ca8a","EXCVADDR":"00000000","CallChain":["4037ca87","420afb59","421363ff"]}}
- [ ] 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
Steps to reproduce the behavior: Visit Configure Wifi in a browser
A clear and concise description of what you expected to happen. I should be able to configure the wifi - the device should not crash
If applicable, add screenshots to help explain your problem.
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)
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!
Backlog Template; Module; GPIO 255
:Status 0
: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)