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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-5942