react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
E_NO_IMAGE_DATA_FOUND Android 13
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.
- Use android 13
- 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" }
Same here, no image returned on Android
ya still an issue in 0.40.2
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.
still an issue even with cropping disabled i'm not getting an image back on android 13
still getting this issue in 41.1