ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.08k stars 1.55k forks source link

Camera crash #1517

Open Neha0595 opened 3 years ago

Neha0595 commented 3 years ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

Expected behaviour

Camera doesn't behave as expected

Actual behaviour

Camera is crashing

Steps to reproduce

  1. click image from camera then

  2. Select done then it crash

Other Info

Device Specific issue not occurring in other devices

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

gulsher7 commented 3 years ago

same here did you find any solution regarding app crash. My app is restart when i upload the image from the camera.

lewisbird commented 3 years ago

I'm getting the same issue when taking a photo with openCamera(). I have two Oppo A5's, both on Android 10. One of them it crashes, the other one works fine. Not getting any crash reports into Sentry either which is strange.

akanksha-agarwal93 commented 3 years ago

I got the issue resolved - for me, flipper was the problem. If you are using React-Native version > 0.60 try -

@override public void onCreate() { super.onCreate(); SoLoader.init(this, / native exopackage / false); // initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); -------> commenting this line helped }

in MainApplication.java

Sruthinaga commented 2 years ago

same here did you find any solution regarding app crash. My app is restart when i upload the image from the camera.

Same here, my app is restarting when tick button is clicked after taking picture

suraj7845 commented 2 years ago

its the bug from the npm package .... can help with it

BLOCKMATERIAL commented 2 years ago

same problem, help.

SomnathKadam commented 2 years ago

same issue,

Failure delivering result ResultInfo{who=null, request=61111, result=-1, data=null} to activity {com.testapp/com.testapp.MainActivity}: java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter data

aparnagude396 commented 2 years ago

Hi Guys, I'm having same issue. i'm using latest react native and react-native-image-crop-picker. But my app getting crashed while user taking picture on camera on specific mobiles like Redmi Note 7. Can anyone please help me out of this issue. I'm checking about this issue from last 2 days. I couldn't find any solution for this.

BLOCKMATERIAL commented 2 years ago

Hi Guys, I'm having same issue. i'm using latest react native and react-native-image-crop-picker. But my app getting crashed while user taking picture on camera on specific mobiles like Redmi Note 7. Can anyone please help me out of this issue. I'm checking about this issue from last 2 days. I couldn't find any solution for this.

The only thing we came up with with the team to solve this problem are two options

1.Use vision-camera, write your own approach for working with the camera. 2.Leave it as it is.

parthasarathi95 commented 1 year ago

I am using the 0.38.0 version. App crashes after clicking photo and video. Please help.