Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config UI Crash #128

Closed
A5ho9999 opened this issue May 9, 2023 · 1 comment
Closed

Config UI Crash #128

A5ho9999 opened this issue May 9, 2023 · 1 comment
Assignees
Labels
priority: normal this issue does not break any critical functionality - it must be adressed, but not immediately status: confirmed this issue is reproducible or otherwise confirmed to exist status: scheduled the resolution of this issue is scheduled for the next release type: bug this issue breaks or otherwise adversely affects functionality

Comments

@A5ho9999
Copy link

A5ho9999 commented May 9, 2023

Attempting to backspace the Color input inside the Config will crash the game.

Time: 2023-05-09 17:30:10
Description: keyPressed event handler

java.lang.NumberFormatException: For input string: "" under radix 16
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseUnsignedInt(Integer.java:861)
	at io.wispforest.owo.config.ui.OptionComponentFactory.lambda$static$14(OptionComponentFactory.java:77)
	at io.wispforest.owo.config.ui.component.ConfigTextBox.parsedValue(ConfigTextBox.java:65)
	at io.wispforest.owo.config.ui.OptionComponentFactory.lambda$static$16(OptionComponentFactory.java:82)
	at io.wispforest.owo.config.ui.OptionComponentFactory.lambda$static$17(OptionComponentFactory.java:88)
	at io.wispforest.owo.ui.component.TextBoxComponent$OnChanged.lambda$newStream$0(TextBoxComponent.java:84)
	at io.wispforest.owo.util.Observable.notifyObservers(Observable.java:97)
	at io.wispforest.owo.util.Observable.set(Observable.java:83)
	at net.minecraft.class_342.handler$cha000$owo$callOwoListener(class_342.java:1681)
	at net.minecraft.class_342.method_1874(class_342.java)
	at net.minecraft.class_342.method_1883(class_342.java:255)
	at net.minecraft.class_342.method_1878(class_342.java:199)
	at net.minecraft.class_342.method_16873(class_342.java:157)
	at net.minecraft.class_342.method_25404(class_342.java:318)
	at io.wispforest.owo.ui.component.VanillaWidgetComponent.onKeyPress(VanillaWidgetComponent.java:157)
	at net.minecraft.class_339.onKeyPress(class_339.java:1710)
	at io.wispforest.owo.ui.base.BaseParentComponent.onKeyPress(BaseParentComponent.java:250)
	at io.wispforest.owo.ui.core.OwoUIAdapter.method_25404(OwoUIAdapter.java:250)
	at io.wispforest.owo.ui.base.BaseOwoScreen.method_25404(BaseOwoScreen.java:114)
	at io.wispforest.owo.config.ui.ConfigScreen.method_25404(ConfigScreen.java:418)
	at net.minecraft.class_309.method_1454(class_309.java:394)
	at net.minecraft.class_437.method_25412(class_437.java:540)
	at net.minecraft.class_309.method_1466(class_309.java:390)
	at net.minecraft.class_309.method_22678(class_309.java:478)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_309.method_22676(class_309.java:478)
	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(RenderSystem.java:234)
	at net.minecraft.class_310.method_1523(class_310.java:1241)
	at net.minecraft.class_310.method_1514(class_310.java:801)
	at net.minecraft.client.main.Main.main(Main.java:237)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:462)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
-- Head --
Thread: Render thread
Stacktrace:
	at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
	at java.base/java.lang.Integer.parseUnsignedInt(Integer.java:861)
	at io.wispforest.owo.config.ui.OptionComponentFactory.lambda$static$14(OptionComponentFactory.java:77)
	at io.wispforest.owo.config.ui.component.ConfigTextBox.parsedValue(ConfigTextBox.java:65)
	at io.wispforest.owo.config.ui.OptionComponentFactory.lambda$static$16(OptionComponentFactory.java:82)
	at io.wispforest.owo.config.ui.OptionComponentFactory.lambda$static$17(OptionComponentFactory.java:88)
	at io.wispforest.owo.ui.component.TextBoxComponent$OnChanged.lambda$newStream$0(TextBoxComponent.java:84)
	at io.wispforest.owo.util.Observable.notifyObservers(Observable.java:97)
	at io.wispforest.owo.util.Observable.set(Observable.java:83)
	at net.minecraft.class_342.handler$cke000$owo$callOwoListener(class_342.java:1692)
	at net.minecraft.class_342.method_1874(class_342.java)
	at net.minecraft.class_342.method_1883(class_342.java:258)
	at net.minecraft.class_342.method_1878(class_342.java:202)
	at net.minecraft.class_342.method_16873(class_342.java:160)
	at net.minecraft.class_342.method_25404(class_342.java:321)
	at io.wispforest.owo.ui.component.VanillaWidgetComponent.onKeyPress(VanillaWidgetComponent.java:157)
	at net.minecraft.class_339.onKeyPress(class_339.java:1713)
	at io.wispforest.owo.ui.base.BaseParentComponent.onKeyPress(BaseParentComponent.java:250)
	at io.wispforest.owo.ui.core.OwoUIAdapter.method_25404(OwoUIAdapter.java:242)
	at io.wispforest.owo.ui.base.BaseOwoScreen.method_25404(BaseOwoScreen.java:114)
	at io.wispforest.owo.config.ui.ConfigScreen.method_25404(ConfigScreen.java:418)
	at net.minecraft.class_309.method_1454(class_309.java:371)
	at net.minecraft.class_437.method_25412(class_437.java:492)
	at net.minecraft.class_309.method_1466(class_309.java:367)
	at net.minecraft.class_309.method_22678(class_309.java:455)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_309.method_22676(class_309.java:455)
	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:190)
-- Affected screen --
Details:
	Screen name: io.wispforest.owo.config.ui.ConfigScreen
Stacktrace:
	at net.minecraft.class_437.method_25412(class_437.java:492)
	at net.minecraft.class_309.method_1466(class_309.java:367)
	at net.minecraft.class_309.method_22678(class_309.java:455)
	at net.minecraft.class_1255.execute(class_1255.java:102)
	at net.minecraft.class_309.method_22676(class_309.java:455)
	at org.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3403)
	at com.mojang.blaze3d.systems.RenderSystem.flipFrame(RenderSystem.java:190)
	at net.minecraft.class_1041.method_15998(class_1041.java:310)
	at net.minecraft.class_310.method_1523(class_310.java:1222)
	at net.minecraft.class_310.method_1514(class_310.java:781)
	at net.minecraft.client.main.Main.method_44604(Main.java:244)
	at net.minecraft.client.main.Main.main(Main.java:51)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:462)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
@cheapvrplayer
Copy link

i also have this issue

@gliscowo gliscowo added type: bug this issue breaks or otherwise adversely affects functionality status: scheduled the resolution of this issue is scheduled for the next release priority: normal this issue does not break any critical functionality - it must be adressed, but not immediately status: confirmed this issue is reproducible or otherwise confirmed to exist labels May 30, 2023
@gliscowo gliscowo self-assigned this May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: normal this issue does not break any critical functionality - it must be adressed, but not immediately status: confirmed this issue is reproducible or otherwise confirmed to exist status: scheduled the resolution of this issue is scheduled for the next release type: bug this issue breaks or otherwise adversely affects functionality
Projects
None yet
Development

No branches or pull requests

3 participants