Crash when connecting to my home Wifi router
-
@abilio That URL only shows the text "Unauthorized" for me (though the HTTP code is just 200 instead of 401). As for your PM, I'm afraid my availability today is rather limited. I hope to test it today, but it may be tomorrow. And good guess about the OS preference (despite that I have the nickname for over 20 years).
Edit: there was a typo in the URL you posted. The correct URL is: https://software.pycom.io/downloads/pycom_update_0.9.5.b1.dmg. I'm going to download it, and test if the problem occurs in that version as well.
-
Hello Abilio,
This WIFI bug continues the same with firmware 0.9.7.b1 as I reported a week ago for firmware 0.9.6.b1.
Am I assuming correctly that you are a Pycom engineer?
Who at Pycom is responsible for correcting firmware bugs?
What is Pycom's SLA for correcting defects with released firmware?
Robert Dixey
-
hi, same issue here with my new LoPy with 0.9.6.b1a firmware, Netgear R7000 router. Wifi crashes after 1-2-3 minutes. Fixed ip does not make a difference.
Let me know if you need more info or if i can do any testing to get this resolved.MicroPython v1.8.6-40-gd10463e on 2016-11-25; LoPy with ESP32
Type "help()" for more information.I (434227) wifi: n:3 0, o:6 0, ap:255 255, sta:3 0, prof:6
I (435201) wifi: state: 0 -> 2 (b0)
I (435204) wifi: state: 2 -> 3 (0)
I (435208) wifi: state: 3 -> 5 (10)
I (435231) wifi: connected with xyzssid, channel 3
Guru Meditation Error of type InstrFetchProhibited occurred on core 0. Exception was unhandled.
Register dump:
PC : 002c002c PS : 00060330 A0 : 801252ce A1 : 3ffdf9f0
A2 : 00000001 A3 : 3ffd96ac A4 : 002c002c A5 : 00000008
A6 : 00000000 A7 : 3ffd3398 A8 : 8011ef50 A9 : 00000002
A10 : 3ffd96ac A11 : 00000001 A12 : 3ffd4f14 A13 : 00000000
A14 : 3ffdf2fc A15 : 3ffd4cf8 SAR : 00000019 EXCCAUSE: 00000014
EXCVADDR: 002c002c LBEG : 00000000 LEND : 00000000 LCOUNT : 00000000
Rebooting...
ets Jun 8 2016 00:22:57rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:QIO, clock div:2
load:0x3fff9010,len:8
load:0x3fff9018,len:812
ho 0 tail 12 room 4
load:0x40078000,len:3692
load:0x4009f000,len:944
entry 0x4009f1f0
rtc v134 Oct 20 2016 12:36:18øXTAL 40M
I (879) phy: phy_version: 246, Nov 18 2016, 17:30:07, 0, 0tcpip_task_hdlxxx : 3ffdfba4, prio:18,stack:2048
frc2_timer_task_hdl:3ffe972c, prio:22, stack:2048
I (1576) wifi: pp_task_hdl : 3ffebf50, prio:23, stack:8192
mode : softAP(24:0a:c4:00:92:77)
dhcp server start:(ip: 192.168.4.1, mask: 255.255.255.0, gw: 192.168.4.1)
MicroPython v1.8.6-40-gd10463e on 2016-11-25; LoPy with ESP32
Type "help()" for more information. -
FYI, the crash does not occur with firmware 0.9.5.b1, only with 0.9.6.b1 and 0.9.7.b1.
Just a little help in tracking it down, the following DHCP request packet will NOT crash the micropython board (generated with the
dhcpingtool):22:45:15.298227 IP 172.25.129.170.68 > 255.255.255.255.67: BOOTP/DHCP, Request from f4:5c:89:8d:0b:dd, length 250while the following DHCP request DOES crash the micropython board (generated by renewing the IPv4 lease):
22:43:13.382647 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from f4:5c:89:8d:0b:dd, length 300The obvious difference is in the sender IP address, but given the difference in length, there may be more differences.
Edit: the above packet turned out not to be the cause, but it seems that the likely cause is the SLAAC packet (an ICMPv6 router sollicitation packet), that is often send at the same time as a DHCPv4 request.
Good luck hunting down this bug, and let us know if we can be of any assistence.
-
Yes, I'm an engineer at Pycom, and our team of firmware engineers (lead by Daniel) take turns into fixing bugs. We prioritize them by severity (this one is a severe one).
Sadly, in this case, we've checked and believe is something related with changes in Espressif's IDF in between 0.9.5 and 0.9.6. We're filling a bug report with them. As soon as we get a response, it will be included in that week's release.
Thanks everyone for your patience :)
-
@abilio I hope it will be fixed soon :) Keep us up to date!
-
It seems that this bug was reported in parallel by another ESP32 user. The suspected cause is an issue with IPV6. If you want to keep track of the issue, see here:
-
Thanks. From that thread it seems that the culprit was IPv6 router solliciation (as needed for SLAAC, which is often used in conjunction with DHCPv4). It seems I was looking at the correct event, but the wrong packet. My apologies for that. I have not yet reproduced it, but this seems very likely. I will follow the other thread for the upstream bug. Could you report back here once upstream is fixed and a new firmware for the pycom boards is available?
-
@macfreek, We'll report any progress here. Expect it to be included in the release after a solution is found :)
-
good find @abilio !! i changed ipv6 settings on my wireless router Netgear R7000 from 6to4-tunnel to Disabled and have not seen the crash again for the last 30 min ;-)
-
@abilio I disabled the IPV6 interface on my router, and indeed, my Lopy does not crash any more.
I'll leave the IPV6 interface disabled for now, but this is a workaround until it is fixed in the firmware :)
-
-
-
Now that the bug has been found and fixed upstream, and merged into master, would you dare to take a stab at guessing a reasonable ETA before the upstream is released, and Pycom release a new firmware version? Is that a matter of days, around Christmas, next year, ...?
-
I just loaded New firmware release 1.0.0.b1 on my LoPy and tested my WiFi connection and it worked without crashing. I see that this release included an Update to the latest IDF from Espressif, so I assume this addressed the problem. I glad this is fixed since I had no way to turn off IPv6 on my cable modem.
Thanks Pycom
-
Same for me, I updated to version 1.0.0.b1, re-enabled IPV6 on my router, and wifi does not seem to crash anymore.
I'll do more extensive test this afternoon :) -
Same for me, upgraded firmware to 1.0.0.b1 on my LoPy, re-enabled IPv6 on router, happy puppy sinds then. Thank you for quickly fixing Pycom team!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login