onimp / oni_multiplayer

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

Crash after loaded game resume (late game) #286

Open polycone opened 1 year ago

polycone commented 1 year ago

InvalidOperationException: Sequence contains no elements
  at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00010] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at MultiplayerMod.Platform.Steam.Network.Messaging.Surrogates.RoomSurrogate.GetObjectData (System.Object obj, System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) [0x0002a] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize (System.Object obj, System.Runtime.Serialization.ISurrogateSelector surrogateSelector, System.Runtime.Serialization.StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, System.Runtime.Serialization.IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) [0x000a4] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize (System.Object obj, System.Runtime.Serialization.ISurrogateSelector surrogateSelector, System.Runtime.Serialization.StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, System.Runtime.Serialization.IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) [0x00006] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize (System.Object graph, System.Runtime.Remoting.Messaging.Header[] inHeaders, System.Runtime.Serialization.Formatters.Binary.__BinaryWriter serWriter, System.Boolean fCheck) [0x0018b] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers, System.Boolean fCheck) [0x0006e] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at MultiplayerMod.Platform.Steam.Network.Messaging.SerializedNetworkMessage..ctor (MultiplayerMod.Platform.Steam.Network.Messaging.INetworkMessage message) [0x00021] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Platform.Steam.Network.Messaging.NetworkSerializer.Serialize (MultiplayerMod.Platform.Steam.Network.Messaging.INetworkMessage message) [0x00000] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Platform.Steam.Network.Messaging.NetworkMessageFactory+<Create>d__0.MoveNext () [0x0003d] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Core.Extensions.EnumerableExtensions.ForEach[T] (System.Collections.Generic.IEnumerable`1[T] enumerable, System.Action`1[T] action) [0x00017] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Platform.Steam.Network.SteamServer.SendCommand (MultiplayerMod.Multiplayer.Commands.IMultiplayerCommand command, MultiplayerMod.Network.MultiplayerCommandOptions options, System.Collections.Generic.IEnumerable`1[T] connections) [0x00021] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Platform.Steam.Network.SteamServer.ReceiveMessages () [0x000fd] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Platform.Steam.Network.SteamServer.Tick () [0x00017] in <9d5476f5734f4b7186d16fe17f585d05>:0 
  at MultiplayerMod.Platform.Steam.Network.Components.SteamServerComponent.Update () [0x00000] in <9d5476f5734f4b7186d16fe17f585d05>:0