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

The app will flash back when scanning Wi-Fi is not working #8

Open
guicai666 opened this issue Dec 30, 2021 · 6 comments
Open

The app will flash back when scanning Wi-Fi is not working #8

guicai666 opened this issue Dec 30, 2021 · 6 comments

Comments

@guicai666
Copy link

Error message

E/AndroidRuntime( 6045): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.wifi.SCAN_RESULTS flg=0x4000010 } in klydra.wifi_hunter.WiFiHunterPlugin$1@2f60c5df E/AndroidRuntime( 6045): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:874) E/AndroidRuntime( 6045): at android.os.Handler.handleCallback(Handler.java:739) E/AndroidRuntime( 6045): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 6045): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime( 6045): at android.app.ActivityThread.main(ActivityThread.java:5372) E/AndroidRuntime( 6045): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 6045): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime( 6045): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1125) E/AndroidRuntime( 6045): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:809) E/AndroidRuntime( 6045): Caused by: java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime( 6045): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:286) E/AndroidRuntime( 6045): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:272) E/AndroidRuntime( 6045): at klydra.wifi_hunter.WiFiHunterPlugin$1.onReceive(WiFiHunterPlugin.java:108) E/AndroidRuntime( 6045): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:864) E/AndroidRuntime( 6045): ... 8 more I/Process ( 6045): killProcess pid=6045 I/Process ( 6045): java.lang.RuntimeException I/Process ( 6045): at android.os.Process.killProcess(Process.java:1106) I/Process ( 6045): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:99) I/Process ( 6045): at com.tencent.bugly.crashreport.crash.l.b(BUGLY:68) I/Process ( 6045): at com.tencent.bugly.crashreport.crash.l.uncaughtException(BUGLY:2) I/Process ( 6045): at cn.jiguang.b.a.uncaughtException(Unknown Source) I/Process ( 6045): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) I/Process ( 6045): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690) I/Process ( 6045): Sending signal. PID: 6045 SIG: 9

@klydra
Copy link
Owner

klydra commented Dec 31, 2021

Hi @guicai666,
sorry to hear you are having this issue.
However, in order to potentially find a solution, could you please elaborate on when this issue occurred?
For example, what device are you using, which Android version does it run, how often did you try to implement the scan function, etc., so I can try to reproduce your error.
Also, if possible, it surely would be helpful if you could provide the logcat output during which the error occurred.

@klydra klydra added the awaiting op response Waiting for the person who created this issue to provide additional information. label Jan 5, 2022
@klydra klydra closed this as completed Jan 15, 2022
@madilsharief
Copy link

madilsharief commented Jun 11, 2022

How is this solved? I am having the same issue.
Steps to Reproduce:

  1. Run APP
  2. Scan WIFI networks and you'll have a good list of SSIDs
  3. Now it occurs on two points:
    3.1. Wait for 5/10 mins in this state and randomly it will give this error and close your app.
    3.2. Pull from top android menu to show the settings bar and in few seconds app crashes. This one happens every time without any doubt and without any significant delay. (means app pause)

E/AndroidRuntime(21970): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.wifi.SCAN_RESULTS flg=0x4000010 (has extras) } in klydra.wifi_hunter.WiFiHunterPlugin$1@e0e573e E/AndroidRuntime(21970): at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1689) E/AndroidRuntime(21970): at android.app.LoadedApk$ReceiverDispatcher$Args$$ExternalSyntheticLambda0.run(Unknown Source:2) E/AndroidRuntime(21970): at android.os.Handler.handleCallback(Handler.java:938) E/AndroidRuntime(21970): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(21970): at android.os.Looper.loopOnce(Looper.java:201) E/AndroidRuntime(21970): at android.os.Looper.loop(Looper.java:288) E/AndroidRuntime(21970): at android.app.ActivityThread.main(ActivityThread.java:7842) E/AndroidRuntime(21970): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(21970): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) E/AndroidRuntime(21970): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003) E/AndroidRuntime(21970): Caused by: java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime(21970): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:431) E/AndroidRuntime(21970): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:267) E/AndroidRuntime(21970): at klydra.wifi_hunter.WiFiHunterPlugin$1.onReceive(WiFiHunterPlugin.java:99) E/AndroidRuntime(21970): at android.app.LoadedApk$ReceiverDispatcher$Args.lambda$getRunnable$0$LoadedApk$ReceiverDispatcher$Args(LoadedApk.java:1679) E/AndroidRuntime(21970): ... 9 more I/Process (21970): Sending signal. PID: 21970 SIG: 9 Lost connection to device.

@klydra klydra reopened this Jun 11, 2022
@madilsharief
Copy link

madilsharief commented Jun 12, 2022

Any update? I even checked its java code there is no handling for app pause state or app resume state. If WIFI keeps scanning or expects results to be transferred after the app is paused, what will it do!.

I really found this plugin easy to use as compared to others but sad that it is unusable at this state because of this eminent crash. I even tried to run the original example code and it's 100% the same behavior so nothing special in my code.

Using Google Pixel 3
Android OS 12.

@klydra klydra removed the awaiting op response Waiting for the person who created this issue to provide additional information. label Jun 12, 2022
@klydra
Copy link
Owner

klydra commented Jun 12, 2022

Hi @madilsharief,
unfortunately I'm currently quite busy, so I haven't had a chance to look into it yet, but I can see where this behavior could potentially come from.
I'll be able to look into it in the next days, but if you come up with a solution sooner, feel free to submit a pull request.

@madilsharief
Copy link

Thanks for your response but I had an urgent need for using a wifi scanner so I used an alternative for now. But sure if I get time I'll look into java code to see how can i resolve this. Because this plugin was very simple to use.

@Sultandi
Copy link

Sultandi commented Dec 9, 2022

yeah, got same buggy here:
D/AndroidRuntime(10692): Shutting down VM
E/AndroidRuntime(10692): FATAL EXCEPTION: main
E/AndroidRuntime(10692): Process: com.wi_find, PID: 10692
E/AndroidRuntime(10692): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.wifi.SCAN_RESULTS flg=0x4000010 (has extras) } in klydra.wifi_hunter.WiFiHunterPlugin$1@4befe83
E/AndroidRuntime(10692): Caused by: java.lang.IllegalStateException: Reply already submitted

How to stop (manually / abort) the progress scan??

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

4 participants