dproldan / Esp32AutoCamera

ESP32-CAM with an open wifi access point and a captive portal, for fast deployment of a wireless camara.
182 stars 26 forks source link

E (4619) httpd: httpd_server_init: error in bind (112) #4

Open joelror opened 4 years ago

joelror commented 4 years ago

Getting this error on boot Serial Monitor shows:

rst:0x1 (POWERON_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:0x3fff0018,len:4 load:0x3fff001c,len:1216 ho 0 tail 12 room 4 load:0x40078000,len:9720 ho 0 tail 12 room 4 load:0x40080400,len:6352 entry 0x400806b8

Starting web server on port: '80' E (4619) httpd: httpd_server_init: error in bind (112) Starting stream server on port: '81'

Once I try to connect to the AP, the device crashes, with this dump: dhcps: send_offer>>udp_sendto result 0 Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled. Core 0 register dump: PC : 0x00000000 PS : 0x00060d30 A0 : 0x8011f13d A1 : 0x3ffd4820
A2 : 0x3ffdfbd0 A3 : 0x3ffe1474 A4 : 0x3ffdffe8 A5 : 0x3ffdf92c
A6 : 0x021cd9ac A7 : 0x0c1cd9ac A8 : 0x8011efe0 A9 : 0x3ffd47e0
A10 : 0x3ffdfbe0 A11 : 0x3ffe1474 A12 : 0x3ffd482c A13 : 0x00000044
A14 : 0x00000001 A15 : 0x00000006 SAR : 0x00000010 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0x00000000

Backtrace: 0x00000000:0x3ffd4820 0x4011f13a:0x3ffd4860 0x4012bfc1:0x3ffd4880 0x40130fc9:0x3ffd48c0 0x40136266:0x3ffd48e0 0x4011fb43:0x3ffd4900 0x4008db91:0x3ffd4930

Any idea what I should make of this?

AIRBOZ commented 4 years ago

I'm getting the same error. I can connect once after uploading the sketch but once disconnected it won't connect again until it's re-uploaded.

callimero commented 4 years ago

Same here. Just I cant connect anytime :/

I did read about that error on the esprif side and there seem to be a solution for that error (open socket in some other manner so that the adress can be reused...). Not sure its 100% related or if it is in the library... Maybe it needs to be backported...

AmauryBJ commented 4 years ago

Hello, i have exactly the same error, need to upload again to make it work. Any solutions ? thanks

HelloMotherEarth commented 2 years ago

I also have this issue. If I connect without Wifi Manager it works fine. When using WiFi manager I notice that if I use port 81 and 82 that I get most of the functionality (a stream on port 82 and the standard web interface on port 81).

Messages from Serial monitor when attempting to connect to port 80:

WiFi connected Starting web server on port: '80' E (39562) httpd: httpd_server_init: error in bind (112) Starting stream server on port: '81' Camera Ready! Use 'http://10.0.1.150' to connect