While trying to set up a new world, I encountered a crash that immediately kills the game. Here is the error itself, as seen in the log:
[Render thread/ERROR]: Reported exception thrown!
w: Rendering screen
at fdp.a(SourceFile:938) ~[1.19.3-pre2.jar:?]
at ejg.f(SourceFile:1193) ~[1.19.3-pre2.jar:?]
at ejg.e(SourceFile:781) ~[1.19.3-pre2.jar:?]
at net.minecraft.client.main.Main.a(SourceFile:244) ~[1.19.3-pre2.jar:?]
at net.minecraft.client.main.Main.main(SourceFile:51) ~[1.19.3-pre2.jar:?]
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.stream()" because the return value of "epc$a.a()" is null
at epc.a(SourceFile:213) ~[1.19.3-pre2.jar:?]
at epc.b(SourceFile:115) ~[1.19.3-pre2.jar:?]
at fdp.a(SourceFile:929) ~[1.19.3-pre2.jar:?]
... 4 more
This occurred specifically when I was trying to modify the game rules for a new world. In order to see if I could file a more useful bug report, I read the obfuscation map file and it seems like this has to do with tooltips. I went back in to try and see if all tooltips were affected, and my quick testing only showed one spot where the crash occurs, but it's consistent.
To reproduce the crash, it seems the offending tooltip occurs when I move my mouse from the "source lava conversion" game rule button (whose tooltip is just fine) down to the "Done" button to finish editing the game rules. The crash happens too quickly to know what exactly triggered it, but I think it's mousing over the first game rule under the next section heading. If needed I can grab a screenshot to illustrate this better. Point is, moving the mouse to the lava conversion rule and then down to the Done button should have you incidentally mouse over the problem area.
Attachments
Comments 7
This is very consistent. I can reproduce the crash by moving my mouse pointer over one of the category labels as @unknown commented.
If I do not mouse over any of the yellow text/category labels I can use the game rules screen.
Code analysis (1.19.3-pre2 yarn)
Screen#setTooltip
constructs a PositionedTooltip
, whose tooltip
field is read during tooltip. There are two overloads, but the one in question takes one argument. setTooltip
does not clear the tooltip when the passed tooltip is null
; it instead causes the game to render null
text.
EditGameRuleeScreen
uses the method to render the tooltip of rule description. Here the "rule" includes the category, which has a null
description. So when it sets the tooltip for the category, the game tries to render the null tooltip, crashing the game.
I had discovered the same bug 2 days after you lol. Glad your bug report got the attention it deserved, I didn't see anyone talking about this.
I reliably crashed the game in the Game Rules menu simply by scrolling my mouse wheel.
Does this occur in a vanilla instance of the game?