Uncaught exception in thread "DH-PriorityTaskPicker Thread

I know this has been solved before https://discord.com/channels/881614130614767666/1363746969394352209/1363748881028091956 But neither posts explain the steps to solving it. changing the config where? the server config? client?
5 Replies
Jckf
Jckf2w ago
Please post your log file, or at least the full error message/trace
timbis
timbisOP2w ago
[11:48:20 ERROR]: Uncaught exception in thread "DH-PriorityTaskPicker Thread[8977]" java.lang.RuntimeException: Unexpected Query error: [[SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)], for prepared statement: [SELECT * FROM FullData WHERE DetailLevel = ? AND PosX = ? AND PosZ = ? parameters=[7, 0, -1]]. at knot/com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.query(AbstractDhRepo.java:429) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.getByKey(AbstractDhRepo.java:177) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/com.seibel.distanthorizons.core.file.AbstractDataSourceHandler.get(AbstractDataSourceHandler.java:141) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/com.seibel.distanthorizons.core.file.fullDatafile.FullDataSourceProviderV2.lambda$runParentUpdates$1(FullDataSourceProviderV2.java:303) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/com.seibel.distanthorizons.core.util.threading.PriorityTaskPicker$TrackedRunnable.run(PriorityTaskPicker.java:203) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1583) [?:?] Caused by: dh_sqlite.SQLiteException: [SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed) at knot/dh_sqlite.core.DB.newSQLException(DB.java:1179) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/dh_sqlite.core.DB.newSQLException(DB.java:1190) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/dh_sqlite.core.DB.execute(DB.java:988) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/dh_sqlite.jdbc3.JDBC3PreparedStatement.lambda$execute$0(JDBC3PreparedStatement.java:59) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/dh_sqlite.jdbc3.JDBC3Statement.withConnectionTimeout(JDBC3Statement.java:458) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/dh_sqlite.jdbc3.JDBC3PreparedStatement.execute(JDBC3PreparedStatement.java:53) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] at knot/com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.query(AbstractDhRepo.java:405) ~[DistantHorizons-2.3.3-b-1.21.7-fabric-neoforge.jar:?] ... 7 more and it just keeps repeating with the thread increasing
Jckf
Jckf2w ago
If your DH database file has been corrupted somehow, the simplest option is to simply delete the file !lodstored
YAGPDB.xyz
YAGPDB.xyz2w ago
Single Player: - Overworld: .minecraft/saves/WORLD_NAME/data/DistantHorizons.sqlite - Nether: .minecraft/saves/WORLD_NAME/DIM-1/data/DistantHorizons.sqlite - End: .minecraft/saves/WORLD_NAME/DIM1/data/DistantHorizons.sqlite - Custom Dimensions: .minecraft/saves/WORLD_NAME/DIMENSION_FOLDER/data/DistantHorizons.sqlite Multiplayer: - .minecraft/Distant_Horizons_server_data/SERVER_NAME/ Server Mod - Overworld: SERVER_FOLDER/world/data/DistantHorizons.sqlite - Nether: SERVER_FOLDER/world/DIM-1/data/DistantHorizons.sqlite - End: SERVER_FOLDER/world/DIM1/data/DistantHorizons.sqlite - Custom Dimensions: SERVER_FOLDER/world/DIMENSION_FOLDER/data/DistantHorizons.sqlite Server Plugin All dimensions in one file: SERVER_FOLDER/plugins/DHSupport/data.sqlite NOTE: Sometimes there might be 2 additional files next to the main one with extensions .sqlite-wal and .sqlite-shm If there are, all 3 should be treated as a single file, a.k.a. moved, deleted, backed-up always together! If you don't, the database will become corrupted.
timbis
timbisOP2w ago
Yep it's fixed, thank you 👍🙏

Did you find this page helpful?