react-native-image-crop-picker icon indicating copy to clipboard operation
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).

Open RaviGehlot1 opened this issue 3 years ago • 6 comments

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)

RaviGehlot1 avatar Jan 11 '22 06:01 RaviGehlot1

crashing for me as well

shivamKredX avatar Jan 20 '22 09:01 shivamKredX

crashing for me as well

uneshpanwar avatar Jan 24 '22 08:01 uneshpanwar

Same here

linus-komnick avatar Mar 07 '22 18:03 linus-komnick

Same issue, app crash after image taken from camera

SomnathKadam avatar Mar 29 '22 12:03 SomnathKadam

App crashes on some devices not all devices. The issue is might be because of activity killed in the background. Anyone with a solution?

abdulqadir-jugnu avatar May 10 '22 12:05 abdulqadir-jugnu

Same here too

parthaglo avatar Jun 01 '22 04:06 parthaglo