anegostudios / VintageStory-Issues

Vintage Story's public issue tracker for reporting bugs, crashes and the like
46 stars 16 forks source link

Crash - NullRef on Chunk-unload during EmptyAndReuseArrays #2311

Closed Konfuz closed 1 year ago

Konfuz commented 1 year ago

Game Version

v1.17.9

Platform

Linux

Modded

Modded

SP/MP

Multiplayer

Description

First time I am experiencing this crash so must be rare. Occured right after Translocating during unloading of the previous chunks

How to reproduce

No known way to reproduce

Screenshots

No response

Logs

Client-Crash

Game Version: v1.17.9 (Stable)
12/10/2022 5:00:41 PM: Critical error occurred
Loaded Mods: aurafurytweaks@0.1.0, bettercrates@1.5.2, chiseltools@1.5.6, extrachests@1.6.0, specializedbags-10Slot@0.4.2, tradeomat@1.6.3, game@1.17.9, carrycapacity@0.6.5, farmlanddropssoil@1.4.0, medievalexpansion@3.8.1, miningtools@1.1.4, creative@1.17.9, survival@1.17.9, workbenchexpansion@1.5.1, em@1.0.1, bricklayers@1.1.1
System.NullReferenceException: Object reference not set to an instance of an object
  at Vintagestory.Client.NoObf.ClientChunkData.EmptyAndReuseArrays (System.Collections.Generic.List`1[T] datas) [0x0003e] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Common.ChunkDataPool.FreeArraysAndReset (Vintagestory.Common.ChunkData cdata) [0x00034] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Common.ChunkDataPool.Free (Vintagestory.Common.ChunkData cdata) [0x00000] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Common.WorldChunk.Dispose () [0x00043] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.NoObf.SystemUnloadChunks.HandleChunkUnload (Packet_Server packet) [0x0018f] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.NoObf.ProcessPacketTask.ProcessPacket (Packet_Server packet) [0x00016] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.NoObf.ProcessPacketTask.Run () [0x00000] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks (System.Single deltaTime) [0x0008e] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.NoObf.ClientMain.MainGameLoop (System.Single deltaTime) [0x0004e] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.GuiScreenRunningGame.RenderToPrimary (System.Single dt) [0x0004d] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.ScreenManager.Render (System.Single dt) [0x00079] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.ScreenManager.OnNewFrame (System.Single dt) [0x000cc] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame (System.Object sender, OpenTK.FrameEventArgs e) [0x00141] in <f8e7e0ea709348ba8693d95fd255ff41>:0 
  at (wrapper delegate-invoke) System.EventHandler`1[OpenTK.FrameEventArgs].invoke_void_object_TEventArgs(object,OpenTK.FrameEventArgs)
  at OpenTK.GameWindow.OnRenderFrame (OpenTK.FrameEventArgs e) [0x00000] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.OnRenderFrameInternal (OpenTK.FrameEventArgs e) [0x00010] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.RaiseRenderFrame (System.Double elapsed, System.Double& timestamp) [0x0000c] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.DispatchRenderFrame () [0x00038] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.Run (System.Double updates_per_second, System.Double frames_per_second) [0x00104] in <a4886e33f9fc416195d24950e7205b94>:0 
  at OpenTK.GameWindow.Run () [0x00000] in <a4886e33f9fc416195d24950e7205b94>:0 
  at Vintagestory.Client.ClientProgram.Start (Vintagestory.Client.ClientProgramArgs args, System.String[] rawArgs) [0x003f2] in <fd9d0c679a80472ab783dcb948963ece>:0 
  at Vintagestory.Client.ClientProgram+<>c__DisplayClass14_0.<.ctor>b__0 () [0x00000] in <fd9d0c679a80472ab783dcb948963ece>:0 
  at Vintagestory.ClientNative.CrashReporter.Start (System.Threading.ThreadStart start) [0x00007] in <f8e7e0ea709348ba8693d95fd255ff41>:0 

Client-Debug

 [...]
10.12.2022 17:00:20.593 [VerboseDebug] Entities and pool locations removed. Removing from chunk dict
10.12.2022 17:00:22.095 [VerboseDebug] Received player data for playeruid UFyp8Py6cMFJ0odTqIICKSeW
10.12.2022 17:00:22.096 [VerboseDebug] Received inventory contents hotbar-UFyp8Py6cMFJ0odTqIICKSeW
10.12.2022 17:00:22.096 [VerboseDebug] Received inventory contents backpack-UFyp8Py6cMFJ0odTqIICKSeW
10.12.2022 17:00:22.096 [VerboseDebug] Received inventory contents character-UFyp8Py6cMFJ0odTqIICKSeW
10.12.2022 17:00:22.096 [VerboseDebug] Done handling playerdata packet
10.12.2022 17:00:41.819 [VerboseDebug] Entities and pool locations removed. Removing from chunk dict

Client-Main

Quite a log of OpenAL Errors being logged throughout the session, this is happening frequently and likely unrelated.


[...]
10.12.2022 17:00:40 [Warning] OpenAL Error during construction before of sound game:sounds/block/plant.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during construction of sound game:sounds/block/plant.ogg: OutOfMemory
10.12.2022 17:00:40 [Warning] OpenAL Error during construction before of sound game:sounds/block/plant.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during construction of sound game:sounds/block/plant.ogg: OutOfMemory
10.12.2022 17:00:40 [Warning] OpenAL Error during SetPitch of sound game:sounds/block/quern.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during construction before of sound game:sounds/block/dirt3.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during construction of sound game:sounds/block/dirt3.ogg: OutOfMemory
10.12.2022 17:00:40 [Warning] OpenAL Error during SetPitch of sound game:sounds/block/quern.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during disposestop of sound game:sounds/block/plant.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during dispose of sound game:sounds/block/plant.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during disposestop of sound game:sounds/block/plant.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during dispose of sound game:sounds/block/plant.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during disposestop of sound game:sounds/block/dirt3.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during dispose of sound game:sounds/block/dirt3.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during SetPitch of sound game:sounds/block/quern.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during construction before of sound game:sounds/creature/drifter-idle3.ogg: InvalidName
10.12.2022 17:00:40 [Warning] OpenAL Error during construction of sound game:sounds/creature/drifter-idle3.ogg: OutOfMemory
10.12.2022 17:00:41 [Warning] OpenAL Error during SetPitch of sound game:sounds/block/quern.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during SetPitch of sound game:sounds/block/quern.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during disposestop of sound game:sounds/creature/drifter-idle3.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during dispose of sound game:sounds/creature/drifter-idle3.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during SetPitch of sound game:sounds/block/quern.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during construction before of sound game:sounds/environment/mediumsplash.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during construction of sound game:sounds/environment/mediumsplash.ogg: OutOfMemory
10.12.2022 17:00:41 [Warning] OpenAL Error during SetPitch of sound game:sounds/block/quern.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during construction before of sound game:sounds/effect/translocate-breakdimension.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during construction of sound game:sounds/effect/translocate-breakdimension.ogg: OutOfMemory
10.12.2022 17:00:41 [Warning] OpenAL Error during construction before of sound game:sounds/effect/translocate-active.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during construction of sound game:sounds/effect/translocate-active.ogg: OutOfMemory
10.12.2022 17:00:41 [Warning] OpenAL Error during disposestop of sound game:sounds/effect/translocate-active.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during dispose of sound game:sounds/effect/translocate-active.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during disposestop of sound game:sounds/effect/translocate-active.ogg: InvalidName
10.12.2022 17:00:41 [Warning] OpenAL Error during dispose of sound game:sounds/effect/translocate-active.ogg: InvalidName
10.12.2022 17:00:41 [Fatal] Game Version: v1.17.9 (Stable)
12/10/2022 5:00:41 PM: Critical error occurred
[... see crash-log above]

Nothing interesting in Client-Chat and Client-Audit. 
Craluminum2413 commented 1 year ago

Closing due to inactivity