Pryaxis / TShock

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

Error on server start up #1245

Closed Aestrocorp closed 8 years ago

Aestrocorp commented 8 years ago

I start it on Administrator and this is what happens: Pastebin (so it's easier to read.)

[07/24/16 17:13:43] [Server API] Verbose: TerrariaApi - Server v1.23.0.0 started. [07/24/16 17:13:43] [Server API] Verbose: Command line: "C:\UsersUsername Redacted\Documents\Terraria\TerrariaServer.exe" [07/24/16 17:13:43] [Server API] Verbose: OS: Microsoft Windows NT 6.2.9200.0 (64bit: True) [07/24/16 17:13:43] [Server API] Verbose: Mono: False [07/24/16 17:13:43] [Server API] Info: Plugin TShock v4.3.16.0 (by The TShock Team) initiated. [07/24/16 17:13:44] [Server API] Error: Server crashed due to an unhandled exception: System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Terraria.Main.WorldListSortMethod(WorldFileData data1, WorldFileData data2) at System.Array.FunctorComparer1.Compare(T x, T y) at System.Collections.Generic.ArraySortHelper1.InsertionSort(T[] keys, Int32 lo, Int32 hi, IComparer1 comparer) at System.Collections.Generic.ArraySortHelper1.IntroSort(T[] keys, Int32 lo, Int32 hi, Int32 depthLimit, IComparer1 comparer) at System.Collections.Generic.ArraySortHelper1.IntrospectiveSort(T[] keys, Int32 left, Int32 length, IComparer1 comparer) at System.Collections.Generic.ArraySortHelper1.Sort(T[] keys, Int32 index, Int32 length, IComparer1 comparer) --- End of inner exception stack trace --- at System.Collections.Generic.ArraySortHelper1.Sort(T[] keys, Int32 index, Int32 length, IComparer1 comparer) at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer1 comparer) at System.Collections.Generic.List1.Sort(Comparison1 comparison) at Terraria.Main.LoadWorlds() at Terraria.Main.DedServ() at Terraria.ProgramServer.InnerStart(String[] args)

Xandershark1 commented 8 years ago

Server's aren't up to date with the Terraria version, need to wait until they come out with a new API code for the servers

ivanbiljan commented 8 years ago

Remove all your worlds and start adding them one by one to see which one causes the exception.

XGhozt commented 8 years ago

I had this problem, it's one of the world files. Not sure if they are corrupt or not, I deleted the old ones and the error went away.