game keeps crashing

busser

Newcomer
I am playing on my friend's server and sometimes when I visit different parts of the map my game gets stuck in the loading screen and I get this error message in my command line.
Does anyone know how to fix this?

Thank you!!

[game] An error occurred in the base update loop: InvalidOperationException: Operation is not valid due to the current state of the object.
at Netcode.NetRefTypes.ReadGenericType(BinaryReader reader) in stardewvalley\Farmer\Netcode\NetRef.cs:line 355
at Netcode.NetRefTypes.ReadType(BinaryReader reader) in stardewvalley\Farmer\Netcode\NetRef.cs:line 332
at Netcode.NetRefBase`2.ReadFull(BinaryReader reader, NetVersion version) in stardewvalley\Farmer\Netcode\NetRef.cs:line 220
at Netcode.NetDictionary`5.ReadFieldFull(BinaryReader reader, NetVersion version) in stardewvalley\Farmer\Netcode\NetDictionary.cs:line 365
at Netcode.NetDictionary`5.ReadFull(BinaryReader reader, NetVersion version) in stardewvalley\Farmer\Netcode\NetDictionary.cs:line 545
at Netcode.NetCollection`1.ReadFull(BinaryReader reader, NetVersion version) in stardewvalley\Farmer\Netcode\NetCollection.cs:line 266
at Netcode.NetFields.ReadFull(BinaryReader reader, NetVersion version) in stardewvalley\Farmer\Netcode\NetFields.cs:line 107
at Netcode.NetExtendableRef`2.ReadValueFull(T value, BinaryReader reader, NetVersion version) in stardewvalley\Farmer\Netcode\NetRef.cs:line 263
at Netcode.NetRefBase`2.ReadFull(BinaryReader reader, NetVersion version) in stardewvalley\Farmer\Netcode\NetRef.cs:line 222
at Netcode.NetRoot`1.Connect(BinaryReader reader) in stardewvalley\Farmer\Netcode\NetRoot.cs:line 85
at StardewValley.Multiplayer.readObjectFull[T](BinaryReader reader) in stardewvalley\Farmer\Farmer\Network\Multiplayer.cs:line 807
at StardewValley.Multiplayer.readActiveLocation(IncomingMessage msg) in stardewvalley\Farmer\Farmer\Network\Multiplayer.cs:line 1304
at StardewModdingAPI.Framework.SMultiplayer.OnClientProcessingMessage(IncomingMessage message, Action`1 sendMessage, Action resume) in SMAPI\Framework\SMultiplayer.cs:line 361
at StardewValley.SDKs.GalaxyNetClient.onReceiveMessage(GalaxyID peer, Stream messageStream) in stardewvalley\Farmer\Farmer\SDKs\GalaxyNetClient.cs:line 98
at StardewValley.SDKs.GalaxySocket.Receive(Action`1 onConnection, Action`2 onMessage, Action`1 onDisconnect, Action`1 onError) in stardewvalley\Farmer\Farmer\SDKs\GalaxySocket.cs:line 769
at StardewValley.SDKs.GalaxyNetClient.receiveMessagesImpl() in stardewvalley\Farmer\Farmer\SDKs\GalaxyNetClient.cs:line 63
at StardewValley.Network.Client.receiveMessages() in stardewvalley\Farmer\Farmer\Network\Client.cs:line 75
at StardewValley.Multiplayer.UpdateEarly() in stardewvalley\Farmer\Farmer\Network\Multiplayer.cs:line 1844
at StardewValley.Game1._update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 4283
at StardewValley.Game1.Update(GameTime gameTime) in stardewvalley\Farmer\Farmer\Game1.cs:line 3974
at StardewModdingAPI.Framework.SCore.OnPlayerInstanceUpdating(SGame instance, GameTime gameTime, Action runUpdate) in SMAPI\Framework\SCore.cs:line 1120
 
Top