I have a managed expo app that uses expo SDK 39 and expo image picker ("expo-image-picker": "~9.1.0") currently in production. Some android users have reported the camera feature "not working" which makes a call to ImagePicker.launchCameraAsync(). I have been able to reproduce it on a Nexus S Emulator running android 10, the whole app crashes. No error messages are logged.
I thought that the issue was specific to Android 10, however some users reported the issue on Android 11 (and android 8).
I tried wrapping a try-catch block to pull out an error, with no luck, the app still crashes, and no logs.
I also tried making a dummy app with only the above functionality in question, however I get the same results on the Nexus S emulator: The app crashes, no reports logged.
Here is an example of the function call which is triggering the crashes.
const takeImage = async () => { let result = await ImagePicker.launchCameraAsync({ mediaTypes: ImagePicker.MediaTypeOptions.Images, allowsEditing: true, aspect: [4, 3], quality: 1, base64: true, }); if (!result.cancelled) { console.log(result.uri); } };