java.lang.IllegalStateException: Reply already submitted
See original GitHub issueIf I run these lines of code then doing a navigation to another screen and go back again, I get some android related errors.
Code snippet:
final _autoFill = SmsAutoFill();
final completePhoneNumber = await _autoFill.hint;
This issue seems be similar to this issue described here: https://github.com/flutter/flutter/issues/29092 “java.lang.IllegalStateException: Reply already submitted” However I am not sure whats going on there.
Errors I receive:
D/AndroidRuntime(32542): Shutting down VM
E/AndroidRuntime(32542): FATAL EXCEPTION: main
E/AndroidRuntime(32542): Process: app.xxx, PID: 32542
E/AndroidRuntime(32542): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=11012, result=0, data=Intent { }} to activity {app.xxx/app.xxx.MainActivity}: java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(32542): at android.app.ActivityThread.deliverResults(ActivityThread.java:5097)
E/AndroidRuntime(32542): at android.app.ActivityThread.handleSendResult(ActivityThread.java:5138)
E/AndroidRuntime(32542): at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
E/AndroidRuntime(32542): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/AndroidRuntime(32542): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/AndroidRuntime(32542): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2147)
E/AndroidRuntime(32542): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(32542): at android.os.Looper.loop(Looper.java:237)
E/AndroidRuntime(32542): at android.app.ActivityThread.main(ActivityThread.java:7811)
E/AndroidRuntime(32542): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(32542): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
E/AndroidRuntime(32542): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1076)
E/AndroidRuntime(32542): Caused by: java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(32542): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:139)
E/AndroidRuntime(32542): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:231)
E/AndroidRuntime(32542): at com.jaumard.smsautofill.SmsAutoFillPlugin$1.onActivityResult(SmsAutoFillPlugin.java:68)
E/AndroidRuntime(32542): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:204)
E/AndroidRuntime(32542): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:127)
E/AndroidRuntime(32542): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:139)
E/AndroidRuntime(32542): at android.app.Activity.dispatchActivityResult(Activity.java:8292)
E/AndroidRuntime(32542): at android.app.ActivityThread.deliverResults(ActivityThread.java:5090)
E/AndroidRuntime(32542): ... 11 more
I/Process (32542): Sending signal. PID: 32542 SIG: 9
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Reply already submitted -- When trying to call result.success ...
When I am trying to pass value multiple times from android native to flutter am getting the below exception. E/AndroidRuntime(14203): java.lang.
Read more >java.lang.IllegalStateException: Reply already submitted with ...
See the original issue description at the top of this page; the reported issue is that having two asynchronous method channel requests in...
Read more >Flutter: Reply already submitted - RevenueCat Community
Anyone had this crash? Fatal Exception: java.lang.IllegalStateException: Reply already submitted at io.flutter.embedding.engine.dart.
Read more >flutter/flutter - Gitter
I want to get a uri, then check if it's openable. Getting "Replay already submitted". Known issue I guess. I mean "reply" there,...
Read more >java.lang.IllegalStateException: Reply already submitted
java.lang.IllegalStateException: Reply already submitted -- When trying to call result.success multiple times.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is happening in production also now it is critical … on lower end devices if you tap twice on phone hint dialog it crashes @jaumard
Hi there! Have any one fixed this issue its coming in production.