Search Issue Tracker

Won't Fix

Votes

1

Found in [Package]

4.2.9

5.1.1

6.0.0-pre.5

Issue ID

ARFB-381

Regression

No

[Android][AR Foundation] Crash with "Unknown camera ID 0" abort message or black screen when allowing camera permissions

Package: AR Foundation

-

Steps to reproduce:
1. Open the attached “IN-39282” project
2. Build And Run the project on the device
3. Allow camera permissions when prompted on the device

Expected result: The device display shows the device’s camera view
Actual result: The app crashes or gets stuck on black screen

Reproducible with: 2020.3.47f1, 2021.3.24f1, 2022.2.18f1, 2023.1.0b15, 2023.2.0a13

Testing environment: macOS Ventura 13.3.1 (Intel)

Reproducible with devices:
VLNQA00513 - OnePlus Nord N10 5G (BE2029), CPU: Snapdragon 690 SM6350, GPU: Adreno 619, OS: 11 (crash)
VLNQA00334 - Xiaomi Mi A3 (Mi A3), CPU: Snapdragon 665 SM6125, GPU: Adreno 610, OS: 11 (black screen)
Samsung Galaxy A23 5G (by user)(black screen)

Not reproducible with devices:
VLNQA00409 - Galaxy Z Fold3 5G (SM-F926B), CPU: Snapdragon 888, GPU: Adreno 660, OS: 11
Google Pixel 4 (Pixel 4), Android 10, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640

First few lines of the stack trace:
05-15 17:51:36.112 1284 1284 F DEBUG : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
05-15 17:51:36.112 1284 1284 F DEBUG : Abort message: 'JNI DETECTED ERROR IN APPLICATION: JNI GetJavaVM called with pending exception java.lang.IllegalArgumentException: supportsCameraApi:2972: Unknown camera ID 0
05-15 17:51:36.112 1284 1284 F DEBUG : at void android.hardware.camera2.CameraManager.throwAsPublicException(java.lang.Throwable) (CameraManager.java:1075)
05-15 17:51:36.112 1284 1284 F DEBUG : at android.hardware.camera2.CameraCharacteristics android.hardware.camera2.CameraManager.getCameraCharacteristics(java.lang.String) (CameraManager.java:505)

Note: Reproducible with AR Foundation package versions: 4.1.13 (2020.3.47f1), 4.2.7 (2021.3.24f1), 5.0.5 (2022.2.18f1, 2023.1.0b15, 2023.2.0a13), 5.1.0-pre.4 (2023.2.0a13)

  1. Resolution Note:

    XR was not able to reproduce this issue. Please file another bug if you are still encountering problems

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.