Skip to content

[image_picker] No response when picking a BMP image on iOS #95885

@mj-hd

Description

@mj-hd

Steps to Reproduce

  1. Run image_picker's official example project on an iOS device (or iOS Simulator)
  2. Pick a BMP image (e.g. https://people.math.sc.edu/Burkardt/data/bmp/bmp_24.bmp)

Expected results: Showing the BMP image content, or throwing an exception if the plugin cannot handle BMP format.

Actual results: pickImage() future never completes nor rejects.

Code sample: official example

Logs
There is no log.
❯ flutter analyze
Analyzing example...
No issues found! (ran in 1.7s)
❯ fvm flutter doctor -v
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.6 20G165 darwin-arm, locale ja-JP)
    • Flutter version 2.5.0 at /opt/homebrew/Caskroom/flutter/2.2.3/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (4 months ago), 2021-09-07 23:01:49 -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/***/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 13.2, Build version 13C90
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2020.3)
    • 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 11.0.10+0-b96-7249189)

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

[✓] Connected device (5 available)
    ***

• No issues found!
Kapture.2021-12-28.at.14.52.50.mp4

Device Info: iPhone 13 iOS 15.2 (Simulator), iPhone SE2 iOS 15.0(Real Device)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listfound in release: 2.8Found to occur in 2.8found in release: 2.9Found to occur in 2.9has 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