Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.1f1
Issue ID
960482
Regression
No
[Android] Calling Marshal.PtrToStructure with a struct that contains an array of bytes fails with null reference exception
To reproduce:
1. Download and open attached "repro960482.zip" project.
2. Build and run on any android device.
Expected result: Structure is successfully read.
Actual result: Null Reference expection appears. Structure is not read.
Reproduced with: 2018.1.0a4, 2017.3.0b9, 2017.2.0p2, 2017.1.2p3, 5.6.4p3, 5.5.5p1, 5.4.6f3.
Devices Under Test:
Samsung SM G950U*, OS:7.0, CPU:arm64-v8a, GPU:Adreno (TM) 540,
Build:samsung/dreamqltesq/dreamqltesq:7.0/NRD90M/G950USQU1AQC8:user/release-keys
Google Pixel XL*, OS:8.0.0, CPU:arm64-v8a, GPU:Adreno (TM) 530,
Build:google/marlin/marlin:8.0.0/OPR6.170623.012/4283428:user/release-keys
Samsung SM G903F*, OS:6.0.1, CPU:armeabi-v7a,
GPU:Mali-T720, Build:samsung/s5neoltexx/s5neolte:6.0.1/MMB29K/G903FXXU1BQC1:user/release-keys
Notes: Did not reproduce on Editor, Standalone and iOS builds.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Label” name in Sprite Library Editor window lacks character limit causing long names go under the Object Field
- Preview image (screenshot) is not available after capturing snapshot in Memory Profiler
- Crash on UNITY_FT_Stream_ReadAt when changing TMPro properties after unloading an AssetBundle
- Particles spawn at the same position when using raw byte address buffer in VFX Graph
- Decal Shader Graph - Custom vertex interpolators are always 0
Add comment