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
- Single particles in the Particle System randomly scale out when the simulation is playing
- Tilemap.SetTile() does not change the tiles when called from Update() in the Player
- Custom Shader Material is pink when the project is built for the WebGL platform
- New 3D URP Sample Scenes Project is created with an invalid dependency on com.unity.render-pipelines.universal-config when creating the Sample Project for the first time
- Canvas Scaler causes abnormal scaling of Canvas elements in Play Mode when UI Scale Mode is set to "Constant Physical Size" and any Editor window is moved to a differently scaled monitor and is interacted with
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