Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
1
Found in
2018.4
2018.4.31f1
2019.4
2020.2
2021.1
2021.2
Issue ID
1310458
Regression
No
[IL2CPP] Nullable variables become null in a generic method in IL2CPP builds
How to reproduce:
1. Open the "SampleScene" scene in the attached "TestIl2CPP.zip"
2. Make sure IL2CPP BackEnd is selected
3. Build and run it
4. Observe the log in the Runtime Console
Expected Behavior: "BadIL2CPP System.Int32 20" is printed in the console
Actual Behavior: "BadIL2CPP System.Int32" is printed in the console
Reproducible with: 2018.4.31f1, 2019.4.20f1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a4
Note:
- Only reproducible on IL2CPP
- Only reproducible in methods with Generic parameter
- According to the customer - reproducible on every platform with IL2CPP
- Not reproducible in Editor
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
- “Readme” Asset is unreadable in the Inspector window when switching Editor Theme to Light
- “NullReferenceException” error thrown when switching Editor Theme to Light if “Unity Version Control” tab is enabled
- A Warning is displayed in the Inspector when a Mesh with any Material is added as a Terrain Detail
- [Android][Vulkan] Memory leak when playing and stopping a video using the Video Player on some devices
- Caret moves by a character when typing "." and any number into 'Grid and Snap' toolbar's input field
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a8
Resolution Note (fix version 2021.1):
Fixed in 2021.1.0b10
Resolution Note (fix version 2020.3):
Fixed in 2020.3.1f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.24f1