onimp / oni_multiplayer

Oxygen Not Included multiplayer mod. Work in progress.
MIT License
223 stars 18 forks source link

Game crash on hard sync (late game) #282

Closed polycone closed 1 year ago

polycone commented 1 year ago

NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.get_gameObject(UnityEngine.Component)
  at MultiplayerMod.Multiplayer.Objects.MultiplayerObjects.SynchronizeWithTracker () [0x0002a] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Multiplayer.World.WorldManager.Sync () [0x0002f] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Multiplayer.CoreOperations.Binders.HostEventsBinder.<OnGameStarted>b__7_0 (MultiplayerMod.Multiplayer.CoreOperations.Events.WorldSavedEvent _) [0x00000] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Core.Events.EventDispatcher+<>c__DisplayClass4_0`1[T].<Subscribe>b__0 (T event, MultiplayerMod.Core.Events.EventSubscription _) [0x00000] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <695d1cc93cca45069c528c15c9fdd749>:0 
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at MultiplayerMod.Core.Events.EventDispatcher+<>c__DisplayClass8_0`1[T].<Dispatch>b__0 (MultiplayerMod.Core.Events.EventDispatcher+SubscribedAction it) [0x00016] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Core.Extensions.EnumerableExtensions.ForEach[T] (System.Collections.Generic.IEnumerable`1[T] enumerable, System.Action`1[T] action) [0x00010] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Core.Events.EventDispatcher.Dispatch[T] (T event) [0x00049] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Multiplayer.CoreOperations.GameStateEventsRelay.OnWorldSave () [0x0000b] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Game.World.SaveLoaderEvents.SavePostfix () [0x0001a] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at (wrapper dynamic-method) SaveLoader.SaveLoader.Save_Patch1(SaveLoader,string,bool,bool)
  at Game+<DelayedSave>d__202.MoveNext () [0x000f5] in <d1b7643456214f4e8c00f70e3a2b4469>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <72b60a3dd8cd4f12a155b761a1af9144>:0