Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.2.X, 2021.1.X
Votes
0
Found in
2019.4.15f1
Issue ID
1310304
Regression
Yes
IL2CPP fails to build with conversion error "error C2440"
How to reproduce:
1. Open the user's attached project
2. Make sure Scripting Backend is set to IL2CPP
3. Build And Run
Expected results: Building with IL2CPP Succeeds
Actual results: Building with IL2CPP fails, "Exception: C:\Program Files\2019.4\2019.4.15f1_fbf367ac14e9\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!" is logged to the Console
Reproducible with: 2019.4.15f1, 2019.4.19f1
Not Reproducible with: 2019.4.14f1
Couldn't test with: 2018.4.31f1, 2019.4.13f1, 2020.2.0a1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a3 (many errors downgrading/upgrading)
Error thrown:
Unhandled Exception: Unity.IL2CPP.Building.BuilderFailedException: Generics158.cpp
error C2440: 'type cast': cannot convert from 'ManagedComponentParameter_1_t33FCCE886F239C5817A8C0CAD58EE157207B4D4F' to 'ManagedComponentParameter_1_tE16E9F16C8A2159AC8A07AB03236AEB35B85D220'
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):
This bug does not affect 2021.2
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0b10 and up
Resolution Note (fix version 2020.2):
Fixed in: Unity 2020.2.6f1 and above
Resolution Note (fix version 2019.4):
Fixed in Unity 2019.4.23f1