Skip to content
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

crash with Exception (3) #3

Open
pubcoder opened this issue Aug 12, 2017 · 4 comments
Open

crash with Exception (3) #3

pubcoder opened this issue Aug 12, 2017 · 4 comments

Comments

@pubcoder
Copy link

It used to work, and then one day I powered it up and it kept resetting with cause:4 (watch dog?).
After I reflashed it, it just crashed with Exception (3) upon WiFi.disconnect() command.
Then I found this suggestion:
http://blog.flynnmetrics.com/uncategorized/esp8266-exception-3/

here is the patch:

@@ -46,7 +46,8 @@ void setup() {
 
   wifi_set_opmode(STATION_MODE);
   wifi_promiscuous_enable(0);
-  WiFi.disconnect();
+  WiFi.persistent(false); 
+  WiFi.disconnect(true);
   wifi_set_promiscuous_rx_cb(sniffer);
   wifi_set_channel(curChannel);
   wifi_promiscuous_enable(1);

I still don't understand what's going on, but it works, perhaps there is a bug in the library.
I use Arduino IDE version 1.8.2 and esp8266 library version 2.3.0.

@Droid-MAX
Copy link

Maybe I have the same problem as you.

@dontsovcmc
Copy link

I got the same issuu with release version of WiFiManager
tzapu/WiFiManager#679

@gordonf130
Copy link

It used to work, and then one day I powered it up and it kept resetting with cause:4 (watch dog?).
After I reflashed it, it just crashed with Exception (3) upon WiFi.disconnect() command.
Then I found this suggestion:
http://blog.flynnmetrics.com/uncategorized/esp8266-exception-3/

here is the patch:

@@ -46,7 +46,8 @@ void setup() {
 
   wifi_set_opmode(STATION_MODE);
   wifi_promiscuous_enable(0);
-  WiFi.disconnect();
+  WiFi.persistent(false); 
+  WiFi.disconnect(true);
   wifi_set_promiscuous_rx_cb(sniffer);
   wifi_set_channel(curChannel);
   wifi_promiscuous_enable(1);

I still don't understand what's going on, but it works, perhaps there is a bug in the library.
I use Arduino IDE version 1.8.2 and esp8266 library version 2.3.0.

where about in the code dose the patch go?

@monkeyaction
Copy link

monkeyaction commented Oct 1, 2020

Same issue: Version 2.1.0 of deauther compiles and loads on ESP8266 (LOLIN D1 min pro v2) but crashed with Exception (3), after decoding error:

Exception 3: LoadStoreError: Processor internal physical address or data error during load or store
PC: 0x4000bf64
EXCVADDR: 0x40270307

Decoding stack results
0x402258df: String::String(char const*) at C:\Users\aaa\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\WString.cpp line 34
0x40212820: jsonFlag(String&, char const*, bool) at C:\Users\aaa\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/WString.h line 124
0x402258df: String::String(char const*) at C:\Users\aaa\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266\WString.cpp line 34
0x40212ab8: Settings::getJsonStr() at C:\Users\Nick\AppData\Local\Temp\arduino_build_692178\sketch\Settings.cpp line 101
0x40212f09: Settings::save(bool) at C:\Users\Nick\AppData\Local\Temp\arduino_build_692178\sketch\Settings.cpp line 193
0x4021a720: loop() at C:\Users\Nick\Documents\Arduino\esp8266_deauther/esp8266_deauther.ino line 188

I've spent 3 days on this so far :-( any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants