Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.42k stars 377 forks source link

NullReferenceException ERROR #170

Closed 008 closed 13 years ago

008 commented 13 years ago

TShock: ERROR: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Netplay.ServerLoop(Object threadContext) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 2011-06-30 14:07:21 - TShock: ERROR: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Netplay.ListenForClients(Object threadContext) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

10 times a day

008 commented 13 years ago

players count >10-12 and that error

RogerPaladin commented 13 years ago

Confirm

cheahjs commented 13 years ago

Please make sure its an issue with TShock, not with the vanilla server. The call stack shows nothing that comes from TShock.

DankBud commented 13 years ago

confirm http://paste2.org/p/1496686

RogerPaladin commented 13 years ago

DankBud You have other errors. Crash and then spawnpoint moved to hell?

DankBud commented 13 years ago

yes :(

RogerPaladin commented 13 years ago

I ve got this crash today. Just revert to backup.

hakusaro commented 13 years ago

Twitchy, fixed yet?

ztzven commented 13 years ago

Working on it. Busy Day

ztzven commented 13 years ago

Can you reproduce this? If not I will close the issue, as this should be fixed. Is it Client or Server side?

008 commented 13 years ago

my didicated server is 2core 2.33Gh 2Gb ram, full 100 Mbit if more than 13 players i have lags 2-5 secs and every 30-120 min i have that error

TShock: ERROR: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Netplay.ServerLoop(Object threadContext) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

under 12 players no errors

008 commented 13 years ago

12 players

TShock: ERROR: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Netplay.ServerLoop(Object threadContext) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 2011-07-02 18:41:48 - TShock: ERROR: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Netplay.ListenForClients(Object threadContext) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

008 commented 13 years ago

in Tshock 104 i can host 25 players

ghost commented 13 years ago

Most annoying error, I get this on tShock 1.0.5 and the 29.

6-8 ish players.

Enddy commented 13 years ago

I got this error and the spawn moved to hell too.

ztzven commented 13 years ago

TO ALL PEOPLE GETTING THIS ERROR From now on please do not post here unless you get the error using the latest dev build, this should be fixed.

Link here http://ci.shankshock.com/repository/download/bt2/588:id/TShockAPI.dll

Kresp commented 13 years ago

I'm getting another error while starting server with new dll.

04.07.2011 18:43:07 System.TypeLoadException: Не удалось загрузить тип "SaveWorldD" из сборки "TerrariaServerAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null". в TShockAPI.TShock.Initialize() в TerrariaAPI.PluginContainer.Initialize() в TerrariaAPI.Program.Initialize(Main main) в Terraria.ProgramServer.Main(String[] args)

Не удалось загрузить тип "SaveWorldD" из сборки "TerrariaServerAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null".

means Can not load type "SaveWorldD" from assembly "TerrariaServerAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null".

Enddy commented 13 years ago

I had the same error as Kresp.

7/4/2011 3:16:01 AM System.TypeLoadException: Could not load type 'SaveWorldD' from assembly 'TerrariaServerAPI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. at TShockAPI.TShock.Initialize() at TerrariaAPI.PluginContainer.Initialize() at TerrariaAPI.Program.Initialize(Main main) at Terraria.ProgramServer.Main(String[] args)

008 commented 13 years ago

i have the same error - Could not load type 'SaveWorldD' but update to latest Release Branch and clean intall it helps too me

cheahjs commented 13 years ago

Please make sure you have the latest API dll and binaries : https://github.com/TShock/TShock/tree/master/TShockAPI/TerrariaServerBins

008 commented 13 years ago

confirm, i have crash with 9 players

008 commented 13 years ago

2011-07-04 19:17:05 - TShock: INFO: shenk said: nu 2011-07-04 19:17:17 - TShock: INFO: shenk said: ey 2011-07-04 19:17:31 - TShock: INFO: Stas said: blin 2011-07-04 19:17:35 - TShock: INFO: DARKness said: Bo 2011-07-04 19:18:23 - TShock: INFO: DARKness said: Bacceon c shipami 2011-07-04 19:18:38 - TShock: INFO: Suril left. 2011-07-04 19:18:39 - TShock: INFO: Jeizer (188.17.98.73) from 'default' group joined. 2011-07-04 19:19:54 - TShock: INFO: JORJ (178.46.228.33) from 'default' group joined. 2011-07-04 19:19:55 - TShock: INFO: g left. 2011-07-04 19:19:56 - TShock: INFO: JORJ left. 2011-07-04 19:19:58 - TShock: ERROR: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Netplay.ServerLoop(Object threadContext) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 2011-07-04 19:19:58 - Tools: INFO: Broadcast: Saving world, might lag. 2011-07-04 19:19:58 - TShock: ERROR: System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Netplay.ListenForClients(Object threadContext) at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() 2011-07-04 19:19:58 - Tools: INFO: Broadcast: Saving world, might lag. 2011-07-04 19:19:58 - Tools: INFO: Broadcast: World saved. 2011-07-04 19:19:58 - Tools: INFO: World saved at (D:\Users\008\Documents\My Games\Terraria\Worlds\world6.wld.crash.crash) 2011-07-04 19:20:02 - Tools: INFO: Broadcast: World saved. 2011-07-04 19:20:02 - Tools: INFO: World saved at (D:\Users\008\Documents\My Games\Terraria\Worlds\world6.wld.crash.crash)

ztzven commented 13 years ago

This is a completely new error, to do with SaveWorld, open a new issue on this.

Teleport Issue closed