mojira.dev
MC-301436

Nouveau driver causes a driver crash on linux (BadAlloc)

Affects versions

1.21.7 1.21.8 and probably all previous versions of the game too.

Description

On Linux, I’m using a laptop that has a GTX 1660 Ti GPU, one with 4 Gb of RAM.
The open source Nouveau driver is used with the GPU, and with it the game keeps crashing, with both vanilla and modded and with both the official launcher and other launchers like MultiMC.

See the logs for other launchers:

Picked up _JAVA_OPTIONS: 
[19:43:02] [Datafixer Bootstrap/INFO]: 269 Datafixer optimizations took 782 milliseconds
[19:43:11] [Render thread/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[19:43:11] [Render thread/INFO]: Setting user: FellFromTheSky
[19:43:11] [Render thread/INFO]: Backend library: LWJGL version 3.3.3+5
[19:43:11] [Render thread/WARN]: Detected unexpected shutdown during last game startup: resetting fullscreen mode
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  148 ()
  Minor opcode of failed request:  7
  Serial number of failed request:  166
  Current serial number in output stream:  169

See the attached crash report for the official launcher.

See the attached “Launcher.log” for the official launcher logs.

With MultiMC, switcheroo-control or DRI_PRIME=1! is used for forcing the dGPU, otherwise the game is always launched with the Radeon VEGA iGPU.
The game works fine with the Radeon VEGA iGPU, but always crash with the dGPU.

For some reasons, the dGPU VRAM is misdetected?

Steps to reproduce:

  1. Have a computer with any Nvidia GPU fully compatible with the Nouveau driver:
    Fermi, Kepler, Maxwell, Ada Lovelace, Ampere, … but not Pascal since it has no reclocking support yet.

  2. Start the launcher through the terminal like that: DRI_PRIME=1! minecraft-launcher,

  3. Start the game and there's 99% chance it will crash (at least on Xorg, no clue for Wayland).

Environment

Gentoo Linux - very up to date system, most stable packages, some unstable ones (e.g. latest Mesa)
Latest MESA (tested on 25.1.5, 25.1.7 and 25.2.0) and Xorg. Untested on Wayland as I'm not using it.
Using latest version of MultiMC or the official launcher (as I'm on gentoo).
Laptop with a Radeon VEGA iGPU and a GTX 1660 Ti Mobile GPU [4 gb RAM]
32 Gb RAM on the system.

Attachments

Comments 6

By the way, as I already stated, the game is working perfectly with the Radeon VEGA iGPU. The game is also working perfectly on Nouveau if using the VulkanMod.

Here’s also the crash-reports from a clean .minecraft:

[media]

No _JAVA_OPTIONS picked up in this one.

Hi there!

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Could you please upload a video of the repro steps and the whole issue?

This ticket will automatically reopen when you reply.

The requested video.
Note that the game didn’t crash, the sound was playing, but nothing got rendered in game.

[media]

Woops. I posted a MKV video. You’ll have to download it in order to play it.

So, … I’ve finally been able to test the game with Zink (OpenGL over Vulkan 1.4) and so far it doesn’t crash and seems to work perfectly.

FellFromTheSky

(Unassigned)

Plausible

Crash

1.21.8

Retrieved