T
tModLoader3y ago
stormy-gold

Server crashed; "source array was not long enough'

Had a recent crash that I cannot determine the cause for, server just lagged out and eventually I got a "Lost connection" screen, I am the host with about 4 other people in the server at the time. Log dump: [16:24:32.942] [7/WARN] [tML]: Silently Caught Exception: System.ArgumentException: Source array was not long enough. Check the source index, length, and the array's lower bounds. (Parameter 'sourceArray') at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length) at System.Collections.Generic.Queue1.SetCapacity(Int32 capacity) at Terraria.Social.Steam.SteamP2PWriter.SendAll() in tModLoader\Terraria\Social\Steam\SteamP2PWriter.cs:line 88 at Terraria.Social.Steam.CoreSocialModule.SteamTickLoop(Object context) in tModLoader\Terraria\Social\Steam\CoreSocialModule.cs:line 83 at System.Threading.Thread.StartHelper.Callback(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Thread.StartCallback() [16:24:32.944] [7/ERROR] [tML]: Unhandled Exception System.ArgumentException: Source array was not long enough. Check the source index, length, and the array's lower bounds. (Parameter 'sourceArray') at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length) at System.Collections.Generic.Queue1.SetCapacity(Int32 capacity) at Terraria.Social.Steam.SteamP2PWriter.SendAll() in tModLoader\Terraria\Social\Steam\SteamP2PWriter.cs:line 88 at Terraria.Social.Steam.CoreSocialModule.SteamTickLoop(Object context) in tModLoader\Terraria\Social\Steam\CoreSocialModule.cs:line 83 at System.Threading.Thread.StartHelper.Callback(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Thread.StartCallback() [16:24:58.851] [Server Hang Watchdog/WARN] [tML]: Server hung for more than 10 seconds. Cannot determine cause from watchdog thread
2 Replies
tModLoader
tModLoader3y ago
Tag: flowchart (Owner: jopojelly#2739) Something weird happening in your game? Need to skip loading mods? Can't load a world or player? Do the following before asking for more help: https://cdn.discordapp.com/attachments/466247288331829249/481464717043564554/Untitled_Diagram1.png
Tyfyter
Tyfyter5w ago
A mod may have been mistakenly sending packets far exceeding what Terraria can actually handle, if this was the cause, you may be able to determine which mod was responsible by pressing F8 twice

Did you find this page helpful?