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)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.