google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.95k stars 1.22k forks source link

Augmented faces doesn't work on a device listed as supported #1583

Open kravczyk opened 1 year ago

kravczyk commented 1 year ago

SPECIFIC ISSUE ENCOUNTERED

augmented_faces_java sample app doesn't work on Samsung Galaxy S8, Android 9. This was tested on two separate devices. Logcat gives the following error:

2023-05-15 14:27:18.768 20930-21108/com.google.ar.core.examples.java.augmentedfaces E/native: E0000 00:00:1684153638.768379   21108 mesh_estimator.cc:219] INTERNAL: RET_CHECK failure (research/xeno/face_transform/mesh_estimator.cc:219) vertex_normal.Length() > kAbsoluteErrorEps (0 vs. 1e-09) Failed to compute normal for vertex #148!
    Stack trace:
2023-05-15 14:27:18.768 20930-21108/com.google.ar.core.examples.java.augmentedfaces E/native: E0000 00:00:1684153638.768550   21108 handler.cc:202] INTERNAL: RET_CHECK failure (research/xeno/face_transform/mesh_estimator.cc:219) vertex_normal.Length() > kAbsoluteErrorEps (0 vs. 1e-09) Failed to compute normal for vertex #148!; while computing vertex normal & tangents!
    === Source Location Trace: ===
    research/xeno/face_transform/mesh_estimator.cc:219
    research/xeno/face_transform/mesh_estimator.cc:91

which appears over and over again.

VERSIONS USED

STEPS TO REPRODUCE THE ISSUE

  1. Build augmented_faces_java sample onto the device.
  2. Open Logcat.

ADDITIONAL COMMENTS

I discovered this error when an app I'm developing in Unity using AR Foundation stopped working. Then i found out my previous apps from many months ago also stopped working. Then I proceeded to check sample face tracking apps from Unity and Google and neither worked. There was no system update on my device and I'm really flabbergasted why it suddenly stopped working...