-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
[image_picker] PlatformException(multiple_request, Cancelled by a second request, null, null) when picking the first default image from the ios simulator #82602
Comments
@ShunyaWatanabe Also, take a look at this open similar issue which talks about same exception you are getting, #49780 and see if it resemble your issue. |
@darshankawar Also, thanks for the suggestion. I took a look at #49780, but I'm not sure if they are the same issue. |
@ShunyaWatanabe Thanks. |
You can clone this repo: https://github.com/ShunyaWatanabe/flutter-picker-image-test |
@ShunyaWatanabe Above screenshot is from plugin's official repo https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker/example, wherein, you'll see, no explicit permission is used / handled. Can you try the same without permission_handler issue and see if you still get same issue ? |
I removed permission_handler and tried it again, and the error still occurs. I also updated the code so you could try it too https://github.com/ShunyaWatanabe/flutter-picker-image-test |
I'm experiencing this as well, when user clicks cancel button |
Thanks for the updated code sample. Using it and with latest plugin version, I was able to replicate the issue, irrespective of any kind of permission we select and seems to be happening only after selecting particular image, ie, top left image:
flutter doctor -v
|
is there a stable version we can use for now? |
This bug seems to be added at
This bug can be avoided by downgrading to image_picker: 0.7.4 |
I have the same issue on v0.8.0+1. Oddly, if I pick any other default image other than the first one (with the bunch of flowers) it doesn't give me the error. |
This is because there is a known issue to pick HEIC images (the first one is HEIC format) with PHPicker implementation. But it should only affect transcoding on simulators. So we have two options here. Either test with a real device or test with non-HEIC images until Apple solves the issue. |
The same issue with the last version of image_picker: ^0.8.0+3 PlatformException (PlatformException(multiple_request, Cancelled by a second request, null, null)) [✓] Flutter (Channel stable, 2.2.2, on macOS 11.4 20F71 darwin-arm, locale en) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.2) [✓] IntelliJ IDEA Community Edition (version 2021.1.2) [✓] VS Code (version 1.56.2) [✓] Connected device (2 available) • No issues found! |
Updated triage report for this issue can be found here #82602 (comment) |
I wrote a minimal app and...it worked fine with iOS 15.4 simulator and 0.8.5....damn. So it's some interaction with another bit of code? Dunno. Anyway, the code below works fine. So a minimal app doesn't trigger the bug/issue.
|
yes i am still facing this issue even i update the plugin to latest package |
I can consistently reproduce the problem as follows on my M1 Macbook Pro:
|
If you are on a M1 Mac you are likely hitting an iOS simulator Rosetta issue. google_maps does not yet support arm64 simulators, which is why adding it drops you back to Rosetta, exposing iOS simulator bugs. You're hitting #82602 (comment) and #74970 (comment). We have an open issue to update google_maps at #94491 but essentially Apple needs to fix that bug. However, if you are running on an x64 intel machine, as the originator is, you are not hitting a Rosetta issue. This open GitHub issue is tracking that. |
I was able to get a different error by picking a different image (JPG) from the default ones and updating my Xcode.
I'm using the VERY latest version of Xcode 13.4.1 (therefore latest simulator). Repro: 1 - Download the example app image_picker Another thing. This is weird - not sure if is related: Photos app crash when you get Information about picture. 1 - Go to Photos
|
Updating the issue since this is reproducible on intel machine too. |
I still can see this exception on |
Still happening in version image_picker: ^0.8.6. in IOS simulator. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
flutter create temp
.flutter run --verbose
Expected results:
Image picker should work on all of the default pictures.
Actual results:
One of them doesn't work, with the error that says
PlatformException(multiple_request, Cancelled by a second request, null, null)
If this is the expected result, I'd like to know what the cause is and request better logs for better understanding.
cancelled_by_second_request.mov
Logs
The text was updated successfully, but these errors were encountered: