Draylar / vanilla-hammers

Introduces 3x3 mining tools for fast digging! Available on 1.14, 1.15, 1.16, and 1.17.
https://minecraft.curseforge.com/projects/vanilla-hammers
MIT License
23 stars 31 forks source link

Game crashes when using any hammer in survival mode #89

Open JSJBDEV opened 3 years ago

JSJBDEV commented 3 years ago

A very crypic log, simply use any hammer on any hammerable block, in survival mode

java.lang.NullPointerException: Unexpected error
    at net.minecraft.class_776.method_23071(class_776.java:46)
    at net.minecraft.class_761.method_22710(class_761.java:1319)
    at net.minecraft.class_757.method_3188(class_757.java:727)
    at net.minecraft.class_757.method_3192(class_757.java:546)
    at net.minecraft.class_310.method_1523(class_310.java:1048)
    at net.minecraft.class_310.method_1514(class_310.java:681)
    at net.minecraft.client.main.Main.main(Main.java:215)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226)
    at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146)
    at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at link.infra.jumploader.Jumploader.onLoad(Jumploader.java:171)
    at cpw.mods.modlauncher.TransformationServiceDecorator.onLoad(TransformationServiceDecorator.java:53)
    at cpw.mods.modlauncher.TransformationServicesHandler.lambda$loadTransformationServices$11(TransformationServicesHandler.java:131)
    at cpw.mods.modlauncher.TransformationServicesHandler$$Lambda$58/1388278453.accept(Unknown Source)
    at java.util.HashMap$Values.forEach(HashMap.java:972)
    at cpw.mods.modlauncher.TransformationServicesHandler.loadTransformationServices(TransformationServicesHandler.java:131)
    at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:56)
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:76)
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:66)

this seems to also extend to the hammers added by astromine as well, it happens in both singleplayer and multiplayer and the server reckons its a class cast exception

Vestak3321 commented 3 years ago

I am having this issue too. Here's my crash report, hope it helps.

java.lang.NullPointerException: Unexpected error at net.minecraft.class_776.method_23071(class_776.java:46) at net.minecraft.class_761.method_22710(class_761.java:1319) at net.minecraft.class_757.method_3188(class_757.java:727) at net.minecraft.class_757.method_3192(class_757.java:546) at net.minecraft.class_310.method_1523(class_310.java:1048) at net.minecraft.class_310.method_1514(class_310.java:681) at net.minecraft.client.main.Main.main(Main.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.fabricmc.loader.game.MinecraftGameProvider.launch(MinecraftGameProvider.java:226) at net.fabricmc.loader.launch.knot.Knot.launch(Knot.java:146) at net.fabricmc.loader.launch.knot.KnotClient.main(KnotClient.java:28)

Draylar commented 3 years ago

can you provide your full game log through a service such as pastebon?

JSJBDEV commented 3 years ago

I just tried readding it to my pack and got some really weird visual errors, I have a feeling this my have been what was happening to start with and Im thinking perhaps this is a sodium bug? will try and get you a log of the Astromine hammers which appear to use the exact same code

JSJBDEV commented 3 years ago

crash-2021-04-09_16.59.31-client.txt crash-2021-04-09_16.59.59-client.txt

JSJBDEV commented 3 years ago

these errors appear to be different then previous versions, but again It appears to be some kind of visual bug when holding the hammers in survival mode, Id guess sodium to be the main culprit

Draylar commented 3 years ago

Both logs give no information (cryptic, as you said), so it's hard to say what the problem is. Have you tried the game without Sodium? I'll try loading them both up tonight and see if I can reproduce the issue.

JSJBDEV commented 3 years ago

If I have a chance tonight ill test it without sodium, if you could do it also thatd be great

ghost commented 3 years ago

Here: crash-log

Crash appears after hitting a stone with any hammer.

Edit

Next: crash-log

Crash appears after hitting a coal ore with vibranium hammer.

Edit

Last: crash-log

Crash appears in the same situation as above, but i run MC without Sodium & Indium.

ghost commented 3 years ago

Fixed - just change the "magna" config file; "enableAllBlockBreakingAnimation" to false.

JSJBDEV commented 3 years ago

Yup it's a sodium thing otherwise from what I can tell

JSJBDEV commented 3 years ago

yeah so this happens without sodium as well so I will change the config file

ghost commented 3 years ago

Any new information about release fix? new crashlog: https://pastebin.com/RE3Rea7N