Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Conversation

@rurico
Copy link

@rurico rurico commented Feb 20, 2019

When I record, two files will appear on ios, that not my expected.

@bparrishMines bparrishMines changed the title Fix image picker record video has two files on IOS [image_picker] Fix image picker record video has two files on IOS Feb 22, 2019
@bparrishMines bparrishMines added bugfix submit queue The Flutter team is in the process of landing this PR. labels Feb 22, 2019
@cyanglaz
Copy link
Contributor

cyanglaz commented Mar 5, 2019

Thank you for providing the fix. I think we can fix this issue in a simpler way. I have created a PR #1315. Please feel free to take a look at it and leave comments if you'd like.
I am closing this PR now, if you think we should use this fix instead of the one I provided with some strong reason, please feel free to reopen it with detail explanation. Then we can have further discussion.

@cyanglaz cyanglaz closed this Mar 5, 2019
cyanglaz pushed a commit that referenced this pull request Mar 19, 2019
Simplified version of #1245 fix.
When pick videos, we used to create an unnecessary extra file. This PR removes the extra temp file logic.
@leenorshn
Copy link

Shutting down VM
E/AndroidRuntime( 3141): FATAL EXCEPTION: main
E/AndroidRuntime( 3141): Process: com.ombre.ombre, PID: 3141
E/AndroidRuntime( 3141): java.lang.RuntimeException: Unable to resume activity {com.ombre.ombre/com.ombre.ombre.MainActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:22846 flg=0x1 }} to activity {com.ombre.ombre/com.ombre.ombre.MainActivity}: java.lang.IllegalStateException: Received image from picker that was not requested
E/AndroidRuntime( 3141): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3506)
E/AndroidRuntime( 3141): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3546)
E/AndroidRuntime( 3141): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2795)
E/AndroidRuntime( 3141): at android.app.ActivityThread.-wrap12(ActivityThread.java)
E/AndroidRuntime( 3141): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1527)
E/AndroidRuntime( 3141): at android.os.Handler.dispatchMessage(Handler.java:110)
E/AndroidRuntime( 3141): at android.os.Looper.loop(Looper.java:203)
E/AndroidRuntime( 3141): at android.app.ActivityThread.main(ActivityThread.java:6251)
E/AndroidRuntime( 3141): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3141): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
E/AndroidRuntime( 3141): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
E/AndroidRuntime( 3141): Caused by: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2342, result=-1, data=Intent { dat=content://com.android.providers.media.documents/document/image:22846 flg=0x1 }} to activity {com.ombre.ombre/com.ombre.ombre.MainActivity}: java.lang.IllegalStateException: Received image from picker that was not requested
E/AndroidRuntime( 3141): at android.app.ActivityThread.deliverResults(ActivityThread.java:4178)
E/AndroidRuntime( 3141): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3474)
E/AndroidRuntime( 3141): ... 10 more
E/AndroidRuntime( 3141): Caused by: java.lang.IllegalStateException: Received image from picker that was not requested
E/AndroidRuntime( 3141): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleImageResult(ImagePickerDelegate.java:457)
E/AndroidRuntime( 3141): at io.flutter.plugins.imagepicker.ImagePickerDelegate.handleChooseImageResult(ImagePickerDelegate.java:396)
E/AndroidRuntime( 3141): at io.flutter.plugins.imagepicker.ImagePickerDelegate.onActivityResult(ImagePickerDelegate.java:375)
E/AndroidRuntime( 3141): at io.flutter.app.FlutterPluginRegistry.onActivityResult(FlutterPluginRegistry.java:210)
E/AndroidRuntime( 3141): at io.flutter.app.FlutterActivityDelegate.onActivityResult(FlutterActivityDelegate.java:143)
E/AndroidRuntime( 3141): at io.flutter.app.FlutterActivity.onActivityResult(FlutterActivity.java:142)
E/AndroidRuntime( 3141): at android.app.Activity.dispatchActivityResult(Activity.java:6919)
E/AndroidRuntime( 3141): at android.app.ActivityThread.deliverResults(ActivityThread.java:4174)
E/AndroidRuntime( 3141): ... 11 more
I/art ( 3141): Enter while loop.

how to handle this error?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bugfix cla: yes submit queue The Flutter team is in the process of landing this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants