react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

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

Open howg0924 opened this issue 4 years ago • 12 comments

Version

  • react-native-image-crop-picker v0.35.1
  • react-native v0.62.2

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

howg0924 avatar Dec 14 '20 17:12 howg0924

@howg0924 Did you solved it?

lunajing avatar Feb 26 '21 09:02 lunajing

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

howg0924 avatar Feb 27 '21 14:02 howg0924

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

HugoGresse avatar Apr 28 '21 07:04 HugoGresse

@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.

howg0924 avatar Apr 28 '21 17:04 howg0924

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.

HugoGresse avatar Apr 28 '21 18:04 HugoGresse

@HugoGresse how di you resolve the issue?

TayyabaAslam3317 avatar May 28 '21 10:05 TayyabaAslam3317

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 avatar Jun 01 '21 09:06 HugoGresse

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

HugoGresse avatar Sep 14 '22 08:09 HugoGresse

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

HugoGresse avatar Oct 17 '22 07:10 HugoGresse

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

anhduy5689h avatar Sep 14 '23 03:09 anhduy5689h