Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customsuitsmod thread error when moving from a restarted server to singleplayer #217

Open
StarCoreIssueBot opened this issue Oct 27, 2024 · 0 comments

Comments

@StarCoreIssueBot
Copy link
Collaborator

2024-10-27 06:57:33.518 - Thread: 1 -> Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Sandbox.ModAPI.MyModAPIHelper.MyMultiplayer.HandleMessage(UInt16 id, Byte[] message)
at Sandbox.ModAPI.MyModAPIHelper.MyMultiplayer.ModMessageServerReliable<>System_UInt16#System_Byte<#>#System_UInt64.Invoke(IMyEventOwner& , UInt16& id, Byte[]& message, UInt64& recipient, DBNull& arg4, DBNull& arg5, DBNull& arg6)
at VRage.Network.MyReplicationLayerBase.InvokeLocally[T1,T2,T3,T4,T5,T6,T7](CallSite7 site, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7) at VRage.Network.MyReplicationLayer.DispatchEvent[T1,T2,T3,T4,T5,T6,T7,T8](CallSite callSite, EndpointId recipient, Nullable1 position, T1& arg1, T2& arg2, T3& arg3, T4& arg4, T5& arg5, T6& arg6, T7& arg7, T8& arg8)
at VRage.Network.MyReplicationLayerBase.RaiseEvent[T1,T2,T3,T4,T5](T1 arg1, T5 arg5, Func2 action, T2 arg2, T3 arg3, T4 arg4, EndpointId endpointId, Nullable1 position)
at Sandbox.ModAPI.MyModAPIHelper+MyMultiplayer.SendMessageToServer_Patch1(MyMultiplayer this, UInt16 id, Byte[] message, Boolean reliable)
at Jakaria.CustomSuits.CustomSuitsMod.GetOrAddPartData(Int64 identityId)
at Jakaria.CustomSuits.CustomSuitsMod.MyEntities_OnEntityAdd(MyEntity entity)
at System.Action1.Invoke(T obj) at Sandbox.Game.Entities.MyEntities.RaiseEntityAdd(MyEntity entity) at Sandbox.Game.Entities.MyEntities.Add(MyEntity entity, Boolean insertIntoScene) at Sandbox.Game.Entities.MyEntities.InitEntityData.OnEntityInitialized() at Sandbox.Game.Entities.MyEntities.<>c__DisplayClass179_1.<Load>b__1(Int32 i) at ParallelTasks.ForLoopWork.DoWork(WorkData workData) at ParallelTasks.WorkItem.DoWork(Int32 expectedID) 2024-10-27 06:57:33.973 - Thread: 12 -> Initialized large grid [ADM] Photochemical Haze 12137 PCU 2024-10-27 06:57:33.973 - Thread: 1 -> Exceptions during entities load: 2024-10-27 06:57:33.973 - Thread: 1 -> Exception occurred: ParallelTasks.TaskException: An exception(s) was thrown while executing a task. at ParallelTasks.WorkItem.ThrowExceptionsInternal(Int32 runId) at ParallelTasks.Task.WaitOrExecute(Boolean blocking) at ParallelTasks.Parallel.For(Int32 startInclusive, Int32 endExclusive, Action1 body, Int32 stride, WorkPriority priority, Nullable1 options, Boolean blocking) at Sandbox.Game.Entities.MyEntities.Load_Patch2(List1 objectBuilders, Nullable1& errorMessage) Task exception, inner exception 0: System.NullReferenceException: Object reference not set to an instance of an object. at Sandbox.ModAPI.MyModAPIHelper.MyMultiplayer.HandleMessage(UInt16 id, Byte[] message) at Sandbox.ModAPI.MyModAPIHelper.MyMultiplayer.ModMessageServerReliable<>System_UInt16#System_Byte<#>#System_UInt64.Invoke(IMyEventOwner& <static>, UInt16& id, Byte[]& message, UInt64& recipient, DBNull& arg4, DBNull& arg5, DBNull& arg6) at VRage.Network.MyReplicationLayerBase.InvokeLocally[T1,T2,T3,T4,T5,T6,T7](CallSite7 site, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
at VRage.Network.MyReplicationLayer.DispatchEvent[T1,T2,T3,T4,T5,T6,T7,T8](CallSite callSite, EndpointId recipient, Nullable1 position, T1& arg1, T2& arg2, T3& arg3, T4& arg4, T5& arg5, T6& arg6, T7& arg7, T8& arg8) at VRage.Network.MyReplicationLayerBase.RaiseEvent[T1,T2,T3,T4,T5](T1 arg1, T5 arg5, Func2 action, T2 arg2, T3 arg3, T4 arg4, EndpointId endpointId, Nullable1 position) at Sandbox.ModAPI.MyModAPIHelper+MyMultiplayer.SendMessageToServer_Patch1(MyMultiplayer this, UInt16 id, Byte[] message, Boolean reliable) at Jakaria.CustomSuits.CustomSuitsMod.GetOrAddPartData(Int64 identityId) at Jakaria.CustomSuits.CustomSuitsMod.MyEntities_OnEntityAdd(MyEntity entity) at System.Action1.Invoke(T obj)
at Sandbox.Game.Entities.MyEntities.RaiseEntityAdd(MyEntity entity)
at Sandbox.Game.Entities.MyEntities.Add(MyEntity entity, Boolean insertIntoScene)
at Sandbox.Game.Entities.MyEntities.InitEntityData.OnEntityInitialized()
at Sandbox.Game.Entities.MyEntities.<>c__DisplayClass179_1.b__1(Int32 i)
at ParallelTasks.ForLoopWork.DoWork(WorkData workData)
at ParallelTasks.WorkItem.DoWork(Int32 expectedID)

Submitted by:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant