react-native-image-crop-picker
react-native-image-crop-picker copied to clipboard
Published app is crashing while taking image from camera or gallery both in Hisense E50 Lite (Android 11).
Description Hello, Thank you for the Library
On specific a Android devices (Hisense E50 Lite) crash just after clicking image from camera or selecting from gallery. (On other android devices works well even iOS also working fine.)
Please find the crash issue which is find out by Google Play Console : java.lang.IllegalArgumentException com.imagepicker.utils.MediaUtils.getResizedImage
Full Crash Log:
java.lang.RuntimeException: at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4542) at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:4574) at android.app.servertransaction.ResumeActivityItem.execute (ResumeActivityItem.java:52) at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2104) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loop (Looper.java:223) at android.app.ActivityThread.main (ActivityThread.java:7932) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:603) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:947) Caused by: java.lang.RuntimeException: at android.app.ActivityThread.deliverResults (ActivityThread.java:5137) at android.app.ActivityThread.performResumeActivity (ActivityThread.java:4528) Caused by: java.lang.IllegalArgumentException: at android.graphics.Bitmap.compress (Bitmap.java:1437) at com.imagepicker.utils.MediaUtils.getResizedImage (MediaUtils.java:178) at com.imagepicker.ImagePickerModule.onActivityResult (ImagePickerModule.java:483) at com.facebook.react.bridge.ReactContext.onActivityResult (ReactContext.java:308) at com.facebook.react.ReactInstanceManager.onActivityResult (ReactInstanceManager.java:758) at com.facebook.react.ReactDelegate.onActivityResult (ReactDelegate.java:90) at com.facebook.react.ReactActivityDelegate.onActivityResult (ReactActivityDelegate.java:112) at com.facebook.react.ReactActivity.onActivityResult (ReactActivity.java:68) at android.app.Activity.dispatchActivityResult (Activity.java:8392) at android.app.ActivityThread.deliverResults (ActivityThread.java:5130)
crashing for me as well
crashing for me as well
Same here
Same issue, app crash after image taken from camera
App crashes on some devices not all devices. The issue is might be because of activity killed in the background. Anyone with a solution?
Same here too