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
- Typos in High Definition 3D sample tutorials
- “Handles.Repaint called outside an editor OnGUI" error is thrown in the Console when creating a new Tile Palette from the Tile Palette Overlay in Scene view
- Shader Graph window icon is blurry and low quality when the Shader Graph is created using the Universal 2D template
- “Export HDRP Sky to Image” command error message does not indicate that Game view must be visible
- Adaptive Performance Settings Framerate field doesn't display the "supported without VSync" warning, when the field is collapsed in Build Profiles
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.7f1