Dynamic Crosshair

Dynamic Crosshair

2M Downloads

Crash when trying to open the configuration GUI via Mod Menu

Closed this issue ยท 3 comments

commented

Game version: 1.20.1
Mod Loader version: Fabric 0.16.9
Dynamic Crosshair mod version: 9.3+1.20.1-fabric
Mod Menu mod version: 7.2.2

I'm trying to open the configuration GUI using (1) or (2) buttons.
image

When I click, the game crashes right away and I get the following crash log:

---- Minecraft Crash Report ----
// Why is it breaking :(

Time: 2025-01-08 15:25:42
Description: mouseClicked event handler

java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "dev.isxander.yacl3.api.Option.pendingValue()" is null
	at knot//mod.crend.libbamboo.controller.NestingController.<init>(NestingController.java:28)
	at knot//mod.crend.dynamiccrosshair.config.gui.CrosshairStyleController.lambda$provideWidget$7(CrosshairStyleController.java:75)
	at knot//dev.isxander.yacl3.impl.OptionImpl.<init>(OptionImpl.java:48)
	at knot//dev.isxander.yacl3.impl.OptionImpl$BuilderImpl.build(OptionImpl.java:287)
	at knot//mod.crend.dynamiccrosshair.config.gui.CrosshairStyleController.provideWidget(CrosshairStyleController.java:76)
	at knot//dev.isxander.yacl3.gui.OptionListWidget.refreshOptions(OptionListWidget.java:74)
	at knot//dev.isxander.yacl3.gui.OptionListWidget.<init>(OptionListWidget.java:39)
	at knot//dev.isxander.yacl3.gui.YACLScreen$CategoryTab.<init>(YACLScreen.java:272)
	at knot//dev.isxander.yacl3.gui.YACLScreen.lambda$init$2(YACLScreen.java:68)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toList(Unknown Source)
	at knot//dev.isxander.yacl3.gui.YACLScreen.method_25426(YACLScreen.java:69)
	at knot//net.minecraft.class_437.method_25423(class_437.java:297)
	at knot//net.minecraft.class_310.method_1507(class_310.java:1080)
	at knot//com.terraformersmc.modmenu.gui.widget.entries.ModListEntry.openConfig(ModListEntry.java:120)
	at knot//com.terraformersmc.modmenu.gui.widget.entries.ModListEntry.method_25402(ModListEntry.java:110)
	at knot//com.terraformersmc.modmenu.gui.widget.ModListWidget.method_25402(ModListWidget.java:264)
	at knot//net.minecraft.class_4069.method_25402(class_4069.java:38)
	at knot//net.minecraft.class_312.method_1611(class_312.java:98)
	at knot//net.minecraft.class_437.method_25412(class_437.java:409)
	at knot//net.minecraft.class_312.method_1601(class_312.java:98)
	at knot//net.minecraft.class_312.method_22686(class_312.java:169)
	at knot//net.minecraft.class_1255.execute(class_1255.java:102)
	at knot//net.minecraft.class_312.method_22684(class_312.java:169)
	at knot//org.lwjgl.glfw.GLFWMouseButtonCallback$Container.invoke(GLFWMouseButtonCallback.java:81)
	at knot//dynamic_fps.impl.util.event.InputObserver.onPress(InputObserver.java:96)
	at knot//org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at knot//org.lwjgl.system.JNI.invokeV(Native Method)
	at knot//org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
	at knot//com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:237)
	at knot//net.minecraft.class_310.method_1523(class_310.java:1244)
	at knot//net.minecraft.class_310.method_1514(class_310.java:802)
	at knot//net.minecraft.client.main.Main.main(Main.java:250)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Render thread
Stacktrace:
	at knot//mod.crend.libbamboo.controller.NestingController.<init>(NestingController.java:28)
	at knot//mod.crend.dynamiccrosshair.config.gui.CrosshairStyleController.lambda$provideWidget$7(CrosshairStyleController.java:75)
	at knot//dev.isxander.yacl3.impl.OptionImpl.<init>(OptionImpl.java:48)
	at knot//dev.isxander.yacl3.impl.OptionImpl$BuilderImpl.build(OptionImpl.java:287)
	at knot//mod.crend.dynamiccrosshair.config.gui.CrosshairStyleController.provideWidget(CrosshairStyleController.java:76)
	at knot//dev.isxander.yacl3.gui.OptionListWidget.refreshOptions(OptionListWidget.java:74)
	at knot//dev.isxander.yacl3.gui.OptionListWidget.<init>(OptionListWidget.java:39)
	at knot//dev.isxander.yacl3.gui.YACLScreen$CategoryTab.<init>(YACLScreen.java:272)
	at knot//dev.isxander.yacl3.gui.YACLScreen.lambda$init$2(YACLScreen.java:68)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.toList(Unknown Source)
	at knot//dev.isxander.yacl3.gui.YACLScreen.method_25426(YACLScreen.java:69)
	at knot//net.minecraft.class_437.method_25423(class_437.java:297)
	at knot//net.minecraft.class_310.method_1507(class_310.java:1080)
	at knot//com.terraformersmc.modmenu.gui.widget.entries.ModListEntry.openConfig(ModListEntry.java:120)
	at knot//com.terraformersmc.modmenu.gui.widget.entries.ModListEntry.method_25402(ModListEntry.java:110)
	at knot//com.terraformersmc.modmenu.gui.widget.ModListWidget.method_25402(ModListWidget.java:264)
	at knot//net.minecraft.class_4069.method_25402(class_4069.java:38)
	at knot//net.minecraft.class_312.method_1611(class_312.java:98)
	at knot//net.minecraft.class_437.method_25412(class_437.java:409)
	at knot//net.minecraft.class_312.method_1601(class_312.java:98)
	at knot//net.minecraft.class_312.method_22686(class_312.java:169)
	at knot//net.minecraft.class_1255.execute(class_1255.java:102)
	at knot//net.minecraft.class_312.method_22684(class_312.java:169)
	at knot//org.lwjgl.glfw.GLFWMouseButtonCallback$Container.invoke(GLFWMouseButtonCallback.java:81)
	at knot//dynamic_fps.impl.util.event.InputObserver.onPress(InputObserver.java:96)
	at knot//org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at knot//org.lwjgl.system.JNI.invokeV(Native Method)
	at knot//org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)

-- Affected screen --
Details:
	Screen name: com.terraformersmc.modmenu.gui.ModsScreen
Stacktrace:
	at knot//net.minecraft.class_437.method_25412(class_437.java:409)
	at knot//net.minecraft.class_312.method_1601(class_312.java:98)
	at knot//net.minecraft.class_312.method_22686(class_312.java:169)
	at knot//net.minecraft.class_1255.execute(class_1255.java:102)
	at knot//net.minecraft.class_312.method_22684(class_312.java:169)
	at knot//org.lwjgl.glfw.GLFWMouseButtonCallback$Container.invoke(GLFWMouseButtonCallback.java:81)
	at knot//dynamic_fps.impl.util.event.InputObserver.onPress(InputObserver.java:96)
	at knot//org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at knot//org.lwjgl.system.JNI.invokeV(Native Method)
	at knot//org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
	at knot//com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:237)
	at knot//net.minecraft.class_310.method_1523(class_310.java:1244)
	at knot//net.minecraft.class_310.method_1514(class_310.java:802)
	at knot//net.minecraft.client.main.Main.main(Main.java:250)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
	
...
commented

What version of yet-another-config-lib do you have installed?

commented

What version of yet-another-config-lib do you have installed?

Currently, I have version 3.2.2 installed

commented

@Crendgrim I've just updated it to the latest version (3.6.2) and it started working. It seems the problem was with the old version of yet-another-config-lib. Thanks for the hint! :)