-
Notifications
You must be signed in to change notification settings - Fork 18
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
Unable to update texture contents #34
Comments
My device SM-J410f not use useExternalCameraTexture = true, when i set to false, camera will open but laggy |
java.nio.BufferOverflowException |
Same issue here. any workaround for that |
Sorry, using external textures is an optional optimization for newer devices that we demoed in our quickstart example, some older devices will, unfortunately, crash from this. If you are unsure if the device in question supports external textures you should be able to easily disable them If you are using the code from our quickstart you can just set as you have. The lag will change depending on the selected effect, some effects are more processor intensive than others. |
2021-12-22 08:31:08.474 5969-5969/ai.deepar.deepar_example E/AndroidRuntime: FATAL EXCEPTION: main
Process: ai.deepar.deepar_example, PID: 5969
java.lang.IllegalStateException: Unable to update texture contents (see logcat for details)
at android.graphics.SurfaceTexture.nativeUpdateTexImage(Native Method)
at android.graphics.SurfaceTexture.updateTexImage(SurfaceTexture.java:243)
at ai.deepar.deepar_example.ARSurfaceProvider.lambda$onSurfaceRequested$0$ARSurfaceProvider(ARSurfaceProvider.java:66)
at ai.deepar.deepar_example.-$$Lambda$ARSurfaceProvider$JAipkCmqGxwLcfXLPwXbYnzYXAQ.onFrameAvailable(Unknown Source:4)
at android.graphics.SurfaceTexture$1.handleMessage(SurfaceTexture.java:206)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6543)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:810)
The text was updated successfully, but these errors were encountered: