Bug? Server and Client crash

Discussion in 'Help and Support' started by irajacobs, Jul 16, 2015.

  1. irajacobs

    irajacobs Level 1

    Joined:
    Feb 16, 2014
    Messages:
    17
    I was not at the PC, so I wasn't watching when this happened, but both tshock and my terraria client were crashed, when I returned to see the following error message.

    When I left the game, my character was in the jungle temple with several minions killing lizhards.


    Unhandled Exception: System.OverflowException: Arithmetic operation resulted in an overflow.
    at TerrariaApi.Server.HookManager.InvokeNetGetData(Byte& msgId, MessageBuffer buffer, Int32& index, Int32& length)
    at Terraria.MessageBuffer.GetData(Int32 start, Int32 length)
    at Terraria.NetMessage.CheckBytes(Int32 bufferIndex)
    at Terraria.Netplay.ServerLoop(Object threadContext)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
     
  2. irajacobs

    irajacobs Level 1

    Joined:
    Feb 16, 2014
    Messages:
    17
    No replies, okay...well here's a 2nd occurrence of a crash while-I-was-away. I did not have a client connected this time:


    Unhandled Exception: System.OverflowException: Arithmetic operation resulted in an overflow.
    at TerrariaApi.Server.HookManager.InvokeNetGetData(Byte& msgId, MessageBuffer buffer, Int32& index, Int32& length)
    at Terraria.MessageBuffer.GetData(Int32 start, Int32 length)
    at Terraria.NetMessage.CheckBytes(Int32 bufferIndex)
    at Terraria.Netplay.ServerLoop(Object threadContext)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
     
  3. nicatronTg

    nicatronTg Shank / hakusaro
    TShock Founder TShock Admin

    Joined:
    Jul 21, 2011
    Messages:
    716
    Thanks for your report.
     
  4. PizzaStix423

    PizzaStix423 Level 1

    Joined:
    Sep 22, 2014
    Messages:
    7
    My server seems to be having a similar problem as evidenced by the error log below, crashing almost every hour or so:


    2015-07-19 05:19:20 - TShock: ERROR: System.OverflowException: Arithmetic operation resulted in an overflow.
    at TerrariaApi.Server.HookManager.InvokeNetGetData(Byte& msgId, MessageBuffer buffer, Int32& index, Int32& length)
    at Terraria.MessageBuffer.GetData(Int32 start, Int32 length)
    at Terraria.NetMessage.CheckBytes(Int32 bufferIndex)
    at Terraria.Netplay.ServerLoop(Object threadContext)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    2015-07-19 05:19:20 - TShock: ERROR: