Handle corrupted database files
Check off each item in this list before submitting:
-
Check the FAQ to see if your issue has already been reported and has a solution: Problems-and-solutions -
Make sure you are not using any mods on the incompatible list: Mod support FAQ -
Check the existing issues to verify that your bug hasn't already been submitted: Issues -
Upload Minecraft's crash report and/or log.
Minecraft crash reports are located in:.minecraft/crash-reports
Minecraft logs are located in:.minecraft/logs
File is too big
-
Upload your Distant Horizons Config.
The config is found in:.minecraft/configs/DistantHorizons.toml
-
Fill out the information below:
-
minecraft version: 1.21.1
-
Distant Horizons version: 2.2.1-a-1.21.1
-
Mod loader: fabric
-
Installed mods (list the smallest number of mods that you can use to re-create the bug):
-
Distant Horizons alone
-
Describe the bug: ridiculously huge latest.log file, doesnt stop getting bigger, i ran out of storage when it reached about 20GB
it repeats this message:
[21:39:58] [DH-File Handler Thread[0]/WARN]: Unable to get render source 7*0,3, error: Unexpected Query error: [[SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)], for script: [SELECT * FROM FullData WHERE DetailLevel = '1' AND PosX = '0' AND PosZ = '3']. java.lang.RuntimeException: Unexpected Query error: [[SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)], for script: [SELECT * FROM FullData WHERE DetailLevel = '1' AND PosX = '0' AND PosZ = '3']. at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.query(AbstractDhRepo.java:359) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.queryDictionaryFirst(AbstractDhRepo.java:291) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.getByKey(AbstractDhRepo.java:178) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at com.seibel.distanthorizons.core.file.AbstractDataSourceHandler.get(AbstractDataSourceHandler.java:143) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at com.seibel.distanthorizons.core.render.LodRenderSection.lambda$getRenderSourceAsync4(LodRenderSection.java:340) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at java.base/java.util.concurrent.CompletableFutureAsyncSupply.run(Unknown Source) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutorWorker.run(Unknown Source) ~[?:?] at java.base/java.lang.Thread.run(Unknown Source) [?:?] Caused by: org.sqlite.SQLiteException: [SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed) at org.sqlite.core.DB.newSQLException(DB.java:1179) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at org.sqlite.core.DB.newSQLException(DB.java:1190) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at org.sqlite.core.DB.execute(DB.java:988) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at org.sqlite.core.CoreStatement.exec(CoreStatement.java:79) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at org.sqlite.jdbc3.JDBC3Statement.lambdaexecute$0(JDBC3Statement.java:52) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at org.sqlite.jdbc3.JDBC3Statement.withConnectionTimeout(JDBC3Statement.java:455) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at org.sqlite.jdbc3.JDBC3Statement.execute(JDBC3Statement.java:40) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.query(AbstractDhRepo.java:340) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] ... 8 more
this also spams an error message in the logs of my os, my syslog is over 20GB big and the error message is very similar here scatha is the hostname of my computer
Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at java.base/java.util.concurrent.CompletableFutureAsyncSupply.run(Unknown Source) ~[?:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at java.base/java.util.concurrent.ThreadPoolExecutorWorker.run(Unknown Source) ~[?:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at java.base/java.lang.Thread.run(Unknown Source) [?:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: Caused by: org.sqlite.SQLiteException: [SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed) Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at org.sqlite.core.DB.newSQLException(DB.java:1179) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at org.sqlite.core.DB.newSQLException(DB.java:1190) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at org.sqlite.core.DB.execute(DB.java:988) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at org.sqlite.core.CoreStatement.exec(CoreStatement.java:79) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at org.sqlite.jdbc3.JDBC3Statement.lambda$execute0(JDBC3Statement.java:52) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at org.sqlite.jdbc3.JDBC3Statement.withConnectionTimeout(JDBC3Statement.java:455) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at org.sqlite.jdbc3.JDBC3Statement.execute(JDBC3Statement.java:40) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.query(AbstractDhRepo.java:340) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #11 (closed)... 8 more Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: [21:24:58] [DH-File Handler Thread[3]/ERROR]: Unexpected Query error: [[SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)], for script: [SELECT * FROM FullData WHERE DetailLevel = '2' AND PosX = '-7' AND PosZ = '5']. Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: [21:24:58] [DH-File Handler Thread[0]/WARN]: Unable to get render source 8*-8,4, error: Unexpected Query error: [[SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)], for script: [SELECT * FROM FullData WHERE DetailLevel = '2' AND PosX = '-8' AND PosZ = '4']. Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: java.lang.RuntimeException: Unexpected Query error: [[SQLITE_CORRUPT] The database disk image is malformed (database disk image is malformed)], for script: [SELECT * FROM FullData WHERE DetailLevel = '2' AND PosX = '-8' AND PosZ = '4']. Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.query(AbstractDhRepo.java:359) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.queryDictionaryFirst(AbstractDhRepo.java:291) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at com.seibel.distanthorizons.core.sql.repo.AbstractDhRepo.getByKey(AbstractDhRepo.java:178) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at com.seibel.distanthorizons.core.file.AbstractDataSourceHandler.get(AbstractDataSourceHandler.java:143) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?] Oct 15 21:24:58 scatha modrinth_app.desktop[75360]: #011at com.seibel.distanthorizons.core.render.LodRenderSection.lambdagetRenderSourceAsync$4(LodRenderSection.java:340) ~[DistantHorizons-2.2.1-a-1.21.1-neo-fabric.jar:?]
i dont know if my syslog is usefull i don't really know what is happening
- Steps to reproduce the bug: i have no idea it just happens when i play the game for long enough, it seems to be more frequent in the nether but i might be misleaded in case this bug only happens with my OS, i run ubuntu 22.04.1