Reproduction steps:
1. Open the attached project "ReproProj" with Android Platform
2. Open the “/Assets/ExampleAssets/Scenes/SampleScene.unity” Scene
3. Build And Run
4. Observe the Player
Expected result: The screen shows a view from the back camera of the device
Actual result: The screen is black
Reproducible with: 5.0.6 (2023.1.5f1), 5.1.0-pre.9 (2022.3.4f1, 2023.1.5f1, 2023.2.0a23)
Could not test with: 5.1.0-pre.9 (2021.3.28f1) (An error occurred while resolving packages: Project has invalid dependencies: com.unity.feature.ar: Package [com.unity.feature.ar@1.0.1] cannot be found)
Reproducible with devices:
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS
Not reproducible with devices:
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: Exynos 9 (9825), GPU: Mali-G76
Testing environment: Windows 10 Enterprise 21H2
Notes:
- Rotating the device or putting it into the background and opening it up again fixes the issue
- In LogCat message appears "Skipped rendering frame because GfxDevice is in invalid state (device lost)"
- Issue does not reproduce when com.unity.feature.ar package is removed