OpenGL Crash When Entering Fullscreen on RTX 3060 Mobile with nvidia-dkms 555.58.02 (Minecraft)

Operating System: Arch Linux
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 62.6 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: Katana GF76 11UE
System Version: REV:1.0

nvidia-bug-report.log (6.7 MB)
hs_err_pid1197.log (221.4 KB)

edit:
Does not happens on X11 Session

Anything? Any info if the bug is confirmed?

https://bugs.mojang.com/browse/MC-274376

Here is another user experiencing a similar issue but with a different approach.

I wasn’t able to reproduce the crash just making the window fullscreen, but I did run into a similar-looking crash when exiting the game. For reference, I filed internal bug number 4764568.

1 Like

Forgot to mention that issue can be produced on 1.12.2 version.

Is this fixed in Linux x64 (AMD64/EM64T) Display Driver | 560.31.02 | Linux 64-bit | NVIDIA ? If yes im switching my gpu back to nvidia.

Did some investigation its not minecraft problem.

lwjgl 2 crashes on full-screen meantime lwjgl 3 crashes on exit

If any tests needed i could test everything to get rid of this issue.

Hi @edgarscirulis
This is under active investigation, and we do not have a fix yet.
Will keep posted on the progress, thanks.

Alright, meanwhile, I’ll try to fix the issue by using assembly. If I have any luck, I’ll let you know.

I’m having the same issue, but for me, I don’t need to enter fullscreen; it crashes as soon as I launch 1.8.9 Minecraft (lwjgl 2). Any Minecraft version running lwjgl 3 starts and runs fine but also crashes for me on exit (as mentioned here).

OS: Arch Linux x86_64
Kernel: 6.10.6-arch1-1
DE: KDE Plasma 6.1.4
WM: Wayland sddm 0.21.0
CPU: AMD Ryzen 9 3900X (24) @ 3.800GHz
GPU: NVIDIA GeForce RTX 2060 SUPER
Manufacturer: Micro-Star International Co., Ltd
Product Name: MS-7C02

nvidia-bug-report.log (2.2 MB)
hs_err_pid96063.log (169.4 KB)

I just discovered that setting the environment variable __GL_THREADED_OPTIMIZATIONS=0 (on the application level, not globally) fixes both the lwjgl2 startup crash and the lwjgl3 shutdown crash.

@xericl That’s interesting find, Assuming explicit sync has conflict with __GL_THREADED_OPTIMIZATIONS (Maybe was never tested).

Hi, @amrits . Sorry for disturbing you. Maybe this clue may speed up resolving the issue?
__GL_THREADED_OPTIMIZATIONS makes the issue. Without it no crash.

@xericl Great find. This fixes the crashes that occur when toggling full-screen and when quitting the game for me. I use PrismLauncher an I’ve added the environment variable to my instance settings for a seamless experience. Thanks again. This is a perfect band-aid until this issue receives a proper fix.

I have a similar issue: I play Minecraft through PrismLauncher on Nobara and the game often crashes when I maximize or exit maximization (it is not systematic, it crashes seemingly randomly).
I am adding a comment because adding the __GL_THREADED_OPTIMIZATIONS=0 environment variable on the PrismLauncher instance did not fix my issue

OS: Nobara Linux 40 (a version of Fedora)
Kernel: 6.10.7-200.fsync.fc40.x86_64 (64-bit)
DE: KDE Plasma 6.1.4
WM: Wayland
CPU: Intel® Core™ i7-8750H CPU @ 2.20GHz
GPU: NVIDIA GeForce GTX 1050

I am linking my logs as well.
Prism_log.txt (110.2 KB)
hs_err_pid671.log (689.5 KB)

Hello @leroyhaveamailbox, could you try putting the variable in /etc/environment .

Cheers, Edgars.

I… don’t know what you mean… from what I know, environment variables aren’t bound to a folder, and it doesn’t even exist on my system. How would I “put a variable” in a folder?

@leroyhaveamailbox Its not a folder. You should have a file in /etc/environment environment is the file in the directory /etc/

Use sudo nano or sudo vim or sudo neovim to edit the file and add the flag and save / reboot

__GL_THREADED_OPTIMIZATIONS=0

Also sorry for late reply. Didnt have time in Job.

Thanks for the explanation, I did this and rebooted but the game crashed as soon as I clicked the “maximize” button.
I even checked: the command echo $__GL_THREADED_OPTIMIZATIONS does return 0.
Having the variable in a folder like this might not work because I installed Prism with Flatpak, I’m still surprised that setting the variable in the prism instance doesn’t work either, since it’s probably why this feature of prism exists in the first place.
Regarding the fact that the launcher goes through Flatpak, I also tried to set the variable for the launcher through Flatseal, but it did not work either.

Also, don’t worry about time, our time zones are different anyway.