G3rste / vsvillage

A Vintage Story mod adding villagers and villages roaming the world.
MIT License
13 stars 7 forks source link

Mystery fatal error during chunk generation #16

Closed Aniotid closed 2 years ago

Aniotid commented 2 years ago

Crash type: Multiplayer. Fatal error to server, near-instant and infinitely repeating until server stopped and went into a restart loop. Forced shutdown and mod removal/chunk regeneration was necessary. No errors visible in client-side logs of the player present.

Game version: 1.17.3

VS Village version: vsvillage_v0.2.4_vsquest_v0.0.+.zip

Loaded Mods: ancienttools@1.4.7, backpackpackplus@1.0.3, betterruins@0.0.3, bullseye@2.4.0, Ceramos@0.2.1, CommonerPlus@1.0.0, cralutweaks@1.0.2, hideandfabric@1.2.5, nightwatcher@1.3.0, primitivesurvival@3.0.5, translocatorengineeringredux@1.2.0, game@1.17.3, wildcraft@1.4.1, fromgoldencombs@1.3.14-pre.1, hudclock@2.8.0, medievalexpansion@3.8.1, petai@1.5.4, ruinvariants@1.0.1, creative@1.17.3, vsquest@0.0.4, survival@1.17.3, workbenchexpansion@1.5.1, metalrecovery@0.1.18-rc.2, cats@1.5.2, tradercamps@1.0.2, em@1.0.0, vsvillage@0.2.4, wolftaming@1.5.3, bricklayers@1.0.1

Repeatable: No? Doesn't seem like it. Attempting some forced chunk generation after fixing the issue did not result in a repeat.

What happened?: A single player was apparently just exploring on foot. The server hung while attempting to generate new chunks and then went into a death loop.

Took server down, temporarily removed just VSVillage, suspecting it after the last round of strange instabilities. Server restarted successfully, could log in. Added VSVillage back just to check, reloaded mods, and server death looped with same error immediately. Removed and restarted, then tried to do what investigation I could... and found nothing?

For the player who crossed the problem chunk, the server believed they kept moving, and they found themselves very far away when they rejoined. They helped me find the area they roughly were at when things began to freeze; took a thorough look around, then returned to that point and regenerated chunks with /wgen regen 10. Enabled VSVillage again after, and server remains stable once more.

There were no villages, guard towers, mayors, traders, ETC in sight around the problem chunk, nor in the direction the server continued to move the affected player while crashing. I could find nothing that visibly links this problem to VSVillage assets, save the server behavior with the mod enabled and disabled.

Genuinely have no idea what went wrong here.

Error snippet, just imagine this x5000, no other logs had any related messages:

10:37:13 [Server Fatal] System.NullReferenceException: Object reference not set to an instance of an object at Vintagestory.Server.ServerSystemEntitySimulation.SendEntitySpawns () [0x00089] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick (System.Single dt) [0x00174] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerMain.Process () [0x001ba] in <6215ae1029cd4696b4c4b2c34106b061>:0 10:37:14 [Server Fatal] System.NullReferenceException: Object reference not set to an instance of an object at Vintagestory.Server.ServerSystemEntitySimulation.SendEntitySpawns () [0x00089] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick (System.Single dt) [0x00174] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerMain.Process () [0x001ba] in <6215ae1029cd4696b4c4b2c34106b061>:0 rate limit exceeded 10:37:15 [Server Fatal] System.NullReferenceException: Object reference not set to an instance of an object at Vintagestory.Server.ServerSystemEntitySimulation.SendEntitySpawns () [0x00089] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick (System.Single dt) [0x00174] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerMain.Process () [0x001ba] in <6215ae1029cd4696b4c4b2c34106b061>:0 10:37:15 [Server Fatal] System.NullReferenceException: Object reference not set to an instance of an object at Vintagestory.Server.ServerSystemEntitySimulation.SendEntitySpawns () [0x00089] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick (System.Single dt) [0x00174] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerMain.Process () [0x001ba] in <6215ae1029cd4696b4c4b2c34106b061>:0 10:37:16 [Server Fatal] System.NullReferenceException: Object reference not set to an instance of an object at Vintagestory.Server.ServerSystemEntitySimulation.SendEntitySpawns () [0x00089] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerSystemEntitySimulation.OnServerTick (System.Single dt) [0x00174] in <6215ae1029cd4696b4c4b2c34106b061>:0 at Vintagestory.Server.ServerMain.Process () [0x001ba] in <6215ae1029cd4696b4c4b2c34106b061>:0

G3rste commented 2 years ago

Are there some messages like this in between? [Notification] Tried to get block outside generating chunks! Set RuntimeEnv.DebugOutOfRangeBlockAccess to debug.

G3rste commented 2 years ago

I have high hopes the new village generator will fix this. If the issues persist, please let me kno