GeezerVison is showing github.com — Unity 2022.1.10 MessagePack 2.4.35 IL2CPP build Issues · Issue #1475 · MessagePack-CSharp/MessagePack-CSharp
Unity 2022.1.10 MessagePack 2.4.35 IL2CPP build Issues #1475DescriptionHi there.
I can't build IL2CPP project for PC. Trying NET standart and NET Framework
Editor serialization works fine.
Google Drive Link to repro project and full Editor log
Part of Editor log message:
Building Library\Bee\artifacts\WinPlayerBuildProgram\u1oik\lhyy_ssagePack2.obj failed with output:
MessagePack2.cpp
D:\Projects\Temp\TestMP\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\MessagePack2.cpp(20747): error C2664: 'String_t *Strings_WeakIntern_mC72EF2A3C712D84A4E92074BC83E711414D7F0BD(ReadOnlySpan_1_t0846CD1BEF355AE12F9A41FFB292AA4A85F072F3,const RuntimeMethod *)': cannot convert argument 1 from 'ReadOnlySpan_1_t59614EA6E51A945A32B02AB17FBCBDF9A5C419C1' to 'ReadOnlySpan_1_t0846CD1BEF355AE12F9A41FFB292AA4A85F072F3'
D:\Projects\Temp\TestMP\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\MessagePack2.cpp(20747): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
D:\Projects\Temp\TestMP\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\MessagePack2.cpp(7047): note: see declaration of 'Strings_WeakIntern_mC72EF2A3C712D84A4E92074BC83E711414D7F0BD'
UnityEditor.GenericMenu:CatchMenu (object,string[],int) ActivityMichalPetryka commented on Aug 19, 2022 MichalPetryka commented on Aug 19, 2022 Removing the System.Memory and System.Buffers DLLs from Plugins does fix things though. Reacted by KOGA Mitsuhiro, powellsky and nekromant80lvl joshpeterson commented on Aug 22, 2022 Thanks for raising this - removing the two specific assemblies is the proper way to work around this issue.
The behavior here is not great, but historically Unity has given assemblies in the project precedence over assemblies in the base class library. So to avoid breaking projects which rely on this behavior, we need to continue it. Unfortunately this can lead to confusion like this case. Reacted by Artyom Sovetnikov AArnott commented on Sep 5, 2022 @joshpeterson Is there anything this repo should do to help this work by default, or is this a change that each unity app must change? joshpeterson commented on Sep 7, 2022
@joshpeterson Is there anything this repo should do to help this work by default, or is this a change that each unity app must change?
I'm not familiar enough this the code in this repo to say. Do the System.Memory and System.Buffers assemblies ship with a plugin from this repo? If so, then for Unity 2021 and later, they should be removed from the release. AArnott commented on Sep 7, 2022 joshpeterson commented on Sep 7, 2022
Thanks. It looks like we do in fact pack those two and other assemblies in our unity package. Do you see any others in that list that may be problematic, @joshpeterson?
You should not need System.Threading.Tasks.Extensions.dll and System.Runtime.CompilerServices.Unsafe.dll either. As of Unity 2021.2 and later, those are included in the Unity distribution, because Unity supports .NET Standard 2.1. MichalPetryka commented on Sep 7, 2022
Thanks. It looks like we do in fact pack those two and other assemblies in our unity package. Do you see any others in that list that may be problematic, @joshpeterson?
You should not need System.Threading.Tasks.Extensions.dll and System.Runtime.CompilerServices.Unsafe.dll either. As of Unity 2021.2 and later, those are included in the Unity distribution, because Unity supports .NET Standard 2.1.
System.Runtime.CompilerServices.Unsafe in not in .NET Standard 2.1.
joshpeterson commented on Sep 7, 2022
Thanks. It looks like we do in fact pack those two and other assemblies in our unity package. Do you see any others in that list that may be problematic, @joshpeterson?
You should not need System.Threading.Tasks.Extensions.dll and System.Runtime.CompilerServices.Unsafe.dll either. As of Unity 2021.2 and later, those are included in the Unity distribution, because Unity supports .NET Standard 2.1.
System.Runtime.CompilerServices.Unsafe in not in .NET Standard 2.1.
Oh yes, that is a good point - sorry! That assembly can stay. added 3 commits that reference this issue on Sep 7, 2022This issue will close once commit 739c32b is merged into the 'master' branch.739c32b This issue will close once commit dcaea3a is merged into the 'master' branch.dcaea3a This issue will close once commit 78dcd86 is merged into the 'master' branch.78dcd86
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|