-
Notifications
You must be signed in to change notification settings - Fork 13.3k
FSBrowser.ino Reboot #1262
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
Comments
I haven't seen this issue before with the same sketch, same board, same software versions. Any chance you've selected a bad/insufficient SPIFFS size? What operations do you/can you perform in the 2-3 minutes before it resets? |
@igrr which lwip is in 2.0.0? |
@danielmawhirter
I changed the ESP with an ESP-01 with 512k/64k SPIFFS (blue pcb) |
Now the sketch is working but I deleted the below rows of the code:
The issue seams to be related to mDNS library |
There isn't any issue related to 3.3V power supply. It's OK. |
the problem is not in mDNS but rather in the network stack. mDNS has been working really stable for quite a while now and code has not been changed really. 2.0.0 stable comes with build-from-source lwip which is the cause of most network troubles. I switched back to stock lwip from sdk 1.3 and all my issues disappeared. |
@me-no-dev |
@me-no-dev Are you positive the 1.3 SDK works with mDNS? I've tried reverting all libs to 1.3, 1.4, and 1.5 and saw the exact same issue each time. Issue #1050 is the same as this too. Has there been any development on this issue? mDNS / OTA seems to be completely broken in the newest staging, with the below stacktrace printed 10 seconds - 1 minute after starting mDNS.begin();
|
I have been now on 1.5.1 for a few days (the git master of this repo) and can say that the network is considerably faster. I have not had any sudden crashes or anything. |
Curious then - I tried using the mDNS example on both the latest master of yours and this repository, and still see exceptions after ~10 seconds. Do you see any significant multicast traffic on your network? If I add logging to the mDNS parse packet function, I see a considerable amount of packets per second before it crashes - Perhaps this is the difference? Although I can't seem to understand how it'd crash the system context because of that. Probably need to fire up GDB and figure out what line it's dying on. |
What you explain is really strange. I think that I have a pretty large network for home network, with lots of iDevices that use mDNS for everything and I run for weeks without issues. |
Cheers @me-no-dev - Didn't even realise that handy tool was included. So, the exception shows it happened at lib1funcs.S:696 called by __umodsi3, and the only location addr2line seems to be able to decode is core_esp8266_main.cpp:43, which would be atexit. Now, with some google-fu, this appears to be a divide by zero error from modulus. However, there's no division going on in the mDNS code, so, I think this'll take some more investigatio1n.. |
hmm... looking at the trace more addresses starting with 402 should have decoded :( sad. See if you can get more info maybe on next fail... there must be a pattern. The mDNS on it's own is not a big deal as a service. |
I would've thought so too - The stack frames GDB sees are two at 0x4021f252, which then call the __umodsi3 modulus function, with nothing else. Its quite consistent though, I've never seen it print anything else - Same values every time. I figure without having the source for the libraries it's going to be quite difficult to track down - I'll probably end up abandoning mDNS for now EDIT: Interestingly enough, I can reproduce this issue by just starting UDP multicast with WiFiUDP.beginMulticast(..) |
Should be fixed in git version. If you're still having issues, please follow up in #1826. |
Had very similar error out of nowhere. Took me some time to realize that it was caused by the absence of one of the sensors on the I2C bus. It seems that it was the I2C library the responsible. Added two "if" and problem solved |
I'm testing:
https://github.com./esp8266/Arduino/blob/master/libraries/ESP8266WebServer/examples/FSBrowser/FSBrowser.ino
I'm using an ESP-01 with 1kb of SPI memory (black pcb)
I haven't changed any part of the code.
The sketch is compiled without any error (arduino IDE 1.6.5 and ESP 2.0.0) but every 2,3 minutes the ESP crashes and reboots.
The error is:
The ESP doesn't reboot with other sketches.
The text was updated successfully, but these errors were encountered: