Search Issue Tracker
By Design
Votes
0
Found in
2020.3
2021.1
2021.2
2021.2.0b12
2022.1
Issue ID
1367472
Regression
No
JNI crash on call GetObjectArrayElement used on AndroidJavaObject.GetRawObject
How to reproduce:
1. Open the user's attached project
2. Build and run the application on Android
Expected result: The application does not crash
Actual result: The application crashes
Reproducible with: 2020.3.20f1, 2021.1.24f1, 2021.2.0b15, 2022.1.0a12
Couldn't test with: 2019.4.31f1 (Visual Scripting package is not available)
Reproducible on:
VLNQA00380, Xiaomi MI 8 Lite (MI 8 Lite), Android 9, CPU: Snapdragon 660, GPU: Adreno (TM) 512
VLNQA00332, Samsung Galaxy XCover4 (SM-G390F), Android 9, CPU: Exynos 7 Quad 7570, GPU: Mali-T720
VLNQA00381, Xiaomi Redmi Note 8 Pro (Redmi Note 8 Pro), Android 9, CPU: MediaTek Helios G90T MT6785T, GPU: Mali-G76 MC4
VLNQA00099, Google Pixel XL (Pixel XL), Android 10, CPU: Snapdragon 821 MSM8996 Pro, GPU: Adreno (TM) 530
VLNQA00052, Xiaomi MI MAX (MI MAX), Android 7.0, CPU: Snapdragon 617 MSM8952, GPU: Adreno (TM) 510
Couldn't test on:
VLNQA00004, Meizu MX5 (MX5), Android 5.0.1, CPU: MediaTek Helio X10 MT6795T, GPU: PowerVR Rogue G6200 (Android version too old)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor hangs when cutting and pasting a Script to another folder during Play Mode
- Animator Controller throws MissingReferenceException after undoing Layer Creation
- Full stack trace is always printed when an exception occurs in an IL2CPP build
- Licensing Client fails to launch when opening Unity Hub (licensing client path is not found)
- Licensing Client fails to launch when opening Unity Hub
Resolution Note (2022.1.X):
The problem here is related to a missing GC.KeepAlive that is necessary to keep a C# object alive while it is accessed via the raw JNI API.