Search Issue Tracker
In Progress
Fix In Review for 2022.2.X
Votes
0
Found in
2019.4.37f1
2020.3.32f1
2021.2.18f1
2022.1.0b14
2022.2.0a9
Issue ID
UUM-597
Regression
No
[IL2CPP] Unity fails to build when using faulty function with an element being called from null array
How to reproduce:
1. Download the attached project '1413712.zip'
2. Make sure the Scripting Backend is set to IL2CPP
3. Build the project
4. Observe the Console
Expected result: The build does not fail or fails and provides a meaningful error message
Actual result: The build fails with errors:
error: member reference type 'long' is not a pointer
int32_t L_1 = (int32_t)(NULL)->GetAt(static_cast<il2cpp_array_size_t>(L_0));
error: member reference type 'int' is not a pointer
int32_t L_1 = (int32_t)(NULL)->GetAt(static_cast<il2cpp_array_size_t>(L_0));
Reproducible with: 2019.4.37f1, 2020.3.32f1, 2021.2.18f1, 2022.1.0b14, 2022.2.0a9
Note:
- Does not reproduce with Mono Scripting Backend
- Reproduces when building for Android/iOS/Standalone (with IL2CPP)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Resizing Profiler Module Details panel and releasing mouse button outside Unity doesn't cancel resize
- "Auto-hide gizmos" preference is not saved when reopening the project
- Sampling a custom depth texture on a machine with a GTX 1080 makes object's textures display the wrong color when in Play mode or Player
- Terrain is missing the Hidden/TerrainEngine/Details/WavingDoublePass shader when AssetBundles are built in older Unity Versions
- [Android] URP Project crashes when built on a device with PowerVR Rogue GE8320 GPU
Add comment