ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
660 stars 76 forks source link

[HL2 Beta] [Vulkan] game hangs when loading the main menu in fullscreen #3690

Open crizan opened 3 years ago

crizan commented 3 years ago

After the update that fixed the stuttering in the new half life beta, launching the game with the vulkan option will hang the game (and the DE, this happened both in KDE and GNOME and I'm forced to kill hl2 from a tty, but I'm not sure if it's a game bug) during the loading of the main menu if in fullscreen, the game loads correctly if launched in windowed mode and setting fullscreen after that works fine

The OpenGL default option doesn't have this issue

The Vulkan option also doesn't close correctly, with the steam close button remaining after the window closes

System information: https://gist.github.com/crizan/7365578de710926b105aa7408b02d447

kwahoo2 commented 3 years ago

For me HL2 with Vulkan enabled just crashes, no matter if windowed or not.

Console output: https://gist.github.com/kwahoo2/bba5e21d7c31bb18d1a23bd80852c6cd System information: https://gist.github.com/kwahoo2/fc4068063313c6970e777b9e0739819a

KungFuJesus commented 2 years ago

For me HL2 with Vulkan enabled just crashes, no matter if windowed or not.

Console output: https://gist.github.com/kwahoo2/bba5e21d7c31bb18d1a23bd80852c6cd System information: https://gist.github.com/kwahoo2/fc4068063313c6970e777b9e0739819a

Perhaps a duplicate of https://github.com/ValveSoftware/Source-1-Games/issues/3729 ? What version of glibc are you using?

kwahoo2 commented 2 years ago

Perhaps a duplicate of #3729 ? What version of glibc are you using?

ldd --version
ldd (Ubuntu GLIBC 2.34-0ubuntu3) 2.34
KungFuJesus commented 2 years ago

Perhaps a duplicate of #3729 ? What version of glibc are you using?

ldd --version
ldd (Ubuntu GLIBC 2.34-0ubuntu3) 2.34

Same version as me, also encountering a double free in tcmalloc. Not at the same location, but a number of things might change that, including the driver controlling the allocations.

KungFuJesus commented 2 years ago

@kwahoo2 see this: https://github.com/ValveSoftware/csgo-osx-linux/issues/2659 Removing the bundled tcmalloc made everything work for me. It's questionable how this might affect trust factor in multiplayer games, though. Perhaps not at all, or perhaps anti-cheat doesn't like a user providing their own allocator library.

kwahoo2 commented 2 years ago

Removing the bundled tcmalloc made everything work for me.

Thanks, that was the culprit. Unfortunately Ubuntu does not ship libtcmalloc-minimal4:i386 anymore, so I had to borrow the lib from Debian Testing.