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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.