Skip to content

[image_picker] PlatformException(multiple_request, Cancelled by a second request, null, null) when picking the first default image from the ios simulator #82602

@ShunyaWatanabe

Description

@ShunyaWatanabe

Steps to Reproduce

  1. Run flutter create temp.
  2. Update the files as follows: ShunyaWatanabe/flutter-picker-image-test@3e4feeb
  3. Run flutter run --verbose
  4. Click the button on the bottom right, which is the increment counter
  5. Approve permission
  6. Load different default pictures

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
[+4665 ms] flutter: error: PlatformException(multiple_request, Cancelled
by a second request, null, null)
Analyzing temp...
No issues found! (ran in 2.5s)
[✓] Flutter (Channel stable, 2.0.4, on Mac OS X 10.15.7 19H114 darwin-x64,
    locale en-JP)
    • Flutter version 2.0.4 at /Users/shunya_watanabe/development/flutter
    • Framework revision b1395592de (6 weeks ago), 2021-04-01 14:25:01
      -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version
    30.0.3)
    • Android SDK at /Users/shunya_watanabe/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/shunya_watanabe/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.3, Build version 12C33
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google
      Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.56.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.22.0

[✓] Connected device (2 available)
    • iPhone 8 (mobile) • 14C87317-9478-42BE-AEE5-9CC4FF5590BA • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • Chrome (web)      • chrome                               •
      web-javascript • Google Chrome 90.0.4430.212

• No issues found!

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 2.10Found to occur in 2.10found in release: 2.2Found to occur in 2.2has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions