Minenash / CustomHUD

A highly customizable variable-based text HUD for Minecraft
MIT License
77 stars 23 forks source link

Crash with Sodium 0.5 #102

Closed ItsukaHiro closed 1 year ago

ItsukaHiro commented 1 year ago

When enter world, game just crash.

[12:39:13] [Render thread/ERROR]: Unreported exception thrown!
java.lang.NoSuchMethodError: 'java.util.Collection me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer.getMemoryDebugStrings()'
    at com.minenash.customhud.mod_compat.SodiumCompat.lambda$registerCompat$11(SodiumCompat.java:39) ~[custom_hud-3.1.0+1.20.jar:?]
    at com.minenash.customhud.mod_compat.CustomHudRegistry.runComplexData(CustomHudRegistry.java:45) ~[custom_hud-3.1.0+1.20.jar:?]
    at com.minenash.customhud.ComplexData.update(ComplexData.java:215) ~[custom_hud-3.1.0+1.20.jar:?]
    at com.minenash.customhud.CustomHud.onTick(CustomHud.java:107) ~[custom_hud-3.1.0+1.20.jar:?]
    at net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents.lambda$static$2(ClientTickEvents.java:43) ~[fabric-lifecycle-events-v1-2.2.2+b3afc78b77-5dc3b66c74aa05fa.jar:?]
    at net.minecraft.class_310.handler$zma000$fabric-lifecycle-events-v1$onEndTick(class_310.java:8022) ~[client-intermediary.jar:?]
    at net.minecraft.class_310.method_1574(class_310.java:1957) ~[client-intermediary.jar:?]
    at net.minecraft.class_310.method_1523(class_310.java:1181) ~[client-intermediary.jar:?]
    at net.minecraft.class_310.method_1514(class_310.java:802) ~[client-intermediary.jar:?]
    at net.minecraft.client.main.Main.main(Main.java:250) ~[minecraft-1.20.1-client.jar:?]
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:468) ~[fabric-loader-0.14.21.jar:?]
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) ~[fabric-loader-0.14.21.jar:?]
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23) ~[fabric-loader-0.14.21.jar:?]
    at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88) ~[NewLaunch.jar:?]
    at org.prismlauncher.EntryPoint.listen(EntryPoint.java:126) ~[NewLaunch.jar:?]
    at org.prismlauncher.EntryPoint.main(EntryPoint.java:71) ~[NewLaunch.jar:?]
---- Minecraft Crash Report ----
// Don't do that.
Time: 2023-08-05 12:39:13
Description: Unexpected error
java.lang.NoSuchMethodError: 'java.util.Collection me.jellysquid.mods.sodium.client.render.SodiumWorldRenderer.getMemoryDebugStrings()'
    at com.minenash.customhud.mod_compat.SodiumCompat.lambda$registerCompat$11(SodiumCompat.java:39)
    at com.minenash.customhud.mod_compat.CustomHudRegistry.runComplexData(CustomHudRegistry.java:45)
    at com.minenash.customhud.ComplexData.update(ComplexData.java:215)
    at com.minenash.customhud.CustomHud.onTick(CustomHud.java:107)
    at net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents.lambda$static$2(ClientTickEvents.java:43)
    at net.minecraft.class_310.handler$zma000$fabric-lifecycle-events-v1$onEndTick(class_310.java:8022)
    at net.minecraft.class_310.method_1574(class_310.java:1957)
    at net.minecraft.class_310.method_1523(class_310.java:1181)
    at net.minecraft.class_310.method_1514(class_310.java:802)
    at net.minecraft.client.main.Main.main(Main.java:250)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:468)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88)
    at org.prismlauncher.EntryPoint.listen(EntryPoint.java:126)
    at org.prismlauncher.EntryPoint.main(EntryPoint.java:71)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Render thread
Stacktrace:
    at com.minenash.customhud.mod_compat.SodiumCompat.lambda$registerCompat$11(SodiumCompat.java:39)
    at com.minenash.customhud.mod_compat.CustomHudRegistry.runComplexData(CustomHudRegistry.java:45)
    at com.minenash.customhud.ComplexData.update(ComplexData.java:215)
    at com.minenash.customhud.CustomHud.onTick(CustomHud.java:107)
    at net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents.lambda$static$2(ClientTickEvents.java:43)
    at net.minecraft.class_310.handler$zma000$fabric-lifecycle-events-v1$onEndTick(class_310.java:8022)
-- Affected level --
Details:
    All players: 1 total; [class_746['ItsukaHiro'/128, l='ClientLevel', x=-26.96, y=-62.00, z=-18.98]]
    Chunk stats: 4096, 0
    Level dimension: minecraft:overworld
    Level spawn location: World: (0,-60,0), Section: (at 0,4,0 in 0,-4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
    Level time: 284990 game time, 6000 day time
    Server brand: fabric
    Server type: Integrated singleplayer server
Stacktrace:
    at net.minecraft.class_638.method_8538(class_638.java:458)
    at net.minecraft.class_310.method_1587(class_310.java:2406)
    at net.minecraft.class_310.method_1514(class_310.java:826)
    at net.minecraft.client.main.Main.main(Main.java:250)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:468)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
    at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:88)
    at org.prismlauncher.EntryPoint.listen(EntryPoint.java:126)
    at org.prismlauncher.EntryPoint.main(EntryPoint.java:71)
Minenash commented 1 year ago

I will release a quick patch in the next day or two

pellesson commented 1 year ago

i have the same issue,, minecraft crash when using sodium 0.5 with customhud

goodair220917 commented 1 year ago

when will this be fixed? I'm excited to use this with my own enhanced vanilla modpack!

Minenash commented 1 year ago

So sorry, tonight. Someone even did it for me, I just need to merge, double check it working, and release

Minenash commented 1 year ago

Released!