Question by
bawenang · Jun 29, 2018 at 07:22 AM ·
androidwebcamtexture
Unity Android camera crash
Hi, my game crashed when I tried it on a custom Android x86-64. This is what the logcat showed:
06-29 14:10:05.834 5897-5954/com.poing.photobooth E/AndroidRuntime: FATAL EXCEPTION: UnityHardwareCamera
Process: com.poing.photobooth, PID: 5897
java.lang.Error: FATAL EXCEPTION [UnityHardwareCamera]
Unity version : 2017.3.1f1
Device model : GIGABYTE GB-BACE-3000
Device fingerprint: Android-x86/android_x86_64/x86_64:7.1.2/N2G48H/cwhuan05021355:userdebug/test-keys
Caused by: java.lang.RuntimeException: startPreview failed
at android.hardware.Camera.startPreview(Native Method)
at bitter.jnibridge.JNIBridge.invoke(Native Method)
at bitter.jnibridge.JNIBridge$a.invoke(Unknown Source)
at java.lang.reflect.Proxy.invoke(Proxy.java:813)
at $Proxy8.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
How do I fix this? Is there any library that I can use to use the Android's physical camera directly instead of using Unity's?
Thanks.
Comment