mojira.dev
MC-275230

The game crashes when opening the inventory while in spectator mode

The Bug:

The game crashes when opening the inventory while in spectator mode.

A crash report regarding this has been attached and can be found below. This issue also doesn't appear to happen all of the time.

Stack Trace:

[^crash-2024-08-15_16.59.43-client.txt]

Description: Rendering screen

java.lang.NullPointerException: Cannot invoke "faz.a(boolean)" because the return value of "ggr.t()" is null
	at ghd.h(SourceFile:578)
	at ghd.a(SourceFile:39)
	at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
	at ghe$a.b(SourceFile:1231)
	at ghd.a(SourceFile:39)
	at ghe.a(SourceFile:1016)
	at ggv$a.a(SourceFile:96)
	at ggv$a.a(SourceFile:85)
	at ggv$a.a(SourceFile:69)
	at ggv$a.b(SourceFile:75)
	at fjn.e(SourceFile:96)
	at fri.a(SourceFile:160)
	at fri.a(SourceFile:133)
	at fri.a(SourceFile:102)
	at fqi.b(SourceFile:176)
	at fpt.a(SourceFile:126)
	at fqi.a(SourceFile:113)
	at fra.a(SourceFile:33)
	at fri.a(SourceFile:84)
	at fpt.c(SourceFile:117)
	at ggl.a(SourceFile:892)
	at fib.c(SourceFile:1305)
	at fib.f(SourceFile:894)
	at net.minecraft.client.main.Main.main(SourceFile:256)

Steps to Reproduce:

  1. Open your inventory while in spectator mode.

Observed Behavior:

The game crashes.

Expected Behavior:

The game would not crash.

Linked issues

Attachments

Comments 6

Can't confirm, opening your inventory in snapshot version 24w33a does not seem to crash the game.

Can you be more specific about the video settings you use?

I can reproduce the crash

just happened to me, playing the new 24w33a snapshot, but i had creative mode, clicked the little chest icon and boom, it crashed

hey, i've done some testing and it crashes only with the Fabulous graphics settings, so you can edit this info into your description

This bug is probably caused by “MC-191431”, and similar to “MC-275566

Avoma

gegy

Confirmed

Platform

Very Important

Crash

24w33a

24w34a

Retrieved