-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
cameraWithTensors() crashes the app immediatly on Android 11/12 #6230
Comments
I am having the same problem. App crashes with no catchable error right after call
|
I am having the same issue mentioned by @GewoonJaap App crashes with no catchable error |
I am having the same issue. Any help would be appreciated :( |
Hi, Sorry for the delay. We finally got a phone that can run Android 12:) Looks like this is a bug in expo-gl. See here. The only workaround seems to be downgrading expo to 43.0.5 for now. This should fix the crash (tested on Pixel 6) At this point, you might also notice that the key points no longer appear (or at seemingly random places). If so, add the following before loading the model: tf.env().set('WEBGL_PACK_DEPTHWISECONV', false); Give it a try! Thanks |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you. |
Closing as stale. Please @mention us if this needs more attention. |
System information
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MacOS
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: Android 11/12, no matter which device
Installed NPM packages:
"@tensorflow-models/mobilenet": "^2.1.0",
"@tensorflow/tfjs": "^3.14.0",
"@tensorflow/tfjs-react-native": "^0.8.0",
"expo-camera": "~12.1.2",
Describe the current behavior
The app crashes immediatly when calling
import { Camera } from 'expo-camera'; cameraWithTensors(Camera);
No error is thrown/can't catch the error with try catchDescribe the expected behavior
The app should not crash or atleast throw an error
Standalone code to reproduce the issue
https://pastebin.com/raw/JAMdvYTy
The text was updated successfully, but these errors were encountered: