DeauthDetector icon indicating copy to clipboard operation
DeauthDetector copied to clipboard

crash with Exception (3)

Open pubcoder opened this issue 6 years ago • 4 comments

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.

pubcoder avatar Aug 12 '17 21:08 pubcoder

Maybe I have the same problem as you.

Droid-MAX avatar Jun 30 '18 03:06 Droid-MAX

I got the same issuu with release version of WiFiManager https://github.com/tzapu/WiFiManager/issues/679

dontsovcmc avatar Aug 04 '18 09:08 dontsovcmc

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?

gordonf130 avatar Sep 28 '20 20:09 gordonf130

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?

monkeyaction avatar Oct 01 '20 20:10 monkeyaction