ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.16k stars 1.56k forks source link

[iOS] openPicker() fail with E_NO_IMAGE_DATA_FOUND after select an image #1489

Open howg0924 opened 3 years ago

howg0924 commented 3 years ago

Version

Platform

iOS

Expected behaviour

ImagePicker.openPicker() should return the selected image information.

Actual behaviour

ImagePicker.openPicker() failed with error E_NO_IMAGE_DATA_FOUND after selecting an image

This only happened to a small part of iOS devices of our customers. We still don’t know what caused this.

Steps to reproduce

It’s hard to reproduce. We cannot reproduce it in-house currently. All we got is customers’ complains and error code collected from their devices.

  1. call ImagePicker.openPicker() and select an image

  2. On some devices, it will failed with E_NO_IMAGE_DATA_FOUND

lunajing commented 3 years ago

@howg0924 Did you solved it?

howg0924 commented 3 years ago

@lunajing No, I don't know how to solve it yet. Do you encounter the same problem? Have any idea what caused this?

HugoGresse commented 3 years ago

Duplicate of https://github.com/ivpusic/react-native-image-crop-picker/issues/1538

howg0924 commented 3 years ago

@HugoGresse This is not an duplicate of #1538. #1538 is on Android. And I encountered the problem on iOS. I guess these two issues have different causes on native side.

HugoGresse commented 3 years ago

hmm, you're right, I believe the issue is with .heic, at this on the Camera side :/ Using Compatibility mode solved this but is not a long term solution.

TayyabaAslam3317 commented 3 years ago

@HugoGresse how di you resolve the issue?

HugoGresse commented 3 years ago

I believe the latest release fix this issue. I've not yet confirmed with my users though. https://github.com/ivpusic/react-native-image-crop-picker/pull/792

HugoGresse commented 2 years ago

it seems some users still have the issue, though I cannot find why it is happening.

HugoGresse commented 2 years ago

This should probably need more attention. Is does impact many users on our side.

anhduy5689h commented 1 year ago

This issue also occurred on v0.40.0, react-native 0.72.4. It occurred on iPad with software version 15.7.

sregg commented 2 months ago

We're having similar E_NO_IMAGE_DATA_FOUND error on both iOS and Android. It'd be great to add more info to the error message like the filename to debug more.

pckz commented 2 months ago

any news with this issue? we believe is for images which are in icloud, but makes sense too for .heic photos

"react-native-image-crop-picker": "^0.41.2",
"react-native": "0.73.3",