camera launch - android crash only

App crashes only with (internal) android build (not with expo, not with standalone internal ios build) when calling the camera (expo-camera)

Permission request before launching the comp with the camera
=> const { status } = await Camera.requestCameraPermissionsAsync(); resp. const { status } = await Camera.requestMicrophonePermissionsAsync();
if (status == ‘granted’) navigation.navigate(’ …

Also tried it within useEffect of the comp, but with no difference.

EAS CLI 0.45.1 environment info:
System:
OS: Windows 10 10.0.19043
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
Utilities:
Git: 2.33.0.
npmPackages:
expo: ^44.0.0 => 44.0.5
expo-updates: ~0.11.4 => 0.11.4
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
Project workflow: managed

Expo CLI 5.0.3 environment info:
System:
OS: Windows 10 10.0.19043
Binaries:
Node: 16.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.3.1 - C:\Program Files\nodejs\npm.CMD
Watchman: 20200730.120504.0 - C:\Users\herma\AppData\Local\watchman\watchman.EXE
IDEs:
Android Studio: Version 2020.3.0.0 AI-203.7717.56.2031.7621141
npmPackages:
@expo/metro-config: ^0.2.8 => 0.2.8
expo: ^44.0.0 => 44.0.5
react: 17.0.1 => 17.0.1
react-dom: 17.0.1 => 17.0.1
react-native: 0.64.3 => 0.64.3
react-native-web: 0.17.1 => 0.17.1
Expo Workflow: managed

App.json (extract)
“android”: {
“googleServicesFile”: “./google-services.json”,
“adaptiveIcon”: {
“foregroundImage”: “./src/assets/”,
“backgroundColor”: “#FFFFFF
},
“package”: “”,
“versionCode”: 12,
“softwareKeyboardLayoutMode”: “pan”,
“permissions”: [“CAMERA”, “RECORD_AUDIO”, “NOTIFICATION”, “WRITE_SETTINGS”, “VIBRATE”, “READ_PHONE_STATE”, “READ_EXTERNAL_STORAGE”, “WRITE_EXTERNAL_STORAGE”, “ACCESS_FINE_LOCATION”, “ACCESS_BACKGROUND_LOCATION”],
“useNextNotificationsApi”: true
},

Also tried it without “permissions” at all, but again, with no difference.

Hey @htrappmaier, I recommend taking a look at our debugging docs here.

Cheers,
Adam

good point:
sentry result:

NullPointerException

Attempt to invoke interface method ‘expo.modules.interfaces.barcodescanner.BarCodeScannerInterface expo.modules.interfaces.barcodescanner.BarCodeScannerProviderInterface.createBarCodeDetectorWithContext(android.content.Context)’ on a null object reference

Important to notice: I do NOT use the BarCodeScanner

Installing expo-barcodescanner and expo-facedetector solved the problem.
As mentioned above, the app doesn’t use the barcode scanner and the face detector. Nevertheless, may be it’s a expo and not an eas issue (even it only appears with eas build)