mircokroon / minecraft-world-downloader

Download Minecraft worlds, extend server's render distance. 1.12.2 - 1.21
GNU General Public License v3.0
1.25k stars 83 forks source link

clientbound/minecvraft:level_chunk_with_light #674

Closed grndlauncher closed 4 months ago

grndlauncher commented 5 months ago

When joining a server u are on the server for like 2-3 seconds and then u get that error, world downloader quickly downloads the chunks I think as it starts turning all the nearby chunks in the distance in red.

Log text:

 Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot invoke "game.data.coordinates.CoordinateDouble3D.getX()" because the return value of "game.data.entity.PlayerEntity.getPosition()" is null
    at gui.GuiMap.drawOtherPlayer(GuiMap.java:361)
    at gui.GuiMap.drawEntities(GuiMap.java:349)
    at gui.GuiMap$1.handle(GuiMap.java:112)
    at javafx.animation.AnimationTimer$AnimationTimerReceiver.lambda$handle$0(AnimationTimer.java:58)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at javafx.animation.AnimationTimer$AnimationTimerReceiver.handle(AnimationTimer.java:57)
    at com.sun.scenario.animation.AbstractPrimaryTimer.timePulseImpl(AbstractPrimaryTimer.java:356)
    at com.sun.scenario.animation.AbstractPrimaryTimer$MainLoop.run(AbstractPrimaryTimer.java:266)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:571)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:555)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulseFromQueue(QuantumToolkit.java:548)
    at com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$11(QuantumToolkit.java:352)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:184)
    at java.base/java.lang.Thread.run(Thread.java:1583)

 Exception in thread "JavaFX Application Thread" java.lang.NullPointerException

Screenshot:

image

Version

grndlauncher commented 4 months ago

Hey man, thanks for the quick fix. But it seems to still happen.

Error log:

java.lang.ArrayIndexOutOfBoundsException: Index 100477 out of bounds for length 100477
    at packets.DataTypeProvider.readNext(DataTypeProvider.java:98)
    at packets.DataTypeProvider.readString(DataTypeProvider.java:127)
    at game.data.entity.EntityRegistry.lambda$updatePlayerAction$8(EntityRegistry.java:100)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:12)
    at util.ExceptionHandling.attempt(ExceptionHandling.java:22)
    at game.data.entity.EntityRegistry.lambda$updatePlayerAction$9(EntityRegistry.java:86)
    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)

 java.lang.ArrayIndexOutOfBoundsException

 java.lang.ArrayIndexOutOfBoundsException

 java.lang.ArrayIndexOutOfBoundsException

But it did work at the beginning. I was a bit confused. I basically was able to move around just fine until one point it happened.

mircokroon commented 4 months ago

Looks like a different issue, ill see if I can resolve it as well

mircokroon commented 4 months ago

if it is what I think its a pretty minor and probably harmless error so not really a high priority, everything else should work fine

grndlauncher commented 4 months ago

Okay. As a note. I am using modded Minecraft (fabric with a bunch of mods). But even in Vanilla there are issues. The interesting part I just noticed is that I no longer receive the red text on the bottom left which says there is an error. Also no log option in the settings anymore.

image

But I did get a new error it seems.

image

If you wanna get in contact for better direct communication, my discord is "molotovyc". I also just installed Java 22 SDK from Oracle. Although its still doesn't work, no pressure. I know you have more important stuff to do probably so still big thanks for the mod in general!

mircokroon commented 4 months ago

This is probably caused by the render distance extending option, can set it to 0 as a workaround. I'll see if I can fix it.

grndlauncher commented 4 months ago

Okay, can mods like Distant Horizons interfere with world downloader? Technically its not saving into the folder your program creates so it shouldn't, but since both applications display something, it might break stuff no?

mircokroon commented 4 months ago

Shouldn't be an issue. For now I just disabled the extending in 1.21