-
Notifications
You must be signed in to change notification settings - Fork 95
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
ESP32 panics when ArduinoWebsockets initiates a websocket connection #10
Comments
Interestingly, it works with
But even if ArduinoWebSockets can't properly connect, it should not panic the kernel. Edit: s/should/should not/ |
Thank you for the detailed issue. From a glance this seems to be like some bad error handling on my side.
Thank you |
Hi Gil,
With an ESP8266, same code:
Output with
Output with
So no kernel panic (but it also doesn't connect) |
Thank you @lalten, I am on it.
|
@lalten please let me know if you solved the issue. |
Hey @gilmaimon we are with the same problem, when the server turn off the ws connection the esp32 enter in panic mode and we recieve this error:
I'm using the 0.4.2 version now, and with the 0.4.0 i receieve the same error. |
Thank you very much, I'm on it. Expect a fixing patch today.
…On Sat, Jun 1, 2019, 01:37 Eliel Romancini ***@***.***> wrote:
Hey @gilmaimon <https://github.com/gilmaimon> we are with the same
problem, when the server turn off the ws connection the esp32 enter in
panic mode and we recieve this error:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400d4ea0 PS : 0x00060d30 A0 : 0x800d4f74 A1 : 0x3ffdd8b0
A2 : 0x00000000 A3 : 0x3ffdd8ff A4 : 0x00000001 A5 : 0x00000001
A6 : 0x3ffc27e8 A7 : 0x00000001 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x3ffddf14 A13 : 0x00000000
A14 : 0x00000000 A15 : 0x00000001 SAR : 0x0000000a EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000008 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x400d4ea0:0x3ffdd8b0 0x400d4f71:0x3ffdd8d0 0x4014c4a6:0x3ffdd8f0 0x400d84c7:0x3ffdd920 0x400d7d11:0x3ffdd940 0x400d1e21:0x3ffdda80 0x400885dd:0x3ffddac0
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:0x3fff0018,len:4
load:0x3fff001c,len:1100
load:0x40078000,len:9232
load:0x40080400,len:6400
entry 0x400806a8
I'm using the 0.4.2 version now, and with the 0.4.0 i receieve the same
error.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10?email_source=notifications&email_token=AEX4O6KEW2CIDA5ALLEO2E3PYGSA7A5CNFSM4HOFSGEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWWQ5JA#issuecomment-497880740>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEX4O6OMRLPZVMICJQQG67TPYGSA7ANCNFSM4HOFSGEA>
.
|
I believe I have a solution: for(int i = 0; i < NUM_SECONDS_TO_WAIT && WiFi.status() != WL_CONNECTED; i++) {
Serial.print(".");
delay(1000);
} I don't know how I am removing the |
@gilmaimon , Thank you very much for your quick solution! Exactly, it's the WiFiClient library that's causing all the problems. I have problems when I am connected to Wi-Fi, after turning off only the WS server the ESP32 is restarted. My solution was: reinstall esp32 on Arduino with the older version 1.0.1 The newer version (1.0.3) probably updated something from the WiFi library that is causing the problem. Thank you very much, I hope you find another solution !!! |
Awesome, glad we pinned down the issue! By the way, give the library a star if you liked it. Hopefull that way more people will use and help improve it. @lalten, please let me know if I can close the issue 👍 |
I consider this as resolved. |
My ESP32 panics when ArduinoWebsockets initiates a websocket connection.
Code running on ESP32:
On my laptop, I can see an incoming connection:
But when I use
websocat
's server:The ESP32 will die:
The text was updated successfully, but these errors were encountered: