Skip to content

[image_picker] If my phone has a raw format file from the camera, the app will crash after selecting it. #146682

@Moyck

Description

@Moyck

Steps to reproduce

Save a Sony raw format picture ARW and select it through imagepicker, the app will crash (ios)****

Expected results

I hope imagepicker can exclude such raw files, or I hope imagepicker can help me process photos in this format.

Actual results

app crash

Code sample

ImagePicker imagePicker = ImagePicker();
var pickImages = (await imagePicker.pickMultiImage(
maxWidth: 1440, maxHeight: 1440, imageQuality: 95));

Screenshots or Video

image

Logs

No response

Flutter Doctor output

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.3, on macOS 14.0 23A339 darwin-arm64, locale
en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.3)
[✓] VS Code (version 1.87.2)
[✓] Connected device (3 available)
! Error: Browsing on the local area network for iPhone 000. Ensure the
device is unlocked and attached with a cable or associated with the same
local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code
-27)
! Error: Browsing on the local area network for iPhone 456. Ensure the
device is unlocked and attached with a cable or associated with the same
local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code
-27)
! Error: Browsing on the local area network for iPhone 123. Ensure the
device is unlocked and attached with a cable or associated with the same
local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code
-27)
[!] Network resources
✗ An HTTP error occurred while checking "https://github.com/": Connection
closed before full header was received

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: fatal crashCrashes that terminate the processfound in release: 3.19Found to occur in 3.19found in release: 3.22Found to occur in 3.22fyi-ecosystemFor the attention of Ecosystem teamhas 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 versionteam-iosOwned by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions