Skip to content

[image_picker] Some ProRaw images do not load #117240

@vashworth

Description

@vashworth

Steps to Reproduce

  1. Take a bunch of ProRaw images on an iPhone (mine was iPhone 13 Pro Max with iOS 16.1.2)
  2. Run example app for image_picker_ios on device
  3. Use image picker to select ProRaw images, some will work and some with error

Note: ProRaw is only available on iOS 14.3 or later and an iPhone 12 Pro or later Pro models

Expected results:

Expect all ProRaw images to be able to be loaded.

Actual results:

Some of the ProRaw images I selected would work and some would error. It was very consistent, the same ones would work/not work. At first I thought maybe it had to do with the image size, but I tried a bunch of different sizes and ruled that out. I don't think it's an issue with permissions (I gave full access for the Photo Library and even tried some other permissions such as NSFileProviderDomainUsageDescription, NSLocationUsageDescription, etc). I also don't think it's related to iCloud since mine is turned off.

I've also tried all of the other methods of loading the provider's contents for NSItemProvider, but none of them have worked.

I also tried each of the different preferredAssetRepresentationModes.

The error:

2022-12-16 15:56:42.690060-0600 Runner[4387:1258620] [claims] 50095CE6-07B6-49A7-B756-0A2AFDAE8CCB grantAccessClaim reply is an error: Error Domain=NSCocoaErrorDomain Code=4097 "Couldn’t communicate with a helper application." UserInfo={NSUnderlyingError=0x2802f2520 {Error Domain=NSCocoaErrorDomain Code=4097 "connection from pid 4390 on anonymousListener or serviceListener" UserInfo={NSDebugDescription=connection from pid 4390 on anonymousListener or serviceListener}}}
2022-12-16 15:56:42.693931-0600 Runner[4387:1258620] Could not process image: Error Domain=NSItemProviderErrorDomain Code=-1000 "Cannot load representation of type com.adobe.raw-image" UserInfo={NSLocalizedDescription=Cannot load representation of type com.adobe.raw-image, NSUnderlyingError=0x280245f80 {Error Domain=NSCocoaErrorDomain Code=4097 "Couldn’t communicate with a helper application." UserInfo={NSUnderlyingError=0x2802f2520 {Error Domain=NSCocoaErrorDomain Code=4097 "connection from pid 4390 on anonymousListener or serviceListener" UserInfo={NSDebugDescription=connection from pid 4390 on anonymousListener or serviceListener}}}}}

Notes:

Code sample

https://github.com/flutter/plugins/tree/main/packages/image_picker/image_picker_ios/example

Logs
> flutter analyze
No issues found! (ran in 1.6s)
> flutter doctor -v
[!] Flutter (Channel master, 3.7.0-9.0.pre, on macOS 12.6.1 21G217 darwin-arm64, locale en)
    • Flutter version 3.7.0-9.0.pre on channel master at ***
    ! Upstream repository [email protected]:vashworth/flutter.git is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to [email protected]:vashworth/flutter.git to dismiss this error.
    • Framework revision dcd2170d14 (29 hours ago), 2022-12-15 09:13:36 -0800
    • Engine revision db5605ea71
    • Dart version 3.0.0 (build 3.0.0-21.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to
      perform update checks and upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at ***
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

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

[✓] Android Studio (version 2021.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.13+0-b1751.21-8125866)

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

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

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions