PAYDAY 2

PAYDAY 2

View Stats:
LLVM 14 and 15 Breaks Payday 2 (Fix in description)
The game WILL crash when the MESA graphics stack is built against LLVM 14 or 15, which is an issue with Fedora in particular, as downgrading mesa is not really a viable option.

This was initially noticed on bleeding edge distro's, and using the Kisak Unstable, Kisak Turtle and Oibaf PPA's (which are built against LLVM 15) and thus, make the game crash.

The Fix: Use Zink, an OpenGL -> Vulkan conversion layer built into Mesa:
Put this in your launch options:
env __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink %command%

If you plan on running SuperBLT, then it is:
env __GLX_VENDOR_LIBRARY_NAME=mesa MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink LD_PRELOAD="$LD_PRELOAD ./libsuperblt_loader.so" %command%

You can confirm it works by installing MangoHUD and placing the command 'mangohud' at the end of the command string (but before '%command%')

This is likely an LLVMpipe bug, but it's hard to tell. Anyway, I hope this helps!
Last edited by Dribbleondo-Van-Pelt; Mar 14, 2023 @ 3:03am
< >
Showing 1-10 of 10 comments
Rea Nov 13, 2022 @ 10:53am 
Is there a way to put specific libs into, say, LD_PRELOAD to only run Payday 2 with older Mesa?
I'm not quite sure to be honest. Mesa and the LLVM versions used appear to be very reliant on one another; it'll break regardless I feel.
tim Nov 14, 2022 @ 1:45pm 
having this very issue I think. If anyone has any ideas on how to get the older Mesa to run with just Payday, it would be helpful.
tim Nov 14, 2022 @ 7:41pm 
Verified the issue is the LLVM problem.

dmesg reports this:

[42759.901887] traps: payday2_re:sh0[84700] general protection fault ip:7f68addc9b1c sp:7f68a77fa090 error:0 in libLLVM-14.so[7f68ad7d7000+316c000]

Posting this here to help others with diagnosis....

Still don't have a good fix for this on Fedora 36.
Zajumcskins.army Feb 27, 2023 @ 11:36am 
oh, so that's why I can't play through vulkan but can with opengl.
Originally posted by R:
oh, so that's why I can't play through vulkan but can with opengl.

Payday 2 doesn't use Vulkan. I think you meant the opposite.
Zajumcskins.army Feb 28, 2023 @ 1:29pm 
Originally posted by Dribbleondo-Van-Pelt:
Originally posted by R:
oh, so that's why I can't play through vulkan but can with opengl.

Payday 2 doesn't use Vulkan. I think you meant the opposite.
Proton uses vulkan by default, I don't like how native port is handled. Once i switched to radeon gpu, the only way to play is by forcing wined3d which translates to opengl because running the game with vulkan instantly crashes the game.
Wow, that is not something I expected, didn;t know it crashed on Vulkan via Proton.

And what do you mean by "how the port is handled?"
Last edited by Dribbleondo-Van-Pelt; Feb 28, 2023 @ 1:35pm
Zajumcskins.army Feb 28, 2023 @ 2:17pm 
Originally posted by Dribbleondo-Van-Pelt:
Wow, that is not something I expected, didn;t know it crashed on Vulkan via Proton.

And what do you mean by "how the port is handled?"
it runs poorly and some mods are not compatible with linux build of superblt.
Originally posted by R:
Originally posted by Dribbleondo-Van-Pelt:
Wow, that is not something I expected, didn;t know it crashed on Vulkan via Proton.

And what do you mean by "how the port is handled?"
it runs poorly and some mods are not compatible with linux build of superblt.

No it doesn't, certainly not any worse than Windows. Welcome to the diesel engine! And 95% of lua mods will work, to the point that you'd have to actively go out of your way to find an incompatible mod.
Last edited by Dribbleondo-Van-Pelt; Feb 28, 2023 @ 10:56pm
< >
Showing 1-10 of 10 comments
Per page: 1530 50