Search Issue Tracker
Fixed
Fixed in 2021.3.53f1, 2022.3.60f1, 6000.0.43f1, 6000.1.0b11, 6000.2.0a7, 7000.0.0a27
Votes
0
Found in
2021.3.46f1
2022.3.54f1
6000.0.30f1
6000.1.0a7
6000.2.0a1
7000.0.0a1
Issue ID
UUM-90092
Regression
No
[Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
How to reproduce:
1. Open the “ReproProject“ project
2. Open the “SampleScene“
3. Build and Run for Android
4. Search for the “AndroidJNI.ToBooleanArray(null): ” in the logcat
Expected result: The “AndroidJNI.ToBooleanArray(null)” return a zero value
Actual result: The “AndroidJNI.ToBooleanArray(null)” return a non-zero value
Reproducible with: 2021.3.46f1, 2022.3.54f1, 6000.0.30f1, 6000.1.0a7
Reproducible environment: macOS 15.1.1 (Intel), Windows 10 pro (22H2)
Not reproducible environment: No other environment tested
Reproducible with these devices:
VLNQA00511, Samsung Galaxy S8 (SM-G950F), Android 9, CPU: Exynos 9 Octa 8895, GPU: Mali-G71
VLNQA00518, Google Pixel 4 (Pixel 4), Android 13, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00107, Huawei Nexus 6P (Nexus 6P), Android 8.1.0, CPU: Snapdragon 810 MSM8994, GPU: Adreno (TM) 430
VLNQA00335, Samsung Galaxy S20+ 5G (SM-G986B), Android 10, CPU: Exynos 990, GPU: Mali-G77
Not reproducible with these devices:
VLNQA00626, iPhone 16 (MYE73QN/A), CPU: Apple A18 Pro, GPU: Apple designed, OS: 18.0.1
Note: Not reproducible in the Editor and Standalone
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note (fix version 6000.2.0a7):
"[Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null" when the method argument is null"
AndroidJNI.ToBooleanArray when null now returns 0 rather than random memory overflow address.
Resolution Note (fix version 6000.1.0b11):
Android: Fixed AndroidJNI.ToBooleanArray not returning 0 when null.
Resolution Note (fix version 6000.0.43f1):
Android: Fixed AndroidJNI.ToBooleanArray not returning 0 when null.