mojira.dev
MC-280482

Main menu is totally broken when using Mesa 25.0

With 25w10a, the main menu is completely broken. Only the panorama is visible, and while the buttons can be clicked they don’t render. The only things that show are black boxes and some hover indicators.

The main menu worked with 25w09b.

Environment

openSUSE Tumbleweed 20250304

OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 19.1.7, DRM 3.61, 6.13.5-1-default)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 25.0.0

Attachments

Comments 4

I managed to get into a world by creating one in 25w09b and figuring out where the buttons are in the main menu. Almost all UI is totally missing: there’s no hotbar, opening inventory just dims the screen, etc. Chat “works”, but there’s no text.

[media]

[media]

This seems to be an issue with Mesa 25, downgrading to 24.3.4 fixes it.

I have figured out what causes this, it seems like mentioned to be Mesa 25, and have found a fix for it.

This is due to a “use after free” issue, which takes place in VertexFormat#uploadImmediateVertexBuffer & VertexFormat#uploadImmediateIndexBuffer where when closing the buffer then re-assigning it, can cause a “use after free” issue. The fix is to store the current buffer in a temp variable, create the new buffer in another variable, then call close on the old buffer variable, then assign the buffer to the new buffer variable

Example From My Mixin I made (Mojmap):

[media]

Based on the above, it seems like a MC bug that exhibits only under Mesa 25 somehow..?

Regardless, it’s still broken under MC 1.21.5-pre1 and Mesa 25.0.1.

DrinkyBird

(Unassigned)

Community Consensus

Platform

Important

Rendering

25w10a

1.21.5 Pre-release 2

Retrieved