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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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