Build Guide

Build Guide

10M Downloads

Failure to launch on Paper 1.21.8

theo-abel opened this issue ยท 4 comments

commented

Hello, I just installed your mod on Paper 1.21.8 next to other ones. The game fails to launch with the following error :

[11/09/2025 19:40:41 pm] [Render thread/FATAL] Unable to instantiate Shape class 'brentmaas.buildguide.common.shape.ShapeCatenary'
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: java.lang.reflect.InvocationTargetException
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:72)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.common.shape.ShapeRegistry.getNewInstance(ShapeRegistry.java:25)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.common.shape.ShapeRegistry.registerShape(ShapeRegistry.java:20)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.common.BuildGuide.register(BuildGuide.java:46)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.fabric.BuildGuideFabric.onInitializeClient(BuildGuideFabric.java:17)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:405)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:53)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//net.minecraft.class_310.<init>(class_310.java:481)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//net.minecraft.client.main.Main.main(Main.java:249)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:506)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:72)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: Caused by: java.lang.NullPointerException: Cannot invoke "net.minecraft.class_1041.method_4486()" because the return value of "net.minecraft.class_310.method_22683()" is null
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//net.minecraft.class_342.<init>(class_342.java:75)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//net.minecraft.class_342.<init>(class_342.java:71)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.fabric.screen.widget.TextFieldImpl.<init>(TextFieldImpl.java:11)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.fabric.screen.widget.WidgetHandler.createTextField(WidgetHandler.java:22)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.common.property.PropertyInt.<init>(PropertyInt.java:18)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at knot//brentmaas.buildguide.common.shape.ShapeCatenary.<init>(ShapeCatenary.java:14)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
[11/09/2025 19:40:41 pm] [Render thread/INFO] [STDERR]: 	... 13 more

See the launch.log for full trace.

Please let me know if I should provide you with more details.

commented

Also happening on Fabric 1.21.8
Same error showing in the logs

commented

Thanks for the report!

From what I can tell, ShapeCatenary can't be registered, because it can't be instantiated, because a TextField can't be instantiated, because the game window is not available for some reason. Of course, TextField and the game window aren't necessary for that, but that it just how I cobbled it together.

It was already on my radar to disentangle it, but I'll get to it a bit sooner.

commented

This should be fixed by both commit 9f6d39a and commit 4a27232. I'll let you know when these are released!

commented

The fixes have been released today!