Hello,
I'm having an issue with the "Assets\Samples\VIVE Hand Tracking SDK\1.0.0\Sample\ARFoundation.unity" scene.
For some reason the camera passthrough does not work. My setup is:
Unity: 2021.1.21f1
Packages: Description:
When compiling and running it on my phone, the screen is black but the hand tracking is working.
I have narrowed it down to the GestureProvider.cs script. If it is disabled, camera passthrough works but it defeats the purpose.
Using logcat I managed to extract this:
2021/09/19 22:31:56.287 5246 5289 Error native ################ ARCore Native Error ##################
2021/09/19 22:31:56.287 5246 5289 Error native BUILD_CHANGELIST:387218412
2021/09/19 22:31:56.287 5246 5289 Error native BUILD_BASELINE_CHANGELIST:385683590
2021/09/19 22:31:56.287 5246 5289 Error native ################### Stack Trace Begin ################
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/infrastructure/cameras_external_state.cc:193 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/infrastructure/cameras_external_state.cc?g=0&l=193
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/infrastructure/cameras_async.cc:162 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/infrastructure/cameras_async.cc?g=0&l=162
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/infrastructure/android_data_source.cc:635 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/infrastructure/android_data_source.cc?g=0&l=635
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/core/session.cc:1762 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/session.cc?g=0&l=1762
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/core/c_api/session_lite_c_api.cc:76 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/c_api/session_lite_c_api.cc?g=0&l=76
2021/09/19 22:31:56.287 5246 5289 Error native ################### Stack Trace End #################
2021/09/19 22:31:56.287 5246 5289 Error native
2021/09/19 22:31:56.287 5246 5289 Error native ################### Undecorated Trace Begin #################
2021/09/19 22:31:56.287 5246 5289 Error native FAILED_PRECONDITION:
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/core/session.cc:1762
2021/09/19 22:31:56.287 5246 5289 Error native
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/infrastructure/android_data_source.cc:635
2021/09/19 22:31:56.287 5246 5289 Error native
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/infrastructure/cameras_async.cc:162
2021/09/19 22:31:56.287 5246 5289 Error native
2021/09/19 22:31:56.287 5246 5289 Error native ARCoreError: third_party/arcore/ar/infrastructure/cameras_external_state.cc:193
2021/09/19 22:31:56.287 5246 5289 Error native Operation required Started but state is Error
2021/09/19 22:31:56.287 5246 5289 Error native === Source Location Trace: ===
2021/09/19 22:31:56.287 5246 5289 Error native third_party/arcore/ar/infrastructure/cameras_external_state.cc:327
2021/09/19 22:31:56.287 5246 5289 Error native third_party/arcore/ar/infrastructure/cameras_external_state.cc:193
2021/09/19 22:31:56.287 5246 5289 Error native third_party/arcore/ar/infrastructure/cameras_async.cc:162
2021/09/19 22:31:56.287 5246 5289 Error native third_party/arcore/ar/infrastructure/android_data_source.cc:635
2021/09/19 22:31:56.287 5246 5289 Error native third_party/arcore/ar/core/session.cc:1762
2021/09/19 22:31:56.287 5246 5289 Error native
2021/09/19 22:31:56.287 5246 5289 Error native ################### Undecorated Trace End #################
2021/09/19 22:31:56.287 5246 5289 Error native
2021/09/19 22:31:56.287 5246 5289 Error native session_manager.cc:115 ArPresto::ArSession_update failed with status -2.
This seems not to happen when I disable the GestureProvider.
I could not find the sources for the SDK so I could not dig further.
If anyone has any idea, it would help a lot. Photo with GestureProvider enabled: Photo with GestureProvider disabled:
Thanks.