Search Issue Tracker
Fixed in 2021.3.20f1
Fixed in 2021.3.X, 2022.2.X, 2023.1.X, 2023.2.X, 2023.2.0a1
Votes
0
Found in
2019.4.37f1
2020.3.32f1
2021.2.18f1
2022.1.0b14
2022.2.0a9
2023.2.0a1
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)
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
- “Screen position out of view frustum...” errors are thrown when zooming out in the Scene view after creating UI GameObject
- CurveTexture is not being released when unloading AssetBundle containing a Scene with ColorCurves post-processing component in Global Volume
- Crash on ExtractActiveCasterInfo when navigating the scene view in a project with specific lighting data
- Build Profile name increments when numeric suffix is removed from duplicate Profile name
- "Unrecognized block header in profiler data file, stopping deserialization" error is shown and no more profiler data is recorded when the Player is connected and profiler recording is enabled/disabled few times
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.7f1