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

reboot on connect #52

Open
homonto opened this issue Mar 23, 2023 · 9 comments
Open

reboot on connect #52

homonto opened this issue Mar 23, 2023 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@homonto
Copy link

homonto commented Mar 23, 2023

15:33:07.182 > WiFi connected
15:33:07.185 > IP address: 192.168.1.119
15:33:07.210 > State changing from: 3 to 4
15:33:07.783 > Active mDNS services: 20 
15:33:07.783 > Accepting connection
15:33:07.786 > [ 32178][V][main.cpp:310] on_connected(): on_connected
15:33:07.800 > [ 32194][I][ArduinoOTA.cpp:141] begin(): OTA server at: esp32-7c9ebd606f90.local:3232
15:33:07.806 > [ 32194][V][main.cpp:302] start_rtsp_server(): start_rtsp_server
15:33:07.815 > [ 32196][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=554, ...)
15:33:07.819 > [ 32203][I][rtsp_server.cpp:9] rtsp_server(): Starting RTSP server
15:33:07.825 > State changed from: 3 to 4
15:33:32.917 > Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.
15:33:32.923 > 
15:33:32.923 > Core  1 register dump:
15:33:32.926 > PC      : 0x400e5493  PS      : 0x00060930  A0      : 0x80164a24  A1      : 0x3ffb26f0  
15:33:32.934 > A2      : 0x00000000  A3      : 0x3ffe9af0  A4      : 0x00000000  A5      : 0x00000008  
15:33:32.942 > A6      : 0x00000000  A7      : 0x3ffc7168  A8      : 0x800e5490  A9      : 0x3ffb26d0  
15:33:32.948 > A10     : 0x3ffe88e8  A11     : 0x3ffe9350  A12     : 0x0000180c  A13     : 0x00000001  
15:33:32.956 > A14     : 0x00000004  A15     : 0x3ffb6cb0  SAR     : 0x0000000d  EXCCAUSE: 0x0000001c  
15:33:32.964 > EXCVADDR: 0x00000008  LBEG    : 0x4008b2e8  LEND    : 0x4008b2fe  LCOUNT  : 0xffffffff  
15:33:32.973 > 
15:33:32.973 > 
15:33:32.973 > Backtrace: 0x400e5490:0x3ffb26f0 0x40164a21:0x3ffb2710 0x400e68a6:0x3ffb2730 0x400e69ff:0x3ffb2770 0x400e6625:0x3ffb27c0 0x400e6660:0x3ffb27e0 0x400d692f:0x3ffb2800 0x400ea009:0x3ffb2820
15:33:32.989 > 
15:33:32.989 > 
15:33:32.989 > 
15:33:32.989 > 
15:33:32.989 > ELF file SHA256: fe331861685ab646
15:33:33.013 > 
15:33:33.195 > Rebooting...
15:33:33.196 > ets Jun  8 2016 00:22:57
15:33:33.198 > 
15:33:33.198 > rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
15:33:33.203 > configsip: 0, SPIWP:0xee
15:33:33.203 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
15:33:33.216 > mode:DIO, clock div:2
15:33:33.216 > load:0x3fff0030,len:1184
15:33:33.216 > load:0x40078000,len:13104
15:33:33.218 > load:0x40080400,len:3036
15:33:33.242 > entry 0x400805e4
15:33:33.651 > [     3][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=80, ...)
15:33:33.656 > [     4][V][WebServer.cpp:87] WebServer(): WebServer::Webserver(port=80)
15:33:33.678 > [    32][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
15:33:34.129 > [   481][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
15:33:34.150 > [   505][I][main.cpp:350] setup(): CPU Freq: 240 Mhz
15:33:34.155 > [   505][I][main.cpp:351] setup(): Free heap: 236616 bytes
15:33:34.160 > [   505][I][main.cpp:352] setup(): Starting ESP32CAM-RTSP...
15:33:34.166 > Config version: 1.4
15:33:34.169 > Config size: 450
15:33:34.169 > Loading configurations
15:33:34.172 > [iwcAll]
15:33:34.172 > |-- [iwcSys]
15:33:34.174 > |   |-- 'iwcThingName' with value: 'ESP32CAM-RTSP'
15:33:34.177 > |   |-- 'iwcApPassword' with value: <hidden>
15:33:34.183 > |   |-- [iwcWifi0]
15:33:34.183 > |   |   |-- 'iwcWifiSsid' with value: 'BT-gowno'
15:33:34.188 > |   |   \-- 'iwcWifiPassword' with value: <hidden>
15:33:34.194 > |   \-- 'iwcApTimeout' with value: '30'
15:33:34.197 > |-- [iwcCustom]
15:33:34.197 > |   |-- [board]
15:33:34.199 > |   |   \-- 'bt' with value: 'AI THINKER'
15:33:34.202 > |   |-- [camera]
15:33:34.205 > |   |   |-- 'fd' with value: '100'
15:33:34.208 > |   |   |-- 'fs' with value: 'VGA (640x480)'
15:33:34.210 > |   |   |-- 'q' with value: '12'
15:33:34.213 > |   |   |-- 'b' with value: '0'
15:33:34.216 > |   |   |-- 'c' with value: '0'
15:33:34.219 > |   |   |-- 's' with value: '0'
15:33:34.224 > |   |   |-- 'e' with value: 'Normal'
15:33:34.227 > |   |   |-- 'wb' with value: '1'
15:33:34.230 > |   |   |-- 'awbg' with value: '1'
15:33:34.233 > |   |   |-- 'wbm' with value: 'Auto'
15:33:34.235 > |   |   |-- 'ec' with value: '1'
15:33:34.238 > |   |   |-- 'aec2' with value: '1'
15:33:34.241 > |   |   |-- 'ael' with value: '0'
15:33:34.244 > |   |   |-- 'aecv' with value: '300'
15:33:34.249 > |   |   |-- 'gc' with value: '1'
15:33:34.252 > |   |   |-- 'agcg' with value: '0'
15:33:34.255 > |   |   |-- 'gcl' with value: '2X'
15:33:34.258 > |   |   |-- 'bpc' with value: '0'
15:33:34.260 > |   |   |-- 'wpc' with value: '1'
15:33:34.263 > |   |   |-- 'rg' with value: '1'
15:33:34.266 > |   |   |-- 'lenc' with value: '1'
15:33:34.269 > |   |   |-- 'hm' with value: '0'
15:33:34.272 > |   |   |-- 'vm' with value: '0'
15:33:34.274 > |   |   |-- 'dcw' with value: '1'
15:33:34.277 > |   |   \-- 'cb' with value: '0'
15:33:34.283 > |   \-- [io]
15:33:34.283 > |       \-- 'li' with value: '0'
15:33:34.285 > \-- [hidden]
15:33:34.285 > [   632][V][main.cpp:244] initialize_camera(): initialize_camera
15:33:34.294 > [   636][I][main.cpp:245] initialize_camera(): Camera config: AI THINKER
15:33:34.299 > [   642][I][main.cpp:247] initialize_camera(): Frame size: VGA (640x480)
15:33:34.305 > [   649][I][main.cpp:249] initialize_camera(): JPEG quality: 12
15:33:34.310 > [   654][I][main.cpp:250] initialize_camera(): Frame duration: 100 ms
15:33:34.553 > State changing from: 0 to 2
15:33:34.553 > [   908][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 0 - WIFI_READY
15:33:34.644 > Setting up AP: ESP32CAM-RTSP
15:33:34.644 > Use password: <hidden>
15:33:34.646 > [   997][V][WiFiGeneric.cpp:392] _arduino_event_cb(): AP Started
15:33:34.653 > [   998][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 10 - AP_START
15:33:35.216 > AP IP address: 192.168.4.1
15:33:35.216 > [  1571][V][WiFiGeneric.cpp:395] _arduino_event_cb(): AP Stopped
15:33:35.222 > [  1572][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 11 - AP_STOP
15:33:35.230 > [  1573][V][WiFiGeneric.cpp:392] _arduino_event_cb(): AP Started
15:33:35.236 > [  1579][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 10 - AP_START
15:33:35.244 > AP timeout (ms): 30000
15:33:35.244 > State changed from: 0 to 2
@RealShade
Copy link

Same thing. I have ESP32CAM module (same as assets/ESP32-CAM.jpg)
If I set AI THINKER in the config, it works without rtsp stream, but with the correct snapshot

@rzeldent
Copy link
Owner

Hi ReadShade/Homoto,

I do use the same module and cannot reproduce it. Could you get the latest version and try this again with or replace the line in platformio.ini?

monitor_filters = esp32_exception_decoder

This will hopefully give a stack trace with some more information.

Rene

@RealShade
Copy link

RealShade commented Mar 25, 2023

monitor_speed = 115200
monitor_rts = 0
monitor_dtr = 0
monitor_filters = log2file, time, default, esp32_exception_decoder
monitor_port = COM3

If I set AI THINKER and open it with browser (all works correct):

State changing from: 2 to 3

[ 31670][V][WiFiGeneric.cpp:395] _arduino_event_cb(): AP Stopped

[ 31670][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 11 - AP_STOP

[ 31675][V][WiFiGeneric.cpp:392] _arduino_event_cb(): AP Started

E (45722) wifi_init_default: esp_wifi_get_mac failed with 12289

Connecting to [rs] (password is hidden)

WiFi timeout (ms): 30000

[ 31683][V][WiFiGeneric.cpp:395] _arduino_event_cb(): AP Stopped

[ 31677][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 10 - AP_START

[ 31702][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 11 - AP_STOP

[ 31723][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 0 - WIFI_READY

[ 31730][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0

[ 31728][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started

[ 31736][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 2 - STA_START

State changed from: 2 to 3

[ 32844][V][WiFiGeneric.cpp:362] _arduino_event_cb(): STA Disconnected: SSID: rs, BSSID: dc:2c:6e:27:c3:68, Reason: 4

[ 32844][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED

[ 32851][W][WiFiGeneric.cpp:955] _eventCallback(): Reason: 4 - ASSOC_EXPIRE

[ 32858][D][WiFiGeneric.cpp:975] _eventCallback(): WiFi Reconnect Running

[ 32866][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0

[ 32953][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: rs, BSSID: dc:2c:6e:27:c3:68, Channel: 1, Auth: WPA2_PSK

[ 32954][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 4 - STA_CONNECTED

[ 33371][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:192.168.1.99

[ 33372][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 7 - STA_GOT_IP

[ 33375][D][WiFiGeneric.cpp:996] _eventCallback(): STA IP: 192.168.1.99, MASK: 255.255.255.0, GW: 192.168.1.1

WiFi connected

IP address: 192.168.1.99

State changing from: 3 to 4

[ 36497][W][ESPmDNS.cpp:222] queryService(): No results found!

Active mDNS services: 0 
Accepting connection

[ 36498][V][main.cpp:310] on_connected(): on_connected

[ 36513][I][ArduinoOTA.cpp:141] begin(): OTA server at: esp32-240ac4f84a6c.local:3232

[ 36513][V][main.cpp:302] start_rtsp_server(): start_rtsp_server

[ 36515][V][WiFiServer.h:42] WiFiServer(): WiFiServer::WiFiServer(port=554, ...)

[ 36523][I][rtsp_server.cpp:9] rtsp_server(): Starting RTSP server

State changed from: 3 to 4

Creating TSP streamer

Created streamer width=640, height=480

Creating RTSP session

RTSP received OPTIONS

RTSP received DESCRIBE

RTSP received SETUP

RTSP received PLAY

[ 48366][V][WebServer.cpp:296] handleClient(): New client: client.localIP()=192.168.1.99

[ 48367][V][Parsing.cpp:122] _parseRequest(): method: GET url: / search: 

[ 48370][V][Parsing.cpp:226] _parseRequest(): headerName: Host

[ 48375][V][Parsing.cpp:227] _parseRequest(): headerValue: 192.168.1.99

[ 48381][V][Parsing.cpp:226] _parseRequest(): headerName: Connection

[ 48387][V][Parsing.cpp:227] _parseRequest(): headerValue: keep-alive

[ 48394][V][Parsing.cpp:226] _parseRequest(): headerName: Cache-Control

[ 48400][V][Parsing.cpp:227] _parseRequest(): headerValue: max-age=0

[ 48406][V][Parsing.cpp:226] _parseRequest(): headerName: Upgrade-Insecure-Requests

[ 48413][V][Parsing.cpp:227] _parseRequest(): headerValue: 1

[ 48419][V][Parsing.cpp:226] _parseRequest(): headerName: User-Agent

[ 48425][V][Parsing.cpp:227] _parseRequest(): headerValue: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

[ 48440][V][Parsing.cpp:226] _parseRequest(): headerName: Accept

[ 48445][V][Parsing.cpp:227] _parseRequest(): headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

[ 48463][V][Parsing.cpp:226] _parseRequest(): headerName: Accept-Encoding

[ 48469][V][Parsing.cpp:227] _parseRequest(): headerValue: gzip, deflate

[ 48476][V][Parsing.cpp:226] _parseRequest(): headerName: Accept-Language

[ 48482][V][Parsing.cpp:227] _parseRequest(): headerValue: uk-UA,uk;q=0.9,ru-RU;q=0.8,ru;q=0.7,en-US;q=0.6,en;q=0.5

[ 48492][V][Parsing.cpp:254] _parseArguments(): args: 

[ 48497][V][Parsing.cpp:237] _parseRequest(): Request: /

[ 48502][V][Parsing.cpp:238] _parseRequest():  Arguments: 

[ 48507][V][main.cpp:81] handle_root(): Handle root

If I try to open with VLC:

[ 57995][E][WiFiClient.cpp:422] write(): fail on fd 52, errno: 104, "Connection reset by peer"

client has closed the socket

client closed socket, exiting

closing TCP socket

closing UDP socket

closing UDP socket

Creating TSP streamer

Created streamer width=640, height=480

Creating RTSP session

RTSP received OPTIONS

RTSP received DESCRIBE

RTSP received SETUP

RTSP received PLAY

Creating TSP streamer

Created streamer width=640, height=480

Creating RTSP session

RTSP received OPTIONS

[ 82362][D][WiFiClient.cpp:546] connected(): Disconnected: RES: 0, ERR: 128

client has closed the socket

client closed socket, exiting

closing TCP socket

closing UDP socket

closing UDP socket

Creating TSP streamer

Created streamer width=640, height=480

Creating RTSP session

RTSP received SETUP

[ 88302][E][WiFiClient.cpp:422] write(): fail on fd 52, errno: 104, "Connection reset by peer"

[ 88303][I][WiFiClient.cpp:549] connected(): Unexpected: RES: 0, ERR: 9

RTSP received PLAY

client has closed the socket

client closed socket, exiting

closing TCP socket

closing UDP socket

closing UDP socket

Creating TSP streamer

Created streamer width=640, height=480

Creating RTSP session

RTSP received OPTIONS

RTSP received DESCRIBE

RTSP received SETUP

RTSP received PLAY

RTSP received TEARDOWN

closing TCP socket

closing UDP socket

closing UDP socket

Creating TSP streamer

Created streamer width=640, height=480

Creating RTSP session

RTSP received OPTIONS

[115246][D][WiFiClient.cpp:546] connected(): Disconnected: RES: 0, ERR: 128

client has closed the socket

client closed socket, exiting

closing TCP socket

closing UDP socket

closing UDP socket

Creating TSP streamer

Created streamer width=640, height=480

Creating RTSP session

RTSP received SETUP

[118518][E][WiFiClient.cpp:422] write(): fail on fd 52, errno: 104, "Connection reset by peer"

If I set ESP32CAM and open it with browser:

Config version: 1.4

Config size: 450

Loading configurations

[iwcAll]

|-- [iwcSys]

|   |-- 'iwcThingName' with value: 'ESP32CAM-RTSP'

|   |-- 'iwcApPassword' with value: <hidden>

|   |-- [iwcWifi0]

|   |   |-- 'iwcWifiSsid' with value: 'rs'

|   |   \-- 'iwcWifiPassword' with value: <hidden>

|   \-- 'iwcApTimeout' with value: '30'

|-- [iwcCustom]

|   |-- [board]

|   |   \-- 'bt' with value: 'ESP32CAM'

|   |-- [camera]

|   |   |-- 'fd' with value: '100'

|   |   |-- 'fs' with value: 'VGA (640x480)'

|   |   |-- 'q' with value: '12'

|   |   |-- 'b' with value: '0'

|   |   |-- 'c' with value: '0'

|   |   |-- 's' with value: '0'

|   |   |-- 'e' with value: 'Normal'

|   |   |-- 'wb' with value: '1'

|   |   |-- 'awbg' with value: '1'

|   |   |-- 'wbm' with value: 'Auto'

|   |   |-- 'ec' with value: '1'

|   |   |-- 'aec2' with value: '1'

|   |   |-- 'ael' with value: '0'

|   |   |-- 'aecv' with value: '300'

|   |   |-- 'gc' with value: '1'

|   |   |-- 'agcg' with value: '0'

|   |   |-- 'gcl' with value: '2X'

|   |   |-- 'bpc' with value: '0'

|   |   |-- 'wpc' with value: '1'

|   |   |-- 'rg' with value: '1'

|   |   |-- 'lenc' with value: '1'

|   |   |-- 'hm' with value: '0'

|   |   |-- 'vm' with value: '0'

|   |   |-- 'dcw' with value: '1'

|   |   \-- 'cb' with value: '0'

|   \-- [io]

|       \-- 'li' with value: '0'

\-- [hidden]

[   633][V][main.cpp:244] initialize_camera(): initialize_camera

[   637][I][main.cpp:245] initialize_camera(): Camera config: ESP32CAM

[   643][I][main.cpp:247] initialize_camera(): Frame size: VGA (640x480)

[   650][I][main.cpp:249] initialize_camera(): JPEG quality: 12

[   655][I][main.cpp:250] initialize_camera(): Frame duration: 100 ms

E (664) camera: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND)

[   695][E][main.cpp:394] setup(): Failed to initialize camera: 0x105. Type: ESP32CAM, frame size: VGA (640x480), frame rate: 100 ms, jpeg quality: 12

State changing from: 0 to 2

[   732][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 0 - WIFI_READY

Setting up AP: ESP32CAM-RTSP

Use password: <hidden>

[   831][V][WiFiGeneric.cpp:392] _arduino_event_cb(): AP Started

[   832][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 10 - AP_START

AP IP address: 192.168.4.1

[  1451][V][WiFiGeneric.cpp:395] _arduino_event_cb(): AP Stopped

[  1452][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 11 - AP_STOP

[  1452][V][WiFiGeneric.cpp:392] _arduino_event_cb(): AP Started

[  1459][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 10 - AP_START

AP timeout (ms): 30000

State changed from: 0 to 2

State changing from: 2 to 3

[ 31481][V][WiFiGeneric.cpp:395] _arduino_event_cb(): AP Stopped

[ 31481][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 11 - AP_STOP

[ 31485][V][WiFiGeneric.cpp:392] _arduino_event_cb(): AP Started

Camera probe failed with error 0x105E (45341) wifi_init_default: esp_wifi_get_mac failed with 12289

Connecting to [rs] (password is hidden)

WiFi timeout (ms): 30000

[ 31497][V][WiFiGeneric.cpp:395] _arduino_event_cb(): AP Stopped

[ 31488][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 10 - AP_START

[ 31516][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 11 - AP_STOP

[ 31537][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 0 - WIFI_READY

[ 31544][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0

[ 31542][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started

[ 31550][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 2 - STA_START

State changed from: 2 to 3

[ 31642][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: rs, BSSID: dc:2c:6e:27:c3:68, Channel: 1, Auth: WPA2_PSK

[ 31643][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 4 - STA_CONNECTED

[ 31970][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:192.168.1.99

[ 31971][D][WiFiGeneric.cpp:931] _eventCallback(): Arduino Event: 7 - STA_GOT_IP

[ 31974][D][WiFiGeneric.cpp:996] _eventCallback(): STA IP: 192.168.1.99, MASK: 255.255.255.0, GW: 192.168.1.1

WiFi connected

IP address: 192.168.1.99

State changing from: 3 to 4

[ 35096][W][ESPmDNS.cpp:222] queryService(): No results found!

Active mDNS services: 0 
Accepting connection

[ 35098][V][main.cpp:310] on_connected(): on_connected

[ 35112][I][ArduinoOTA.cpp:141] begin(): OTA server at: esp32-240ac4f84a6c.local:3232

State changed from: 3 to 4

[ 92904][V][WebServer.cpp:296] handleClient(): New client: client.localIP()=192.168.1.99

[ 92905][V][Parsing.cpp:122] _parseRequest(): method: GET url: / search: 

[ 92908][V][Parsing.cpp:226] _parseRequest(): headerName: Host

[ 92913][V][Parsing.cpp:227] _parseRequest(): headerValue: 192.168.1.99

[ 92920][V][Parsing.cpp:226] _parseRequest(): headerName: Connection

[ 92926][V][Parsing.cpp:227] _parseRequest(): headerValue: keep-alive

[ 92932][V][Parsing.cpp:226] _parseRequest(): headerName: Authorization

[ 92938][V][Parsing.cpp:227] _parseRequest(): headerValue: Basic YWRtaW46VGticGZXaWZpMQ==

[ 92946][V][Parsing.cpp:226] _parseRequest(): headerName: Upgrade-Insecure-Requests

[ 92953][V][Parsing.cpp:227] _parseRequest(): headerValue: 1

[ 92959][V][Parsing.cpp:226] _parseRequest(): headerName: User-Agent

[ 92965][V][Parsing.cpp:227] _parseRequest(): headerValue: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

[ 92980][V][Parsing.cpp:226] _parseRequest(): headerName: Accept

[ 92985][V][Parsing.cpp:227] _parseRequest(): headerValue: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

[ 93003][V][Parsing.cpp:226] _parseRequest(): headerName: Accept-Encoding

[ 93009][V][Parsing.cpp:227] _parseRequest(): headerValue: gzip, deflate

[ 93016][V][Parsing.cpp:226] _parseRequest(): headerName: Accept-Language

[ 93022][V][Parsing.cpp:227] _parseRequest(): headerValue: uk-UA,uk;q=0.9,ru-RU;q=0.8,ru;q=0.7,en-US;q=0.6,en;q=0.5

[ 93032][V][Parsing.cpp:254] _parseArguments(): args: 

[ 93037][V][Parsing.cpp:237] _parseRequest(): Request: /

[ 93042][V][Parsing.cpp:238] _parseRequest():  Arguments: 

[ 93047][V][main.cpp:81] handle_root(): Handle root

Guru Meditation Error: Core  1 panic'ed (LoadProhibited). Exception was unhandled.



Core  1 register dump:

PC      : 0x40094bfb  PS      : 0x00060d30  A0      : 0x80094e50  A1      : 0x3ffb1af0  

A2      : 0xffffffff  A3      : 0x00000000  A4      : 0x0000001c  A5      : 0x3ffb1b70  

A6      : 0x00000000  A7      : 0x00000001  A8      : 0xffffffff  A9      : 0x00000009  

A10     : 0x00000000  A11     : 0x1d98ca9f  A12     : 0x1d98ca9f  A13     : 0x3ffc701c  

A14     : 0x00060d20  A15     : 0x00000001  SAR     : 0x00000017  EXCCAUSE: 0x0000001c  

EXCVADDR: 0x00000013  LBEG    : 0x4008b464  LEND    : 0x4008b46f  LCOUNT  : 0x00000000  





Backtrace: 0x40094bf8:0x3ffb1af0 0x40094e4d:0x3ffb1b10 0x400950cf:0x3ffb1b30 0x40114042:0x3ffb1b50 0x400e6b92:0x3ffb1b90 0x400d6fea:0x3ffb1bd0 0x401797a1:0x3ffb20d0 0x400dfbda:0x3ffb20f0 0x400dfc81:0x3ffb2110 0x400dfd67:0x3ffb2150 0x400dffa6:0x3ffb21c0 0x40179f81:0x3ffb2230 0x400e4a5f:0x3ffb2250 0x400d6906:0x3ffb2270 0x400ea055:0x3ffb2290









ELF file SHA256: e215afd9db32cb2f



Rebooting...

ets Jul 29 2019 12:21:46

photo_2023-03-25_17-24-50
With ESP32CAM rtsp does not connecting at all

@rzeldent
Copy link
Owner

Hi homonto,

Have you tried to erase the flash completely? Maybe there is some old config present...

@KonradStuewe
Copy link

I'm facing the same issue with two new ESP32-CAM modules. I'm using the ESP32-CAM-MB to power them.

Flashing them worked flawlessly, and I can set up my Wi-Fi credentials perfectly fine.

Without changing anything, I can access the stream and snapshot URL. Using RTSP via VLC crashes it most of the time.
When changing the board over to the ESP32-CAM, I can see in the serial output that the RTSP server isn't starting because the camera isn't initialized. Because of that, I also can't access it via VLC.
When opening the website, it again crashes.

As I said, I tried it with two new boards. And also tried reflashing them a couple of times, erasing the flash beforehand.

@bakadave
Copy link

same issue

@rzeldent
Copy link
Owner

Hi Konrad,

I looked at the code for the status screen, especially after the initialization fails. I added a precaution in case the esp library function did not return a error string. This is available on the develop branch.

The reason the camera init fails is unclear; this is a standard ESP32 camera init. What does the error return?
See the line in OV2640.cpp

printf("Camera probe failed with error 0x%x", err);

Anybody knowns if they're using another camera module?

@rzeldent
Copy link
Owner

rzeldent commented Feb 2, 2024

Any crashes after this update on the develop branch?

@rzeldent rzeldent added the bug Something isn't working label Feb 2, 2024
@rzeldent rzeldent self-assigned this Feb 2, 2024
@rzeldent
Copy link
Owner

rzeldent commented Feb 6, 2024

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants