Unity Netcode 1.0.0-pre.65 has as dependency the package com.unity.logging 1.0.0-pre.37 (I’m using Unity 2022.2.10)
But when I try to start a Android build (Since platforms are not supported anymore (?) via File > Build Settings > Build) , I get these burst errors:
Burst error BC1016: The managed function `System.String.get_Length(System.String* this)` is not supported
But since these errors are getting thrown in the netcode lib, I don’t know how I’m supposed to fix these errors.
Stacktrace
Building Library\Bee\artifacts\Android\AsyncPluginsFromLinker failed with output:
UnityEditor.Build.BuildFailedException: Burst compiler (1.8.3) failed running
stdout:
Starting 1 library requests
.\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs(59,17): Burst error BC1016: The managed function `System.String.get_Length(System.String* this)` is not supported
at Unity.Logging.Builder.CreateText(System.String source, Unity.Collections.Allocator allocator) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs:59)
at Unity.Logging.Builder.BuildMessage(System.String message, ref Unity.Logging.LogMemoryManager memAllocator) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs:302)
at Unity.Logging.Log.Warning(System.String msg, ref Unity.Networking.Transport.ConnectionId arg0, ref byte arg1) (at .\MainLoggingGenerator\LoggingSourceGenerator\Unity.Networking.Transport_TextLoggerMethods_Gen.cs:1027)
at Unity.Networking.Transport.Logging.DebugLog.ConnectionAcceptWrongState(Unity.Networking.Transport.ConnectionId connectionId, Unity.Networking.Transport.NetworkConnection.State connectionState) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\DebugLog.cs:422)
at Unity.Networking.Transport.ConnectionList.AcceptConnection(Unity.Networking.Transport.ConnectionList* this) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\ConnectionList.cs:173)
at Unity.Networking.Transport.NetworkDriver.Accept(Unity.Networking.Transport.NetworkDriver* this) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\NetworkDriver.cs:867)
at Unity.NetCode.NetworkStreamReceiveSystem.ConnectionAcceptJob.Execute(Unity.NetCode.NetworkStreamReceiveSystem.ConnectionAcceptJob* this) (at .\Library\PackageCache\com.unity.netcode@1.0.0-pre.65\Runtime\Connection\NetworkStreamReceiveSystem.cs:450)
at Unity.Jobs.IJobExtensions.JobStruct`1<Unity.NetCode.NetworkStreamReceiveSystem.ConnectionAcceptJob>.Execute(ref Unity.NetCode.NetworkStreamReceiveSystem.ConnectionAcceptJob data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) (at /home/bokken/build/output/unity/unity/Runtime/Jobs/Managed/IJob.cs:58)
.\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs(59,17): Burst error BC1016: The managed function `System.String.get_Length(System.String* this)` is not supported
at Unity.Logging.Builder.CreateText(System.String source, Unity.Collections.Allocator allocator) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs:59)
at Unity.Logging.Builder.BuildMessage(System.String message, ref Unity.Logging.LogMemoryManager memAllocator) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs:302)
at Unity.Logging.Log.Error(System.String msg, ref Unity.Collections.FixedString128Bytes arg0, ref int arg1, ref Unity.Collections.FixedString512Bytes arg2) (at .\MainLoggingGenerator\LoggingSourceGenerator\Unity.Networking.Transport_TextLoggerMethods_Gen.cs:1542)
at Unity.Networking.Transport.Logging.DebugLog.ErrorBaselib(Unity.Collections.FixedString128Bytes* description, Unity.Baselib.LowLevel.Binding.Baselib_ErrorState* error) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\DebugLog.cs:185)
at Unity.Networking.Transport.UDPNetworkInterface.FlushSendJob.DequeueSendRequests(Unity.Networking.Transport.UDPNetworkInterface.FlushSendJob* this) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\UDPNetworkInterface.cs:319)
at Unity.Networking.Transport.UDPNetworkInterface.FlushSendJob.Execute(Unity.Networking.Transport.UDPNetworkInterface.FlushSendJob* this) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\UDPNetworkInterface.cs:301)
at Unity.Jobs.IJobExtensions.JobStruct`1<Unity.Networking.Transport.UDPNetworkInterface.FlushSendJob>.Execute(ref Unity.Networking.Transport.UDPNetworkInterface.FlushSendJob data, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) (at /home/bokken/build/output/unity/unity/Runtime/Jobs/Managed/IJob.cs:58)
(0,0): Burst error BC1016: The managed function `System.String.get_Length(System.String* this)` is not supported
at System.String.IsNullOrEmpty(System.String value)
at Unity.Logging.BurstStringWrapper.IsEmpty(System.String fieldName) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\FormatterStruct.cs:48)
at Unity.Logging.FormatterStruct.WriteProperty(Unity.Logging.FormatterStruct* this, ref Unity.Collections.LowLevel.Unsafe.UnsafeText output, System.String fieldName, byte c, ref Unity.Logging.ArgumentInfo currArgSlot) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\FormatterStruct.cs:200)
at Unity.Logging.TextLoggerParserOutputHandlersFFFFFFFF9B67478D.WriteContextFormattedOutputvU43VHTdezgZfJoXmeY1gg__$BurstManaged(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot) (at C:\Projects\Unity\mygame\MainLoggingGenerator\LoggingSourceGenerator\Assembly-CSharp-firstpass_TextLoggerParser_Gen.cs:110)
at Unity.Logging.TextLoggerParserOutputHandlersFFFFFFFF9B67478D.Unity.Logging.WriteContextFormattedOutputvU43VHTdezgZfJoXmeY1gg___00000039$BurstDirectCall.Invoke(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot)
at Unity.Logging.TextLoggerParserOutputHandlersFFFFFFFF9B67478D.WriteContextFormattedOutputvU43VHTdezgZfJoXmeY1gg__(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot) (at C:\Projects\Unity\mygame\MainLoggingGenerator\LoggingSourceGenerator\Assembly-CSharp-firstpass_TextLoggerParser_Gen.cs:32)
(0,0): Burst error BC1016: The managed function `System.String.get_Length(System.String* this)` is not supported
at System.String.IsNullOrEmpty(System.String value)
at Unity.Logging.BurstStringWrapper.IsEmpty(System.String fieldName) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\FormatterStruct.cs:48)
at Unity.Logging.FormatterStruct.WriteProperty(Unity.Logging.FormatterStruct* this, ref Unity.Collections.LowLevel.Unsafe.UnsafeText output, System.String fieldName, byte c, ref Unity.Logging.ArgumentInfo currArgSlot) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\FormatterStruct.cs:200)
at Unity.Logging.TextLoggerParserOutputHandlers5C1B6571.WriteContextFormattedOutputitMEFXBP24HPsdHL_Yus9A__$BurstManaged(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot) (at .\MainLoggingGenerator\LoggingSourceGenerator\Unity.NetCode.Physics_TextLoggerParser_Gen.cs:110)
at Unity.Logging.TextLoggerParserOutputHandlers5C1B6571.Unity.Logging.WriteContextFormattedOutputitMEFXBP24HPsdHL_Yus9A___00000025$BurstDirectCall.Invoke(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot)
at Unity.Logging.TextLoggerParserOutputHandlers5C1B6571.WriteContextFormattedOutputitMEFXBP24HPsdHL_Yus9A__(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot) (at .\MainLoggingGenerator\LoggingSourceGenerator\Unity.NetCode.Physics_TextLoggerParser_Gen.cs:32)
.\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs(59,17): Burst error BC1016: The managed function `System.String.get_Length(System.String* this)` is not supported
at Unity.Logging.Builder.CreateText(System.String source, Unity.Collections.Allocator allocator) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs:59)
at Unity.Logging.Builder.BuildMessage(System.String message, ref Unity.Logging.LogMemoryManager memAllocator) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\TextBuilder.cs:302)
at Unity.Logging.Log.Error(System.String msg, ref int arg0, ref int arg1) (at .\MainLoggingGenerator\LoggingSourceGenerator\Unity.Networking.Transport_TextLoggerMethods_Gen.cs:1813)
at Unity.Networking.Transport.Logging.DebugLog.ErrorPayloadNotFitStartSize(int bufferSize, int payloadSize) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\DebugLog.cs:260)
at Unity.Networking.Transport.PacketProcessor.PrependToPayload(Unity.Networking.Transport.PacketProcessor* this, byte value) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\PacketProcessor.cs:135)
at Unity.Networking.Transport.NetworkDriver.Concurrent.CompleteSend(Unity.Networking.Transport.NetworkDriver.Concurrent* this, Unity.Networking.Transport.NetworkConnection sendConnection, Unity.Networking.Transport.NetworkInterfaceSendHandle* sendHandle, bool hasPipeline) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\NetworkDriver.cs:355)
at Unity.Networking.Transport.NetworkPipelineProcessor.Concurrent.ProcessPipelineSend(Unity.Networking.Transport.NetworkPipelineProcessor.Concurrent* this, Unity.Networking.Transport.NetworkDriver.Concurrent* driver, int startStage, Unity.Networking.Transport.NetworkPipeline pipeline, Unity.Networking.Transport.NetworkConnection connection, Unity.Networking.Transport.NetworkInterfaceSendHandle* sendHandle, int headerSize, Unity.Collections.NativeList`1<Unity.Networking.Transport.NetworkPipelineProcessor.UpdatePipeline> currentUpdates) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\NetworkPipeline.cs:433)
at Unity.Networking.Transport.NetworkPipelineProcessor.Concurrent.Send(Unity.Networking.Transport.NetworkPipelineProcessor.Concurrent* this, Unity.Networking.Transport.NetworkDriver.Concurrent* driver, Unity.Networking.Transport.NetworkPipeline pipeline, Unity.Networking.Transport.NetworkConnection connection, Unity.Networking.Transport.NetworkInterfaceSendHandle* sendHandle, int headerSize) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\NetworkPipeline.cs:278)
at Unity.Networking.Transport.NetworkDriver.Concurrent.EndSend(Unity.Networking.Transport.NetworkDriver.Concurrent* this, Unity.Collections.DataStreamWriter* writer) (at .\Library\PackageCache\com.unity.transport@2.0.0-pre.6\Runtime\NetworkDriver.cs:288)
(0,0): Burst error BC1016: The managed function `System.String.get_Length(System.String* this)` is not supported
at System.String.IsNullOrEmpty(System.String value)
at Unity.Logging.BurstStringWrapper.IsEmpty(System.String fieldName) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\FormatterStruct.cs:48)
at Unity.Logging.FormatterStruct.WriteProperty(Unity.Logging.FormatterStruct* this, ref Unity.Collections.LowLevel.Unsafe.UnsafeText output, System.String fieldName, byte c, ref Unity.Logging.ArgumentInfo currArgSlot) (at .\Library\PackageCache\com.unity.logging@1.0.0-pre.37\Runtime\TextLogger\FormatterStruct.cs:200)
at Unity.Logging.TextLoggerParserOutputHandlers2496FAE0.WriteContextFormattedOutputsziFzo3Xs_XU8DZd_5RLRg__$BurstManaged(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot) (at C:\Projects\Unity\mygame\MainLoggingGenerator\LoggingSourceGenerator\Assembly-CSharp_TextLoggerParser_Gen.cs:110)
at Unity.Logging.TextLoggerParserOutputHandlers2496FAE0.Unity.Logging.WriteContextFormattedOutputsziFzo3Xs_XU8DZd_5RLRg___00000AFC$BurstDirectCall.Invoke(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot)
at Unity.Logging.TextLoggerParserOutputHandlers2496FAE0.WriteContextFormattedOutputsziFzo3Xs_XU8DZd_5RLRg__(ref Unity.Logging.FormatterStruct formatter, ref Unity.Collections.LowLevel.Unsafe.UnsafeText hstring, ref Unity.Logging.BinaryParser mem, System.IntPtr memAllocatorPtr, ref Unity.Logging.ArgumentInfo currArgSlot) (at C:\Projects\Unity\mygame\MainLoggingGenerator\LoggingSourceGenerator\Assembly-CSharp_TextLoggerParser_Gen.cs:32)
stderr:
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00237] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:1656
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x0004d] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:1533
at Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) [0x00001] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:1508
at Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (Unity.Burst.Editor.BurstAotCompiler+BurstAOTSettings settings, UnityEditor.Compilation.Assembly[] playerAssemblies) [0x00a6d] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:706
at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.DoGenerate (UnityEditor.Compilation.Assembly[] assemblies) [0x0001b] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:265
at Unity.Burst.Editor.BurstAOTCompilerPostprocessor.GenerateNativePluginsForAssemblies (UnityEditor.Build.IGenerateNativePluginsForAssemblies+GenerateArgs args) [0x0008a] in .\Library\PackageCache\com.unity.burst@1.8.3\Editor\BurstAotCompiler.cs:179
at UnityEditor.Modules.BeeBuildPostprocessor.GenerateNativePluginsForAssemblies (PlayerBuildProgramLibrary.Data.GenerateNativePluginsForAssembliesArgs args) [0x00050] in <603bdbf3494743328394e419389d220c>:0
at Bee.BeeDriver.BuildRequest+<>c__DisplayClass63_0`1[T].<RegisterRPCCallback>b__0 (System.Object o) [0x00000] in <121dc6afd18c416ebb3890a6cc2efeb0>:0
at Bee.BeeDriver.BeeDriver_RunBackend+<>c__DisplayClass1_0.<ProcessRPCRequest>b__0 () [0x00021] in <121dc6afd18c416ebb3890a6cc2efeb0>:0
at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <5d4cbfbeb62e454f98e19b231866113e>:0
at System.Threading.Tasks.Task.Execute () [0x00000] in <5d4cbfbeb62e454f98e19b231866113e>:0
--- End of stack trace from previous location where exception was thrown ---
at Bee.BeeDriver.BeeDriver_RunBackend.ProcessRPCRequest (Bee.BinLog.RPCActionMessage msg, Bee.BeeDriver.BuildRequest+RPCCallback rpcCallback, IPCConnection ipcConnection, System.Threading.Tasks.Task writePipeConnectionTask, Bee.BeeDriver.InternalState state) [0x00111] in <121dc6afd18c416ebb3890a6cc2efeb0>:0 0411542A20A9C72D5CDA3A84181D8B947A263_il2cpp_TypeInfo_var)));
0x00007ff7e4e62abd (Unity) StackWalker::GetCurrentCallstack
0x00007ff7e4e67a69 (Unity) StackWalker::ShowCallstack
0x00007ff7e5e318c1 (Unity) GetStacktrace
0x00007ff7e64f1732 (Unity) DebugStringToFile
0x00007ff7e3e732b6 (Unity) DebugLogHandler_CUSTOM_Internal_Log
0x0000023b3642ee8a (Mono JIT Code) (wrapper managed-to-native) UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityE<message truncated>