Search Issue Tracker
Fixed
Votes
0
Found in
2021.3.7f1
2022.1.10f1
2022.2.0b2
2023.1.0a4
Issue ID
UUM-10402
Regression
Yes
Error "cannot convert from 'void *' to 'Il2CppFullySharedGenericAny '" is thrown when building with IL2CPP Scripting Backend
How to reproduce:
1. Open the project “IN_5128”
2. Press Edit → Project Settings
3. Set Scripting Backend to IL2CPP
4. Press File → Build And Run
Expected result: Project builds successfully
Actual result: Project fails to build
Reproducible with: 2021.2.1f1, 2021.3.7f1, 2022.1.10f1, 2022.2.0b2, 2023.1.0a4
Not reproducible with: 2021.2.0f1
Could not test with: 2020.3.37f1 (due to compiler error)
Note: to reproduce this issue in 2021.2 and 2021.3 “IL2CPP Code Generation” must be selected as “Faster (smaller) builds” in Build Settings
Full error:
Building Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\jptg_ricMethods.obj failed with output:
GenericMethods.cpp
C:\Users\danielius.pliuskys\Desktop\IN_5128\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\GenericMethods.cpp(12435): error C2440: 'return': cannot convert from 'void *' to 'Il2CppFullySharedGenericAny _'_
_C:\Users\danielius.pliuskys\Desktop\IN_5128\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\GenericMethods.cpp(12435): note: Conversion from 'void_' to pointer to non-'void' requires an explicit cast
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
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
- The Scrollbar becomes unusable when adding Elements to the List
- "One or more data file missing for baking set NewScene Baking Set. Cannot load shared data." error in Player when a specific project is built
- Choosing new HDR Colour using RGB values breaks colour on Intensity Selectors
- Rendering/Decal Layer Mask options are different inside Prefab Mode and outside Prefab Mode when the project is upgraded to Unity 6
- Incorrect Realtime GI Light Probes baking when more than one Light Probe Group is used and "Baked Global Illumination" is enabled
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-5942