Search Issue Tracker

Fixed

Fixed in 2022.3.33f1, 6000.0.6f1, 7000.0.0a1

Votes

0

Found in

2022.3.20f1

2023.2.13f1

2023.3.0b10

6000.0.0b11

7000.0.0a1

Issue ID

UUM-65459

Regression

Yes

Build failure occurs due to a 'duplicate member' error when a callback with two unnamed arguments is defined in the IL2CPP scripting backend in the development build

--

-

Reproduction steps:
1. Open the “ASDQWE” project
2. Open the Project Settings Window (Edit > Project Settings)
3. In the Project Settings Window, select Player > Configuration > Scripting Backend > IL2CPP scripting backend
4. Open the Build Settings Window (File > Build Settings)
5. In the Build Settings Window, enable the Development Build
6. Press the “Build And Run” button
7. Observe the build process

Expected result: The build succeeds
Actual result: The build fails

Reproducible with: 2022.2.14f1, 2022.3.20f1, 2023.2.13f1, 2023.3.0b10
Not reproducible with: 2021.3.36f1, 2022.2.13f1

Reproducible on: macOS 13.6.1 Ventura (user’s), 14.3.1 Sonoma (Intel), Windows 10 Pro

Notes:
- Not reproducible when Mono Scripting Backend is selected
- Not reproducible on Release build type
- Not reproducible when other than a mobile build platform is selected
- Full build error:

{noformat}Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp(341,17): [0m[0;1;31merror: [0m[1mduplicate member '_____RuntimeObject'[0m
RuntimeObject* _____RuntimeObject;
[0;1;32m ^
Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp(340,17): [0m[0;1;30mnote: [0mprevious declaration is here[0m
RuntimeObject* _____RuntimeObject;
[0;1;32m ^
Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp(652,3): [0m[0;1;31merror: [0m[1mno matching function for call to 'Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2'[0m
Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2(__this, NULL);
[0;1;32m ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Library/Bee/artifacts/Android/il2cppOutput/cpp/Assembly-CSharp.cpp(425,41): [0m[0;1;30mnote: [0mcandidate function not viable: no known conversion from 'U3CU3CBadMethodU3Eb__0_0U3Ed_t675A34303F68F700784CA87ACF8EA15AF41D38D2 *' to 'RuntimeObject ' (aka 'Il2CppObject ') for 1st argument[0m
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Object__ctor_mE837C6B9FA8C6D5D109F4B2EC885D79919AC0EA2 (RuntimeObject __this, const RuntimeMethod method) ;
[0;1;32m ^
[0m2 errors generated.

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:190){noformat}

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.