Docs example of Smoothing Actions causes Burst Error

Hi! I’m tinkering with the Netcode for Entities package, following the docs pretty much exactly. Unfortunately, trying to assign a smoothing function for Ghost Prediction Smoothing is causing a Burst error. Anyone have any ideas if there are workarounds for this? Thanks so much in advance.

The errors it causes:

ClientPredictionSmoothingSystem.cs(46,9): Burst error BC1101: Calling conventions other than 'C' are not supported for `ldftn`. You must decorate methods whose address you take with `[UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvCdecl) })]`. Found: Default
ClientPredictionSmoothingSystem.cs(46,9): Burst error BC1021: Creating a managed object `System.Void Unity.NetCode.GhostPredictionSmoothing/SmoothingActionDelegate::.ctor(System.Object,System.IntPtr)` is not supported
ClientPredictionSmoothingSystem.cs(46,9): Burst error BC1360: A static constructor on type `Kosmos.Networking.ClientTransformSmoothingAction` is mixing managed and unmanaged code which is not supported. In order to solve this, please move the managed code or unmanaged code to a different class/struct

My code:

using System;
using Unity.Burst;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Entities;
using Unity.Mathematics;
using Unity.NetCode;
using Unity.Transforms;

namespace Networking
{
    public partial struct ClientPredictionSmoothingSystem : ISystem
    {
        private static readonly bool _enabled = true;
     
        [BurstCompile]
        public void OnCreate(ref SystemState state)
        {
            state.RequireForUpdate<GhostPredictionSmoothing>();
         
            if (!_enabled)
            {
                return;
            }

            var ghostPredictionSmoothing = SystemAPI.GetSingleton<GhostPredictionSmoothing>();
            ghostPredictionSmoothing.RegisterSmoothingAction<LocalTransform>(state.EntityManager,
                ClientTransformSmoothingAction.Action);
        }

        [BurstCompile]
        public void OnUpdate(ref SystemState state)
        {

        }

        [BurstCompile]
        public void OnDestroy(ref SystemState state)
        {

        }
    }

    [BurstCompile]
    public unsafe struct ClientTransformSmoothingAction
    {
        public static readonly PortableFunctionPointer<GhostPredictionSmoothing.SmoothingActionDelegate> Action = new PortableFunctionPointer<GhostPredictionSmoothing.SmoothingActionDelegate>(SmoothingAction);

        [BurstCompile(DisableDirectCall = true)]
        [AOT.MonoPInvokeCallback(typeof(GhostPredictionSmoothing.SmoothingActionDelegate))]
        private static void SmoothingAction(IntPtr currentData, IntPtr previousData, IntPtr usrData)
        {
            ref var trans = ref UnsafeUtility.AsRef<LocalTransform>((void*)currentData);
            ref var backup = ref UnsafeUtility.AsRef<LocalTransform>((void*)previousData);

            var dist = math.distance(trans.Position, backup.Position);

            if (dist > 0)
            {
                trans.Position = backup.Position + (trans.Position - backup.Position) / dist;
            }
        }
    }
}

Hi, you can’t use Burst w/ OnCreate because it references managed code (gets a delegate instance etc). I think it should work without [BurstCompile] and it’s not a big deal in case of OnCreate (possibly good for compilation time, actually?)

1 Like

Fantastic! That seems to have been the issue. Thank you so much.

1 Like

yes, that was the problem

I copied this code exactly how it is and I get burst errors as well when building the project.

I comment out [BurstCompile] on the OnCreate method, then built and get runtime error:

NullReferenceException: Object reference not set to an instance of an object
  at Unity.Entities.EntityQueryImpl.GetSingleton[T] () [0x0009a] in .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\Iterators\EntityQuery.cs:1464 
  at Unity.Entities.EntityQuery.GetSingleton[T] () [0x00000] in .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\Iterators\EntityQuery.cs:2743 
  at Networking.ClientPredictionSmoothingSystem.OnCreate (Unity.Entities.SystemState& state) [0x00017] in C:\_dev\exxos-unity\Assets\PlayerCharacter\Systems\PredictionSmoothingSystem.cs:98 
  at Networking.ClientPredictionSmoothingSystem.__codegen__OnCreate (System.IntPtr self, System.IntPtr state) [0x00012] in <71f04e9736bc49a2bdb2803d6eba5538>:0 
  at Unity.Entities.SystemBaseRegistry.ForwardToManaged (System.IntPtr delegateIntPtr, Unity.Entities.SystemState* systemState, System.Void* systemPointer) [0x00008] in .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\SystemBaseRegistry.cs:364 
  at Unity.Entities.SystemBaseRegistry.CallForwardingFunction (Unity.Entities.SystemState* systemState, Unity.Entities.UnmanagedSystemFunctionType functionType) [0x000a8] in .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\SystemBaseRegistry.cs:333 
  at Unity.Entities.SystemBaseRegistry.CallOnCreate (Unity.Entities.SystemState* systemState) [0x00001] in .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\SystemBaseRegistry.cs:370 
  at Unity.Entities.WorldUnmanagedImpl.CallSystemOnCreateWithCleanup (Unity.Entities.SystemState* statePtr) [0x000e5] in .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\WorldUnmanaged.cs:635 
  at Unity.Entities.World.GetOrCreateSystemsAndLogException (Unity.Collections.NativeList`1[T] types, System.Int32 typesCount, Unity.Collections.AllocatorManager+AllocatorHandle allocator) [0x001ed] in .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\World.cs:1282 
UnityEngine.DebugLogHandler:Internal_LogException_Injected(Exception, IntPtr)
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
Unity.Debug:LogException(Exception) (at .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\Stubs\Unity\Debug.cs:17)
Unity.Entities.World:GetOrCreateSystemsAndLogException(NativeList`1, Int32, AllocatorHandle) (at .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\World.cs:1295)
Unity.Entities.World:GetOrCreateSystemsAndLogException(NativeList`1, AllocatorHandle) (at .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\World.cs:1321)
Unity.Entities.DefaultWorldInitialization:AddSystemToRootLevelSystemGroupsInternal(World, NativeList`1, ComponentSystemGroup, DefaultRootGroups) (at .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\DefaultWorldInitialization.cs:252)
Unity.Entities.DefaultWorldInitialization:AddSystemToRootLevelSystemGroupsInternal(World, NativeList`1) (at .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\DefaultWorldInitialization.cs:291)
Unity.Entities.DefaultWorldInitialization:Initialize(String, Boolean) (at .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities\DefaultWorldInitialization.cs:147)
Unity.Entities.AutomaticWorldBootstrap:Initialize() (at .\Library\PackageCache\com.unity.entities@732b1f537003\Unity.Entities.Hybrid\Injection\AutomaticWorldBootstrap.cs:16)

I modified the code to fix the error:

using System;
using Unity.Burst;
using Unity.Collections.LowLevel.Unsafe;
using Unity.Entities;
using Unity.Mathematics;
using Unity.NetCode;
using Unity.Transforms;

namespace Networking
{
    public partial struct ClientPredictionSmoothingSystem : ISystem
    {
        private static readonly bool _enabled = true;
        private bool registered;

        //[BurstCompile]
        public void OnCreate(ref SystemState state)
        {
            registered = false;
            state.RequireForUpdate<GhostPredictionSmoothing>();

            if (!_enabled)
            {
                return;
            }
        }

        [BurstCompile]
        public void OnUpdate(ref SystemState state)
        {
            if (!_enabled || registered)
            {
                return;
            }
            registered = true;

            var ghostPredictionSmoothing = SystemAPI.GetSingleton<GhostPredictionSmoothing>();
            ghostPredictionSmoothing.RegisterSmoothingAction<LocalTransform>(state.EntityManager,
                ClientTransformSmoothingAction.Action);
        }

        [BurstCompile]
        public void OnDestroy(ref SystemState state)
        {

        }
    }

    [BurstCompile]
    public unsafe struct ClientTransformSmoothingAction
    {
        public static readonly PortableFunctionPointer<GhostPredictionSmoothing.SmoothingActionDelegate> Action = new PortableFunctionPointer<GhostPredictionSmoothing.SmoothingActionDelegate>(SmoothingAction);

        [BurstCompile(DisableDirectCall = true)]
        [AOT.MonoPInvokeCallback(typeof(GhostPredictionSmoothing.SmoothingActionDelegate))]
        private static void SmoothingAction(IntPtr currentData, IntPtr previousData, IntPtr usrData)
        {
            ref var trans = ref UnsafeUtility.AsRef<LocalTransform>((void*)currentData);
            ref var backup = ref UnsafeUtility.AsRef<LocalTransform>((void*)previousData);

            var dist = math.distance(trans.Position, backup.Position);

            if (dist > 0)
            {
                trans.Position = backup.Position + (trans.Position - backup.Position) / dist;
            }
        }
    }
}

now i get some new errors i dont know how to solve:

C:\_dev\exxos-unity\Assets\PlayerCharacter\Systems\PredictionSmoothingSystem.cs(124,9): Burst error BC1101: Calling conventions other than 'C' are not supported for `ldftn`. You must decorate methods whose address you take with `[UnmanagedCallersOnly(CallConvs = new[] { typeof(CallConvCdecl) })]`. Found: Default

 at Networking.ClientTransformSmoothingAction..cctor() (at C:\_dev\exxos-unity\Assets\PlayerCharacter\Systems\PredictionSmoothingSystem.cs:124)
 at Networking.ClientPredictionSmoothingSystem.OnUpdate(Networking.ClientPredictionSmoothingSystem* this, ref Unity.Entities.SystemState state) (at C:\_dev\exxos-unity\Assets\PlayerCharacter\Systems\PredictionSmoothingSystem.cs:103)
 at Networking.ClientPredictionSmoothingSystem.__codegen__OnUpdate$BurstManaged(System.IntPtr self, System.IntPtr state)
 at Networking.ClientPredictionSmoothingSystem.Networking.__codegen__OnUpdate_0000019A$BurstDirectCall.Invoke(System.IntPtr self, System.IntPtr state)
 at Networking.ClientPredictionSmoothingSystem.__codegen__OnUpdate(System.IntPtr self, System.IntPtr state)


While compiling job:
SpawnPlayerCharacterSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerInputDataPlayerInputDataInputBufferDataReceiveCommandSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp.Generated.GhostComponentSerializerRegistrationSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_GoInGameCommandRpcCommandRequestSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
GoInGameClientSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerCharacterPhysicsGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_CopyToSnapshot(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
PlayerRotationSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerCharacterPhysicsGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_Deserialize(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|Unity.Collections.DataStreamReader&, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|Unity.Collections.StreamCompressionModel&, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
PlayerMovementSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
ShootProjectileSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerCharacterPhysicsGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_PredictDelta(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|Unity.NetCode.GhostDeltaPredictor&, Unity.NetCode, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
ShootTestSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_NonOwnerPlayerRotationDataGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_CopyToSnapshot(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
__UnmanagedPostProcessorOutput__1221673671587648887, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__Unity_NetCode_CopyInputToCommandBufferSystem_2_PlayerInputData_Assembly_CSharp_Generated_Assembly_CSharp_Generated_PlayerInputDataEventHelper__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerInputDataPlayerInputDataInputBufferDataSendCommandSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerCharacterPhysicsGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_CopyFromSnapshot(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
NonOwnerRotationClientSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
NonOwnerRotationServerSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
GoInGameClientSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
SetupPlayerCameraSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerInputDataPlayerInputDataInputBufferDataCompareCommandSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
ToggleFramerateSystem, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__OnUpdate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_NonOwnerPlayerRotationDataGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_ReportPredictionErrors(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[[Unity.NetCode.CopyInputToBufferJob`2[[PlayerInputData, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerInputDataEventHelper, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Unity.NetCode, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::Execute(Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[[Unity.NetCode.CopyInputToBufferJob`2[[PlayerInputData, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerInputDataEventHelper, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Unity.NetCode, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]&, Unity.Entities, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|Unity.Jobs.LowLevel.Unsafe.JobRanges&, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_NonOwnerPlayerRotationDataGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_CopyFromSnapshot(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_PlayerCharacterPhysicsGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_Serialize(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|Unity.Collections.DataStreamWriter&, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|Unity.Collections.StreamCompressionModel&, Unity.Collections, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_NonOwnerPlayerRotationDataGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_PredictDelta(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|Unity.NetCode.GhostDeltaPredictor&, Unity.NetCode, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
__UnmanagedPostProcessorOutput__1221673671587648887, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::__codegen__Unity_NetCode_ApplyCurrentInputBufferElementToInputDataSystem_2_PlayerInputData_Assembly_CSharp_Generated_Assembly_CSharp_Generated_PlayerInputDataEventHelper__OnCreate(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Assembly_CSharp_Generated.Assembly_CSharp_Generated_NonOwnerPlayerRotationDataGhostComponentSerializer, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null::AOT_RestoreFromBackup(System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089|System.IntPtr, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[[Assembly_CSharp_Generated.Assembly_CSharp_Generated_GoInGameCommandRpcCommandRequestSystem+SendRpc, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Unity.Entities, Version=0.0.0.0, Cultu<message truncated>

Using Unity 6000.0.37f

My bad. We will fix this. Thanks for reporting the problem.

1 Like