-
Notifications
You must be signed in to change notification settings - Fork 129
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
SimpleWebServerWiFi hangs after manually refresh the page 3-5 times #133
Comments
I've seen something similar, especially if the served page has an auto-refresh header. It does work with Chrome. So that might point to something... |
I can confirm that this happened to me once. |
@feikname what firmware version were you using? Do you have a specific set of steps that can reproduce the issue? |
@sandeepmistry I will be able to test this again in a few days (hopefully). It was the latest firmware version available for model B. |
Environment
Chrome 58.0.3029.110 (64-bits) on Windows 10
Firefox Nightly 55.0a1 (64-bits) on WindowsI only tested the custom code at the bottom of this comment with Firefox, but the results should be applicable to the other examples too. Nightly received the content just fine for the first time, but then it was unable to make any subsequent requests. Relevant output:
What happens if After I reset the MKR1000 and ran the test on Nightly again, it worked just fine. I recompiled the code to see the browser request message, and it stopped asking for the favicon but would send out totally empty responses instead (?!). I could reproduce this issue with Nightly again by changing the port from 80 to something else, but that stopped working after a while and the bug didn't occur again after that. (what a nasty one) Custom code
Note: Is |
I'm back. I'll be able to do tests start from tomorrow morning. tell me what do you need to reproduce it. and yes, this only happens if you refresh the page. I wouldn't say I hit the refresh button to the death but interval like once/5 seconds is more than enough to reproduce it. |
Hi @feikname, Thanks for the info! Unfortunately I tried the steps you provided for Firefox on macOS and a Windows 10 VM, but couldn't reproduce. I've also made PR #173 to speed up |
@shawhu it would be great if you can try this again after updating to f/w 19.5.2: https://www.arduino.cc/en/Tutorial/FirmwareUpdater Then let us know of the results. Thanks. |
@sandeepmistry Could you try on a (non cached) port on Firefox in Windows 10 VM again (e.g. 81)? Perhaps it might work this time. I believe this is a case of a Heisenbug 😟. |
@sandeepmistry I've tried the updater, my wifi101 is model A, and I don't think I can upgrade it to use f/w 19.5.2, I ran the check101firmwareversion and it says the 19.4.4 version is my latest one. MR210PA is the exact model. Am I right about the latest version being 19.4.4? |
@shawhu unfortunately Microchip/Atmel has decided not to provide firmware updates for model A chips :( so 19.4.4 is the latest release available. |
What is the difference between these two WiFi101 firmware versions by the way? I couldn't find any changelog. |
@feikname here's a copy of the release notes: Atmel_WINC1500_Software_Release_Notes.pdf |
@sandeepmistry thanks! |
@shawhu could you please try the new v0.14.3 WiFi101 library release to see if the issue occurs. If it does occur could you also try to ping the IP address of the board. A Wireshark capture of all the traffic would be great as well! |
Closing for now due to lack of feedback. |
Guys,
I've tried the following combination, all failed. I've the latest version of IDE 1.8.0 on a win10x64 machine, I've installed the latest wifi101 library 0.12 I believe.
The problem can be easily reproduced by attaching a Wifi101 shield on top of a Uno board, running out-of-box
SimpleWebServerWiFi.ino
, only changed the ssid and the password in order to connect.When first load the page in firefox, most of the time it's successful, and then if you refresh the page or click the link in order to turn the LED on and off for couple times it hangs. and when it hung it can't return to normal unless you reset the board. The serial monitor log I pasted below was produced with 3 attempts, the first one shows the page successfully. the 2nd and the 3rd were not.
I tried to find a solution and I read this #8
It seems like a bug that's been fixed long time ago. But the characteristics are very similar from what I've
observed.
please help.
P.S. I've tried with a mega board as well, same result.
The text was updated successfully, but these errors were encountered: