Reproduction steps:
1. Open the attached project "ReproCase.zip"
2. Switch to Android and build to Quest 1/2
3. The application crashes with release build
4. Enable "Development Build" and build again
5. Application does not crash but an exception is thrown in Android Logcat: "UnityException: GetActive can only be called from the main thread."
Expected result: Application does not hard crash with release build and exception is thrown
Actual result: Application hard crashes with release build
Reproduces on: 2019.4.35f1, 2020.3.27f1, 2021.2.9f1, 2022.1.0b6, 2022.2.0a3
Reproducible with these devices:
VLNQA00415 - Oculus Quest 2 (Quest 2), OS: 10, CPU: Snapdragon XR2, GPU: Adreno 650
Notes:
-Release build stack trace and development build exception logs are attached named "build_release_log.txt" and "build_development_unityexception.txt" respectively