• Welcome to AtomicTorch Studio Forums.
 

[EU]kunix server won't start with the current savegame

Started by kyokei, May 05, 2015, 12:10:46 AM

kyokei

Hey AI,

I wanted to stop the server and start it up again and then this happens.

Links to log and savegame:
https://cloud.kunix.org/index.php/s/o9OWonnahbh7dWN

I don't think it's writing log files either.
I've tried the 32-64 bit bootstrapped launcher and the normal mono way of launching.

5.5.15 09:03:42.1920 [IMP] Scope distance set to 33.00
5.5.15 09:03:42.2252 [IMP] Stopping server...
5.5.15 09:03:42.2539 [IMP] MasterServerClient: SocketClient: Processing cycle for connection atomictorch.com:4003 stopped
5.5.15 09:03:42.2542 [IMP] MasterServerClient: SocketClient: -- Closed connection
69.162.166.150:4003
5.5.15 09:03:42.2558 [IMP] MasterServerClient: Connection with Master Server closed successfully
5.5.15 09:03:42.2614 [IMP] SocketServerUDP: Processing cycle for server connection stopped successfully by wait handle
5.5.15 09:03:42.2618 [IMP] SocketServerUDP: Socket-server stop listening
5.5.15 09:03:42.2714 [ERR] Critical exception
Exception System.ArgumentException: An element with the same key already exists in the dictionary.
   -------------------------stack-------------------------
  at System.Collections.Generic.Dictionary`2[System.UInt32,AtomicTorch.SpaceRPG.Server.GameObjects.IGameObject].Add (UInt32 key, IGameObject value) [0x00000] in <filename unknown>:0
  at AtomicTorch.SpaceRPG.Server.Utils.ObjectsStore.Add (IGameObject gameObject) [0x00000] in <filename unknown>:0
  at AtomicTorch.SpaceRPG.Server.Utils.ObjectsManager.Add (IGameObject obj) [0x00000] in <filename unknown>:0
  at AtomicTorch.SpaceRPG.Server.GameObjects.PhysicsObject..ctor (GameObjectType gameObjectType, GameObjectIdType gameObjectTypeId, Single coordX, Single coordY, Single angleRad) [0x00000] in <filename unknown>:0
  at AtomicTorch.SpaceRPG.Server.GameObjects.StarUnsafeZonePhysicsObject..ctor () [0x00000] in <filename unknown>:0
  at AtomicTorch.SpaceRPG.Server.GameObjects.StarSystem.CreateStarUnsafeZone (Single scale) [0x00000] in <filename unknown>:0
  at AtomicTorch.SpaceRPG.Server.GameObjects.StarSystem.InitPhysics () [0x00000] in <filename unknown>:0
  at PRk7RCg8PpxhMGN8YbL.EvtfxsgM5UNfvWXyTvA.I5GdCqj8xN () [0x00000] in <filename unknown>:0
  at auMJdng0LnPTrCrITVY.Hg3SZCguceCtW2DoTVr.ax6q0VAdQA (UInt32  ) [0x00000] in <filename unknown>:0
  at z0XIPF6Zd1UQXOSFblQ.eatWFIgzeGK0d2mBaOk.VLJjlLDkey (System.String[]  ) [0x00000] in <filename unknown>:0
  at z0XIPF6Zd1UQXOSFblQ.eatWFIgzeGK0d2mBaOk.KqRj8OJ3yV (System.String[]  , Boolean  ) [0x00000] in <filename unknown>:0
  at AtomicTorch.SpaceRPG.Server.RuntimeWin.Program.Start (System.String[] args) [0x00000] in <filename unknown>:0
5.5.15 09:03:42.2722 [IMP] Press any key to exit
Logger is disposed. Log message: CRITICAL! Unhandled exception. Terminating process!
Exception System.NotSupportedException: Stream does not support writing
   -------------------------stack-------------------------
  at System.IO.FileStream.Write (System.Byte[] array, Int32 offset, Int32 count) [0x00000] in <filename unknown>:0
  at System.IO.StreamWriter.FlushBytes () [0x00000] in <filename unknown>:0
  at System.IO.StreamWriter.FlushCore () [0x00000] in <filename unknown>:0
  at System.IO.StreamWriter.Write (System.String value) [0x00000] in <filename unknown>:0
  at System.IO.CStreamWriter.InternalWriteString (System.String val) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.IO.CStreamWriter:InternalWriteString (string)
  at System.TermInfoDriver.WriteConsole (System.String str) [0x00000] in <filename unknown>:0
  at System.TermInfoDriver.set_ForegroundColor (ConsoleColor value) [0x00000] in <filename unknown>:0
  at System.ConsoleDriver.set_ForegroundColor (ConsoleColor value) [0x00000] in <filename unknown>:0
  at System.Console.set_ForegroundColor (ConsoleColor value) [0x00000] in <filename unknown>:0
  at OFI1H67Qt69ZwlL3eP2.CFKbMc7RgKh5KYb8tPF.Dispose () [0x00000] in <filename unknown>:0
  at AtomicTorch.GameEngine.Common.Logging.BaseLogger.Finalize () [0x00000] in <filename unknown>:0

ai_enabled

Thanks for reporting.
It seems we cannot fix the broken savegame. Will include the fix to avoid such issues to the next patch.
Regards!

necavi

I would recommend backing up savegames, they seem somewhat fragile unfortunately. If you want a script to do it I would be happy to provide one to help.

kyokei

AI - does the full backup save it to slot_0_backup or backup_slot_0?

@Necavi, yeah... I will do that from now on...

A clean save might not be the worst thing ever... it would temporarily fix the loooong saving of the world... reduce it from 12+ seconds to 3 seconds...

*edit* Nevermind, none of the saves want to load.... kunix is up with a new save.