Hey,
Nice to see u figured that out, the sector crashing upon load/generation crash..
i use another more simple method, but its not a proper fix either.
whenever a sector crash on me when i jump into it, i just delete that sector
easy way to do so is , simply go to >
\Users\current_user\AppData\Roaming\Avorion\galaxies\default_galaxy\sectors
then sort them files by date and time, delete the last sector made
each sector has 2 files for example ''-123_-123 and 123_-123v'' delete them both.
(if your not sure check the server logs like stated in the above post)
it should not affect the player , or galaxy/sector state.
deleting the sector the player came from however will revert u back to a saved state
and u will respawn in the last sector that had a ship or station that allows it.
your ships however, will always stay in the sector u came from, or was trying to get to,
or the last server saved state... player.data related
i'm not entirely sure, but almost all server crash issue's are memory related
whenever the sector load gets too high, so i tend to stay around in a system,
until it unloads previous ones, if the tread count and server load gets too high,
it fails to proper enumerate the new sector.
i can sit around in systems for days, leaving the server running,
and my a.i army stacking insane amounts of npc and loot without issue's,
but when jumping faction owned system's too fast,
the server module will crash on me.
i found more severe crashes too,
the only simple way to make sure the gamestate does not get corrupt,
is by backing up your galaxy files often, so u can replace them.
one of these is when the game crash on loading server/galaxy or abrupt exit.
or when u don't fix this, it can even end up duplicating your ships or deleting them
once u have a cloned ship with the same names u get other issue's a.i related.
it might seem cool to have that uber pimped out xsotan artifact ship cloned
but my game seemed to be allot more buggy.
also,
if u know the server module froze up again, always proper exit from the game
allowing it to save your player status, and when making backups.
always make sure when u apply a backup, to remove the entire corrupted galaxy.
or else u might end up with duplicate data.
hope u found this usefull.