anegostudios / VintageStory-Issues

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

Exception when pruning world #3734

Open tenmillimaster opened 7 months ago

tenmillimaster commented 7 months ago

Game Version

1.19.4

Platform

Windows

Modded

Modded

SP/MP

Singleplayer

Description

I ran /db prune 24 confirm on a single player copy of a multiplayer world to try and generate new chunks with Better Ruins ruins. I did this while using the client - playing the game. I was initially successful (at least in that I didn't crash or generate exception, not in that I found giant surface ruins). I deleted this world, pasted the copy in my saves folder, and again with/db prune 16 confirm and generated an exception, then tried again. This time I pasted over the save again and ran the Vintagestoryserver, no client, executing the command there. Now I am reliably generating the exceptions.

How to reproduce

Run some variation of /db prune [16-32] confirm

Screenshots

image

Logs

19.3.2024 01:52:55 [Event] Server v1.19.4, network v1.19.7, api v1.19.0
19.3.2024 01:52:55 [Event] Loading configuration...
19.3.2024 01:52:55 [Event] Building assets...
19.3.2024 01:52:57 [Event] started 'CarryOn' mod
19.3.2024 01:52:58 [Event] started 'Translocator Engineering' mod
19.3.2024 01:52:58 [Error] Rivers: failed to patch clayforming recipe wedgesmold.json.
19.3.2024 01:53:17 [Event] Remapping blocks and items...
19.3.2024 01:53:19 [Event] 12 cooking recipes loaded
19.3.2024 01:53:20 [Event] 1524 crafting recipes loaded from 386 files
19.3.2024 01:53:20 [Event] 9 metal alloys loaded
19.3.2024 01:53:20 [Event] 332 smithing recipes loaded
19.3.2024 01:53:20 [Event] 155 clay forming recipes loaded
19.3.2024 01:53:20 [Event] 60 knapping recipes loaded
19.3.2024 01:53:21 [Event] 327 barrel recipes loaded
19.3.2024 01:53:21 [Event] 3 mixing recipes loaded
19.3.2024 01:53:22 [Event] 1301 kneading recipes loaded
19.3.2024 01:53:22 [Event] 653 simmering recipes loaded
19.3.2024 01:53:22 [Event] Server assets loaded, parsed, registered and finalized
19.3.2024 01:53:22 [Event] Initialising systems...
19.3.2024 01:53:24 [Event] Starting world generators...
19.3.2024 01:53:39 [Event] Loading 7x7x8 spawn chunks...
19.3.2024 01:53:39 [Event] 0% (49 in queue)
19.3.2024 01:53:40 [Event] Begin game ticking...
19.3.2024 01:53:40 [Event] Dedicated Server now running on Port 42424 and all ips!
19.3.2024 01:54:29 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:30 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:31 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:31 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:31 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:54:31 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:54:31 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:31 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:54:31 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:55:13 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading an entity (type entitywillowisp) in a chunk. Will discard, sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:14 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:15 [Error] Failed loading blockentity betreehollowgrown for block  in a chunk. Will discard it. Sorry. Exception logged to verbose debug.
19.3.2024 01:55:16 [Fatal] Caught unhandled exception in thread 'chunkdbthread'. Shutting down server.
19.3.2024 01:55:16 [Error] Exception: Object reference not set to an instance of an object.
   at Microsoft.Data.Sqlite.SqliteConnection.RemoveCommand(SqliteCommand command)
   at Microsoft.Data.Sqlite.SqliteCommand.Dispose(Boolean disposing)
   at System.ComponentModel.Component.Dispose()
   at Microsoft.Data.Sqlite.SqliteConnectionExtensions.ExecuteNonQuery(SqliteConnection connection, String commandText, SqliteParameter[] parameters)
   at Microsoft.Data.Sqlite.SqliteTransaction.RollbackInternal()
   at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable`1 chunkpositions, String tablename) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 249
   at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable`1 chunkpositions) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 227
   at Vintagestory.Server.ServerSystemSupplyChunks.deleteChunkColumns() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 439
   at Vintagestory.Server.ServerSystemSupplyChunks.OnSeparateThreadTick() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 434
   at Vintagestory.Server.ServerThread.Update() in VintagestoryLib\Server\ServerThread.cs:line 111
   at Vintagestory.Server.ServerThread.Process() in VintagestoryLib\Server\ServerThread.cs:line 92
19.3.2024 01:55:16 [Error] Exception: SqliteConnection does not support nested transactions.
   at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel, Boolean deferred)
   at Vintagestory.Common.Database.SQLiteDbConnectionv2.SetMapRegions(IEnumerable`1 mapregions) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 301
   at Vintagestory.Common.GameDatabase.SetMapRegions(IEnumerable`1 mapregions) in VintagestoryLib\Common\FileIO\Database\GameDatabase.cs:line 219
   at Vintagestory.Server.ServerSystemSupplyChunkCommands.<>c__DisplayClass7_0.<prune>b__1() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunkCommands.cs:line 205
   at Vintagestory.Server.ServerMain.ProcessMainThreadTasks() in VintagestoryLib\Server\ServerMain.cs:line 2782
   at Vintagestory.Server.ServerMain.ProcessMain() in VintagestoryLib\Server\ServerMain.cs:line 893
   at Vintagestory.Server.ServerMain.Process() in VintagestoryLib\Server\ServerMain.cs:line 886
19.3.2024 01:55:16 [Event] Mods and systems notified, now saving everything...
19.3.2024 01:55:16 [Event] Saved player world data...
19.3.2024 01:55:16 [Error] Exception thrown during handling event OnGameWorldBeingSaved:
19.3.2024 01:55:16 [Error] Exception: SqliteConnection does not support nested transactions.
   at Microsoft.Data.Sqlite.SqliteConnection.BeginTransaction(IsolationLevel isolationLevel, Boolean deferred)
   at Vintagestory.Common.Database.SQLiteDbConnectionv2.SetMapRegions(IEnumerable`1 mapregions) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 301
   at Vintagestory.Common.GameDatabase.SetMapRegions(IEnumerable`1 mapregions) in VintagestoryLib\Common\FileIO\Database\GameDatabase.cs:line 219
   at Vintagestory.Server.ServerSystemLoadAndSaveGame.SaveAllDirtyMapRegions() in VintagestoryLib\Server\Systems\World\LoadThread\LoadSaveGame.cs:line 444
   at Vintagestory.Server.ServerSystemLoadAndSaveGame.SaveGameWorld(Boolean saveLater) in VintagestoryLib\Server\Systems\World\LoadThread\LoadSaveGame.cs:line 373
   at Vintagestory.Server.ServerSystemLoadAndSaveGame.OnWorldBeingSaved() in VintagestoryLib\Server\Systems\World\LoadThread\LoadSaveGame.cs:line 263
   at Vintagestory.Server.ServerEventManager.TriggerGameWorldBeingSaved() in VintagestoryLib\Server\ServerEventManager.cs:line 525
19.3.2024 01:55:16 [Event] Shutting down 6 server threads... 
19.3.2024 01:55:16 [Event] Killed console thread
19.3.2024 01:55:17 [Event] All threads gracefully shut down
19.3.2024 01:55:17 [Event] Doing last tick...
19.3.2024 01:55:17 [Event] Stopped the server!
tenmillimaster commented 7 months ago

https://drive.google.com/file/d/1JJzu8J5XfAB6hxpAvvA0rksTBA6y0uYG/view?usp=drive_link

A copy of the save file was requested, here it is.

tenmillimaster commented 7 months ago

oh, and the modlist. The world was initially generated with primitive survival but that was removed several days ago with no apparent issue.

ABCSReborn-v.0.2.0
ACulinaryArtillery 1.1.3
AncientTools_V1.5.12
animationmanagerlib_0.7.2
Auto Map Markers (1.19)
AutoPanning-v1.0.1
BetterFirepit-1.1.4
BetterRuinsv0.3.4
BetterTradersv0.0.5
Bullseye_2.5.8
CarryOn-1.19_v1.7.4
chiseltools1.10.4
configlib_1.0.2
ExpandedFoods 1.6.8
FeverstoneHorses-v1.6.0-1.19.0
fsmlib_0.2.15
hidenotrot_1.19.4_v0.0.2
hudclock-3.4.0
Knapster_v2.9.1
petai_v2.2.3
ProspectTogether-1.3.0
rivers_2.5.0
translocatorengineeringredux_1.4.9
vsimgui_1.1.1
xinvtweaks_v1.5.7
radfast commented 7 months ago

Thanks for the report, it looks like the /db prune command often stumbles right now

DejFidOFF commented 6 months ago

have similar issue:

4.5.2024 08:34:56 [Fatal] Caught unhandled exception in thread 'chunkdbthread'. Shutting down server. 4.5.2024 08:34:56 [Error] Exception: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.RemoveAt(Int32 index) at Microsoft.Data.Sqlite.SqliteConnection.RemoveCommand(SqliteCommand command) at Microsoft.Data.Sqlite.SqliteCommand.Dispose(Boolean disposing) at System.ComponentModel.Component.Dispose() at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunk(UInt64 position, String tablename) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 259 at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable1 chunkpositions, String tablename) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 247 at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable`1 chunkpositions) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 227 at Vintagestory.Server.ServerSystemSupplyChunks.deleteChunkColumns() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 443 at Vintagestory.Server.ServerSystemSupplyChunks.OnSeparateThreadTick() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 438 at Vintagestory.Server.ServerThread.Update() in VintagestoryLib\Server\ServerThread.cs:line 111 at Vintagestory.Server.ServerThread.Process() in VintagestoryLib\Server\ServerThread.cs:line 92

FlexibleGames commented 4 months ago

Got the same thing on my dedicated server: 1.19.5 /db prune 6 keep confirm 27.6.2024 10:21:03 [Server Notification] Handling Console Command /db prune 6 keep confirm 27.6.2024 10:21:03 [Server Notification] Prune started, this may take some time. 27.6.2024 10:22:11 [Server Fatal] Caught unhandled exception in thread 'chunkdbthread'. Shutting down server. 27.6.2024 10:22:11 [Server Error] Exception: Object reference not set to an instance of an object. at Microsoft.Data.Sqlite.SqliteConnection.RemoveCommand(SqliteCommand command) at Microsoft.Data.Sqlite.SqliteCommand.Dispose(Boolean disposing) at System.ComponentModel.Component.Dispose() at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunk(UInt64 position, String tablename) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 259 at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable`1 chunkpositions, String tablename) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 251 at Vintagestory.Server.ServerSystemSupplyChunks.deleteChunkColumns() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 443 at Vintagestory.Server.ServerSystemSupplyChunks.OnSeparateThreadTick() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 438 at Vintagestory.Server.ServerThread.Update() in VintagestoryLib\Server\ServerThread.cs:line 111 at Vintagestory.Server.ServerThread.Process() in VintagestoryLib\Server\ServerThread.cs:line 92

bluelightning32 commented 4 months ago

I got a similar crash on my server. Version 1.19.8.

> /db prune 0 keep confirm                                                                                                  
27.6.2024 11:46:32 [Server Notification] Handling Console Command /db prune 0 keep confirm                                  
27.6.2024 11:46:32 [Server Notification] Prune started, this may take some time.                                            
> 27.6.2024 11:46:46 [Server Fatal] Caught unhandled exception in thread 'chunkdbthread'. Shutting down server.
27.6.2024 11:46:46 [Server Error] Exception: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')                                                                                                 
   at System.Collections.Generic.List`1.RemoveAt(Int32 index)                                                               
   at Microsoft.Data.Sqlite.SqliteConnection.RemoveCommand(SqliteCommand command)
   at Microsoft.Data.Sqlite.SqliteCommand.Dispose(Boolean disposing)                                                        
   at System.ComponentModel.Component.Dispose()                                                                             
   at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunk(UInt64 position, String tablename) in VintagestoryLib\Co
mmon\FileIO\Database\SQLiteDbConnectionv2.cs:line 259                                                                       
   at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable`1 chunkpositions, String tablename) in Vint
agestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 251                                                         
   at Vintagestory.Server.ServerSystemSupplyChunks.deleteChunkColumns() in VintagestoryLib\Server\Systems\World\LoadThread\S
upplyChunks.cs:line 443
  at Vintagestory.Server.ServerSystemSupplyChunks.OnSeparateThreadTick() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 438                                                                                                     
  at Vintagestory.Server.ServerThread.Update() in VintagestoryLib\Server\ServerThread.cs:line 111
  at Vintagestory.Server.ServerThread.Process() in VintagestoryLib\Server\ServerThread.cs:line 92
> 27.6.2024 11:46:50 [Server Notification] Prune complete, 35094 chunk columns were removed, 1451 chunk columns were kept.
27.6.2024 11:46:50 [Server Notification] Server stop requested, begin shutdown sequence. Stop reason: Exception during Process
LSommers commented 2 months ago

Attempted an 8 prune on my (heavily modded) server, got the same issue. Running VS 1.19.8 as well. Issue happens every time an attempt is made.

30.8.2024 22:52:17 [Server Notification] Handling Console Command /db prune 8 drop confirm 30.8.2024 22:52:17 [Server Notification] Prune started, this may take some time. 30.8.2024 22:52:54 [Server Fatal] Caught unhandled exception in thread 'chunkdbthread'. Shutting down server. 30.8.2024 22:52:54 [Server Error] Exception: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index') at System.Collections.Generic.List1.RemoveAt(Int32 index) at Microsoft.Data.Sqlite.SqliteConnection.RemoveCommand(SqliteCommand command) at Microsoft.Data.Sqlite.SqliteCommand.Dispose(Boolean disposing) at System.ComponentModel.Component.Dispose() at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunk(UInt64 position, String tablename) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 259 at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable1 chunkpositions, String tablename) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 251 at Vintagestory.Common.Database.SQLiteDbConnectionv2.DeleteChunks(IEnumerable`1 chunkpositions) in VintagestoryLib\Common\FileIO\Database\SQLiteDbConnectionv2.cs:line 227 at Vintagestory.Server.ServerSystemSupplyChunks.deleteChunkColumns() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 443 at Vintagestory.Server.ServerSystemSupplyChunks.OnSeparateThreadTick() in VintagestoryLib\Server\Systems\World\LoadThread\SupplyChunks.cs:line 438 at Vintagestory.Server.ServerThread.Update() in VintagestoryLib\Server\ServerThread.cs:line 111 at Vintagestory.Server.ServerThread.Process() in VintagestoryLib\Server\ServerThread.cs:line 92