When trying to connect to certain (older?) servers, your game can crash.
Of course it shouldn't connect, but the game crashing is probably not intended.
It crashes consistently with server play.wynncraft.com.
Steps to Reproduce:
Connect to server play.wynncraft.com on the current (24w21b) snapshot
The game crashes while connecting with the error below
No additional datapacks or files are needed. Please see attached video and error screenshot.
Registry loading errors:
> Errors in registry minecraft:root:
>> Errors in element minecraft:painting_variant:
java.lang.IllegalStateException: Registry must be non-empty
at akl.b(SourceFile:175)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at akl.a(SourceFile:166)
at akl.a(SourceFile:155)
at fzm$a.a(SourceFile:49)
at fzm.a(SourceFile:59)
at fyx.a(SourceFile:117)
at fyx.a(SourceFile:109)
at fyx.a(SourceFile:117)
at abc.a(SourceFile:22)
at abc.a(SourceFile:8)
at zi.a(SourceFile:27)
at bpg.d(SourceFile:162)
at bpk.d(SourceFile:23)
at bpg.B(SourceFile:136)
at bpg.bB(SourceFile:121)
at fgi.c(SourceFile:1240)
at fgi.f(SourceFile:882)
at net.minecraft.client.main.Main.main(SourceFile:256)
Failed to handle packet abc@4cc41031
java.lang.IllegalStateException: Failed to load registries due to above errors
at akl.a(SourceFile:181)
at akl.a(SourceFile:155)
at fzm$a.a(SourceFile:49)
at fzm.a(SourceFile:59)
at fyx.a(SourceFile:117)
at fyx.a(SourceFile:109)
at fyx.a(SourceFile:117)
at abc.a(SourceFile:22)
at abc.a(SourceFile:8)
at zi.a(SourceFile:27)
at bpg.d(SourceFile:162)
at bpk.d(SourceFile:23)
at bpg.B(SourceFile:136)
at bpg.bB(SourceFile:121)
at fgi.c(SourceFile:1240)
at fgi.f(SourceFile:882)
at net.minecraft.client.main.Main.main(SourceFile:256)
Linked issues
is duplicated by 1
Attachments
Comments 3
although I am unsure if this is something mojang wants to fix, this is a threading issue. If mojang was to fix this what I would recommend is making JVM threads take higher priority. This way it does not break optimizations to connect to some older versions, yet blocks connections when it is needed.
Please update the description to include steps to reproduce this issue, as well as expected VS observed results.
Please also attach any needed datapacks, resourcepacks, screenshots, videos or worlds needed to help reproduce this issue.