LOD's and Shaders have about a 50/50 chance to completely break upon rejoining a server
MULTIPLAYER with mod on Client AND Server Minecraft version 1.21.10
The mod is working almost flawlessly on Fabric 1.21.10, however it will only temporarily work upon a fresh boot of the game. Rejoining the server will frequently cause the shaders to bug out and LOD's dissapear. I think I remember the issue happening spontaneously as well without rejoining, but rejoining consistently makes it happen. This persists until the game is restarted. No server restart is necessary. It also happens with more than one shader. I have tried Bliss, BLS classic, and Complementary reimagined. Disabling shaders still doesn't fix the LOD's, and the LOD's can break without having shaders enabled.
This is happening on more than one computer, as my wife has the same mods on her laptop. I am using a desktop. We both have Nvidia GPU's and Intel CPU's
The attached images show the before and after along with the error that appears in chat. It also shows the Client mod list and the server mod list, respectively.





52 Replies
Note: The error only appears in the logs if it breaks with shaders enabled. If shaders are not enabled, the LOD's silently break.
whats the error if shaders are not enabled? does it still break if iris is not installed? can you send the whole log file?
!logs
You should send your
latest.log
file to provide additional useful information.
Logs are usually located in the .minecraft/logs
directory.
On Windows: %appdata%\.minecraft\logs
On Linux: ~/.minecraft/logs
On Mac: ~/Library/Application Support/minecraft/logs
Please upload the file to mclo.gs instead of sending the raw file. This makes reading the contents of the file a lot easier and improves the chances of you getting the help needed.
After uploading the file, click on Save
and send the link.Yes, let me try without iris.
Just broke without Iris enabled
Just tried with the only these mods enabled:

Same behavior
Logs with minimum mods + Iris:
https://mclo.gs/tPxqXac
Just tried with minimum mods on server and client, same issue
Could it be some kind of SQLite DB corruption? The world was pregenerated on my main PC with chunky in-game and then moved to a different machine to run the server. Would that cause issues?
you can try moving the database so DH cant find it, and seeing if that fixes it
Wouyld I need to do that on the client or server?
you can try both
for if you didnt know:
!lodstored
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.This appears to be a very inconsistent issue on my end. I was able to reproduce it once but can't any more.
That being said it appears to be a crash on Iris' end, it's just that DH is catching the error and logging it.
If you enable/disable shader and/or rejoin the server it appears to fix itself.
Weird that the LOD's break even when Iris isnt enabled
@James Seibel GMT-5
And those fixes dont work for me
Do you have a log when that happens?
I haven't seen that issue before.
Only restarting the game
Yeah let me redproduce one right now
With no mods enabled other than whats neccessary
@James Seibel GMT-5 Here. No mods other than Sodium, DH, and Fabric API. Worked initially on connection, broke after reconnecting once:
https://mclo.gs/ZlWFEqB
Ive tried disabling all server mods except DH as well. No dice. Not much on the server tho, just some performance mods and apple skin and DH.
Weird. I don't see any errors in the log.
Does the issue occur on older DH version and/or a vanilla MC server?
Never tried. Let me try setting up a local server real quick on 1.21.8
Is it possible to pregen with DH on the server console? Or does it have to be in game
There's a command, but I don't know what it is off hand.
/dh pregen
I think?I used chunky before
Otherwise you could just copy over the world/DH database. Nothing major changed in MC's world format.
My problem world will work on 1.21.8?
No nether yet so no dried ghasts
At least for testing it should
Okay I reproduced the issue on my main computer on local host. Singleplayer worlds continue to function even when the server breaks I also just tested. Going to downgrade both my local server and client to 1.21.8, then if it still doesnt work I will try a vanilla server on 1.21.10, then if that doesnt work, a vanilla server on 1.21.8
Bad bot
So when using the same world, and migrating my sqlite between clients, on official 1.21.8 from Modrinth, I still get this upon joining:

I mean I wasnt getting that on 1.21.10
But I didnt migrate my client DB before
It says its going to be 70h so no rush
So the behavior is weird on 1.21.8. But at least its consistent. That message stays on screen and LODs stay loaded as I fly around. But rejoining wipes them until I fly around again.
Im guessing those are cached LODs while it loads the DB, but IDK why it needs to load the DB if I migrated it.
Getting this on 1.21.8
From the server
Let me try one thing
Yeah getting this error on 1.21.8 [20:00:49] [DH-PriorityTaskPicker Thread[1]/WARN]: Unable to deserialize blocks for chunk section [74, -2, -61], error: [(Unknown registry key in ResourceKey[minecraft:root / minecraft:block]: minecraft:iron_chain -> using default)]. This can probably be ignored, although if your world looks wrong, optimizing it via the single player menu then deleting your DH database(s) should fix the problem.
I cant get the downgrade migration to work
Ah shoot forgot about the compressor change.
You'll have to delete your old DH database.
DH added a new default compressor that isn't available in the old versions
That can be ignored.
Okay. Ill delete the old DB
Have you updated the latest jar with the fade fix yet?
@James Seibel GMT-5 Will I have to delete the DB on the server, too?
I deleted it anyway
yes
yes
@James Seibel GMT-5 Yeah so I can rejoin the server all I want on 1.21.8
The fact it loads perfectly the first time on 1.21.10 leads me to believe its not a corruption of the DB issue
Oh youre a Christian? That's cool. Dont see that a ton in this community. My name is Christian. Sorry off topic but Its nice to see that
Does it consistently happen on the second load?
lol nice
About 90% of the time
I think I did fix it once by joining a third time but couldnt reproduce it
Latest Nightly didnt fix it
I didnt have high hopes
Hmm. Well I'm afraid I don't have any suggestions since I'm unable to reproduce the issue on my end.
Sorry about that.
Well, I set the sleep gamerule so only one person needs to sleep so no one needs to rejoin. That will work for now. Do you think its worth deleting my DB?
I doubt it would fix anything, although you could rename them to test. That way if the issue persists you still have your old data.
Thank you for taking time out of oyur day to attempt to help me. God bless you.
I will continue trouble shooting because I cant leave anything alone
lol, best of luck.
If you can find a way to consistently reproduce it feel free to let me know.
@James Seibel GMT-5 Did you try reproducing with Terralith and Tectonic on client and server?
No just vanilla world gen
Although I wouldn't expect that to change anything unless there's some error on the server
Yeah server showed no errors
Spamming reconnect does seem to fix it about 1/10 times.
@пшш @James Seibel GMT-5 This issue has also been resolved by the latest nightly. Thank you so much for investigating! I wonder why the new Minecraft version caused it?
I believe I'm having the same issue.
LODs bug out 90% of the time on connecting to server.
And pretty much 100% of the time when minimizing Minecraft itself.
Client logs: https://mclo.gs/mHBMA0b
Managed to capture it working that 1/10 times on connect.
@James Seibel GMT-5
Update to latest stable or nightly build
This is the latest nightly fabric build. @James Seibel GMT-5
On both server and client, fresh world/db
This is an unrelated issue.
The previous issue was only when joining the world and DH wouldn’t load at all.
This appears to be an issue with how Iris or the shader handles minimizing/screen resizing.
This doesn’t appear to be a DH issue.
I'll see if I can isolate what's causing it, can confirm however it happens regardless of what shader is used.
@James Seibel GMT-5 Just wanted to let you know I found the culprit
Modrinth
RenderScale - Minecraft Mod
Allows you to change Minecraft's render resolution separately from the HUD elements.