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

Deny Camera Permission crashed the app #17

Closed
sleith opened this issue Sep 20, 2018 · 3 comments
Closed

Deny Camera Permission crashed the app #17

sleith opened this issue Sep 20, 2018 · 3 comments

Comments

@sleith
Copy link

sleith commented Sep 20, 2018

Hi,
I found out that if I deny permission for camera, it will crash.
Please find the log below
Thank you

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=9010, result=13, data=null} to activity {.MainActivity}: java.lang.IllegalStateException: Reply already submitted
        at android.app.ActivityThread.deliverResults(ActivityThread.java:4196)
        at android.app.ActivityThread.handleSendResult(ActivityThread.java:4239)
        at android.app.ActivityThread.-wrap20(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1599)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:165)
        at android.app.ActivityThread.main(ActivityThread.java:6365)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:883)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
     Caused by: java.lang.IllegalStateException: Reply already submitted
        at io.flutter.view.FlutterNativeView$1.reply(FlutterNativeView.java:174)
        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:199)
        at io.github.edufolly.fluttermobilevision.FlutterMobileVisionPlugin.onActivityResult(FlutterMobileVisionPlugin.java:188)
        at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
        at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:139)
        at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:138)
        at android.app.Activity.dispatchActivityResult(Activity.java:7116)
@edufolly edufolly added this to the 0.0.5 milestone Sep 21, 2018
@edufolly edufolly modified the milestones: 0.0.5, 0.1.5 Dec 16, 2018
@edufolly
Copy link
Owner

Hi @sleith,

released a new version, please test. Waiting for your feedback.

@wheel1992
Copy link

Hi, has this fix release to 0.1.4?

@edufolly
Copy link
Owner

edufolly commented Feb 5, 2019

Hi @wheel1992,

probably yes.

@edufolly edufolly closed this as completed Feb 5, 2019
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

3 participants