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

E_NO_IMAGE_DATA_FOUND Android 13

Open nescroft opened this issue 1 year ago • 5 comments

Version

Tell us which versions you are using:

  • react-native-image-crop-picker ^0.40.1
  • react-native 0.71.7
  • android 13

Platform

Android 13

Expected behaviour

After image is selected it will be cropped and the path will become available

Actual behaviour

After image is selected it goes directly into the catch block with error E_NO_IMAGE_DATA_FOUND

Steps to reproduce

This has been working normally before. And it currently works on android 14. I have verified that android.permission.READ_MEDIA_IMAGES is granted. Whether or not it is granted the picker opens and shows the images and then when trying to get the path it fails. It seems to happen whether or not cropping is enabled.

  1. Use android 13
  2. open picker and select image

Attachments

// stacktrace or any other useful debug info

adb logcat (i added some logs in the croppingResult function in the PickerModule.java Cropping result URI: file:///data/user/0/com.mypackage.name/cache/react-native-image-crop-picker/c7e7ef9c-a8c0-404d-95c3-e092dcf3aff6.jpg 11-02 13:20:44.667 951 951 I SurfaceFlinger: operator()(), mtkRenderCntDebug 132623, screenshot (com.mypackage.name/com.yalantis.ucrop.UCropActivity#21913) 11-02 13:20:44.673 31081 31081 W PickerModule: Resized image path: /storage/emulated/0/Android/data/com.mypackage.name/files/Pictures/70cbac1b-c717-4869-9ec3-08592393bf76.jpg 11-02 13:20:44.675 539 600 E vold : Failed to set project id on /data/media/0/Android/data/com.mypackage.name/: Operation not supported on transport endpoint 11-02 13:20:44.676 31081 31081 W ContextImpl: Failed to ensure /storage/emulated/0/Android/data/com.mypackage.name/cache: android.os.ServiceSpecificException: (code -1)

react native openPicker catch block { "nativeStackAndroid": [], "userInfo": null, "message": "file", "code": "E_NO_IMAGE_DATA_FOUND" }

nescroft avatar Nov 02 '23 19:11 nescroft

Same here, no image returned on Android

charlyBerthet avatar Nov 03 '23 12:11 charlyBerthet

ya still an issue in 0.40.2

nescroft avatar Nov 15 '23 20:11 nescroft

I am experiencing this issue on 0.40.x version on Android. Disabling crop works, but the main purpose of this library is enable cropping.

lluisandreu avatar Dec 07 '23 14:12 lluisandreu

still an issue even with cropping disabled i'm not getting an image back on android 13

nescroft avatar Feb 02 '24 18:02 nescroft

still getting this issue in 41.1

nescroft avatar Jun 09 '24 23:06 nescroft