Search Issue Tracker
Fixed
Fixed in 2021.3.20f1, 2022.2.7f1, 2023.1.0b6, 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
- Build fails when building with ILCPP Scripting Backend and ARMv7 as the Target Architecture
- Textures turn black in Player when they are referenced by a script instance
- [Android] Virtual device crashes with "Scudo ERROR: invalid chunk state when deallocating address" error in Firebase Test Lab when Optimized Frame Pacing is enabled
- Particle System does not resume when its Culling Mode is set to "Pause" or "Pause and Catch-up," and particle position simulate in world space
- "Custom Render Queue" field cannot be set above "2000" when changing it in the Inspector window using Debug mode
Resolution Note (fix version 2022.2.7f1):
Fixed in: 2022.2.7f1