New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
imagePicker Crashing with Expo 31.0.0 Android 8.1 #2925
Comments
Hey, @nickjuntilla! Could you please check if the following Snack crashes on your Moto X4? https://snack.expo.io/@sjchmiela/lonely-cookies I tried reproducing your issue with the code you provided and I couldn't make the app crash. 😕 |
The same thing happens both in the "lonely-cookies" snack and in my app on Nexus 5X (Android 8.1.0), no matter whether I run my app locally via expo-cli, or publish it to the Expo server. My version of Expo is 31.0.6. |
Thanks for helping out. Yes, his phone (MotoX4 Android 8.1) does crash on the snack as well. It crashes right after the cropping happens.
Both permissions are granted. The code does work for other versions of android, but I haven't tested any other phones with Android 8.1. I don't have access to any. |
Hello there, Do we have to find a work around ? Is it only on "Moto" device ? Android 8.1 ? |
Could you please try reproducing this issue on SDK32? The problem may have been fixed in-between. 🙃 |
We have this problem as well. Any updates? |
having a similar issue in an application of mine. We recently update to v32 hoping that it would've fixed the issue, but no dice. We are experiencing the Application crashing / closing when asking for the permissions: await Permissions.askAsync(Permissions.CAMERA);
await Permissions.askAsync(Permissions.CAMERA_ROLL); Any updates? |
Same problem with launchImageLibraryAsync. The test was performed on the LG-H324 with Android 5.0 and Meizu M6 with Android 7.0. The code has not been changed and is taken from https://docs.expo.io/versions/v32.0.0/sdk/imagepicker/ and from https://snack.expo.io/ |
I've noticed restarting device helps this problem temporarily. Can It be an insufficient RAM issue? |
Guys, do we have an update on this ? The problem persists. |
Still having this issue using Latest version 9 of android SDK on simulator.
The first console log never outputs anything |
I got this error on SDK 34
|
Any update on this issue? |
not sure but after using |
Issue continues to persist for me. |
I have the same problem on sdk 33 :( |
I have the same problem on sdk 34 with physical Nokia 3.1 and Android 7.1 Nougat. |
I don't know reason why, when we use ImagePicker to take a photo, android kills the app for memory issue. |
Hi everyone, could someone check if this happens on SDK 35? Today, I've checked Nokia 5.1 and Nexus 5X. Everything worked fine. |
I was previously on SDK 34 and was experiencing this issue with the Galaxy S9 simulator. I updated to SDK 35 and everything now seems to work. |
Same problem on Xiaomi Redmi 6A with android 8.1. I'm using SDK 35 and client version 2.13. Sometime i can take and show the picture but mostly being reloaded without giving error. launchImageLibraryAsync does fine tho. |
I have the same problem in both SDK33 and SDK35 on my test Samsung SM-T725. Most of the time I'm trying to write an app we can provide to our clients so I need it to be robust. Is there likely to be a fix or should I look at ejecting it? Or is Expo just not production ready? |
We have a user experiencing what I think is the same issue, although we've been unable to reproduce using a similar device. For the people able to reproduce this, any chance of hooking up adb and providing the stack trace here? Might help the Expo developers track down the issue even if unable to reproduce it |
@SimenB: after all we think we've tracked it down to being a memory issue. We watched the device logs (using |
I've created PR which optimize I'm still struggling with reproducing this bug. To do this:
|
It's been a while since we've had any activity on this issue, and seeing as it needs more info before we can properly address it, we will be closing it in one month. If you've found a fix, please share it! Otherwise, please provide the info we asked for, especially a reproducible example. Thanks! |
This issue has been automatically closed since there has not been any recent activity after it was marked as stale. Please open a new issue for any related bugs. |
@lukmccall I've now gotten a log from the user that is experiencing crashes. Do you have an email address I can forward it to? |
I can attach crash logs as well (see #7946) |
Environment
Expo CLI 2.4.1 environment info:
System:
OS: macOS 10.14.1
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 9.4.0 - ~/.nvm/versions/node/v9.4.0/bin/node
npm: 6.4.1 - ~/.nvm/versions/node/v9.4.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
expo: ^31.0.2 => 31.0.5
react: 16.5.0 => 16.5.0
react-native: https://github.com/expo/react-native/archive/sdk-31.0.0.tar.gz => 0.57.1
react-navigation: 1.5.11 => 1.5.11
npmGlobalPackages:
expo-cli: 2.4.1
The device crashing is a Moto X4 Android 8.1
Steps to Reproduce
You can try the project here: https://expo.io/@receiptcoin/receiptchain
Taking a photo using the camera doesn't crashes the app.
Here is the code I'm using
Both permissions are granted on the user's moto X4, but the app still crashes upon the ImagePicker.launchCameraAsync call.
The text was updated successfully, but these errors were encountered: