Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

Linux freezing after game launches

Open Glue-Man opened this issue 1 year ago • 19 comments

When I press play, the game seems to open fine, but freezes when I reach the main menu and I have to restart my whole pc

Glue-Man avatar Apr 19 '24 00:04 Glue-Man

I second this, running Linux Mint Cinnamon 21.3.

notgonnaposta avatar Apr 19 '24 00:04 notgonnaposta

i just wanna play tf2 :(

Glue-Man avatar Apr 19 '24 00:04 Glue-Man

Same here, Arch Linux. It seems to freeze X or the window manager. I can still switch to a virtual console so the whole system hasn't frozen.

If left untouched the game will close/crash after about 5 minutes and everything unfreezes. No discernible error message.

dangodai avatar Apr 19 '24 00:04 dangodai

launching with proton seems to work, but you can't join servers

Glue-Man avatar Apr 19 '24 00:04 Glue-Man

Proton works but its really, really slow for me.

notgonnaposta avatar Apr 19 '24 00:04 notgonnaposta

Same problem here. Linux Mint MATE 21.3, Ryzen 7800X3D CPU and a 4070 GPU.

Like dangodai said, TF2 seems to be freezing the X server, so I took a look at .xsession-errors and found a nice chunk of errors from when TF2 starts.

Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x6200002 (Team Fortr)
Window manager warning: meta_window_activate called by a pager with a 0 timestamp; the pager needs to be fixed.

(caja:1754): Gdk-CRITICAL **: 18:41:24.611: gdk_event_set_source_device: assertion 'GDK_IS_DEVICE (device)' failed

(caja:1754): Gdk-CRITICAL **: 18:41:24.611: gdk_device_get_device_type: assertion 'GDK_IS_DEVICE (device)' failed

(caja:1754): Gdk-CRITICAL **: 18:41:24.611: gdk_device_list_slave_devices: assertion 'GDK_IS_DEVICE (device)' failed

(caja:1754): Gdk-CRITICAL **: 18:41:24.611: gdk_device_get_n_axes: assertion 'GDK_IS_DEVICE (device)' failed

(caja:1754): Gdk-CRITICAL **: 18:41:24.611: gdk_event_set_source_device: assertion 'GDK_IS_DEVICE (device)' failed

(caja:4566): Gtk-WARNING **: 18:41:25.208: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client

Also found some errors in TF2 with -condebug set, but I don't know if these are related to the crash and the console log looks like I'd expect otherwise.

Error: Material "debug/debugluxels" uses unknown shader "DebugLuxels"
Error: Material "___fillrate_0" uses unknown shader "FillRate"
Error: Material "___debugnormalmap_1" uses unknown shader "DebugNormalMap"
Error: Material "___debugdrawenvmapmask_2" uses unknown shader "DebugDrawEnvmapMask"
Error: Material "___debugdepth_3" uses unknown shader "DebugDepth"
Error: Material "___debugdepth_4" uses unknown shader "DebugDepth"

Dunno if it'll help, but figured I'd describe what the crash is like. Process goes like this: TF2 starts and both monitors go black for a second and the reappear with TF2 and the desktop like normal, after a couple seconds pass both monitors go black again, but this time when it reappears the desktop environment is frozen. When I switch to a virtual terminal and kill the tf_linux64 process and switch back, both monitors behave as if they're only one (e.g. all the windows will scale to both if put in fullscreen).

Edit: Grammar and added system information

ghost avatar Apr 19 '24 00:04 ghost

Also having a bug similar to what's described above. Using LXQt and an RX6800XT. Seems to be reported happening on multiple DEs and also hyprland in #5636 (so not X11 specific), same GPU though?

zestymclime avatar Apr 19 '24 00:04 zestymclime

I feel I need to specify that I have two GPU's in my computer (an intel integrated one and an NVIDIA gt1030). This might be causing some jank.

notgonnaposta avatar Apr 19 '24 00:04 notgonnaposta

On Arch Linux, x11, nvidia, computer was unresponsive at the main menu for ~5 minutes until tf2 crashed. After, I relaunched the game and it worked. Was able to join servers and play.

errantmind avatar Apr 19 '24 01:04 errantmind

Running Ubuntu 23.04. Vulkan plays the splash fine, hangs loading main menu and eventually crashes. It only doesn't crash if it freezes my entire PC, requiring a restart. I would like to check if dxlevel 8 is supported on vulkan, legacy openGL seems to work fine.

s01ch1r0 avatar Apr 19 '24 01:04 s01ch1r0

Lmao it fixed by waiting for the Vulcan shaders to finish.

notgonnaposta avatar Apr 19 '24 01:04 notgonnaposta

Let TF2 run until the program exited, xsession error log had a lot more info this go around. xsession-error-log.txt Inside the log I saw 04/18 19:38:21 Init: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0)/tid(11564) src/clientdll/steamengine.cpp (2647) : Assertion Failed: CSteamEngine::BMainLoop appears to have stalled > 15 seconds without event signalled right before a bunch of dumps so I thought it might have something to do with the steam overlay causing the crash. Disabled the overlay and let it run, the game still crashed but it didn't take steam down with it this time.

Now that steam wasn't crashing anymore I figured I'd take another look at steam's logs and sure enough there's more info in console_log.txt Hope that helps someone because I don't know enough about steam or X to decipher that error log.

Edit: Gonna add one more thing before I call it for the night, found this error Assert( fatal stalled cross-thread pipe. ):/data/src/common/pipes.cpp:883 in the TF2 core dump about three times. Could have been more, but the dump file has little plain text and most of what was there was only partially complete.

ghost avatar Apr 19 '24 02:04 ghost

Lmao it fixed by waiting for the Vulcan shaders to finish.

I got processing vulkan shaders after the patch but still hangs and crashes on launch.

s01ch1r0 avatar Apr 19 '24 04:04 s01ch1r0

I tried to play tf2 on linux with wayland session and vulkan. It freezes and showing a RGB pixels around my monitor

Hardware CPU: Intel Core I5-11400F GPU: AMD Radeon RX 5600 XT OS: Arch Linux Display server: Wayland

image

neppedboy avatar Apr 19 '24 10:04 neppedboy

After reading through the #5611 forum, I tried replacing -fullscreen with -windowed -noborder in TF2's launch options, and the game launched successfully and I was able to connect to a match.

ghost avatar Apr 19 '24 16:04 ghost

After reading through the #5611 forum, I tried replacing -fullscreen with -windowed -noborder in TF2's launch options, and the game launched successfully and I was able to connect to a match.

can confirm, seems to work fine after that

Glue-Man avatar Apr 19 '24 22:04 Glue-Man

In my case, removing whole steam related packages (and manually deleting remaining steam dirs), removing game e reinstalling from scratch (steam from VALVE site) worked for me. No more freeze gnome session, game starts in fullscreen mode.

OS: Debian 12 GPU: AMD RX 7900XT CPU: AMD R9 7900 Mesa: 22.x

felipsmartins avatar Apr 21 '24 18:04 felipsmartins

I was having the same issue, But was able to solve it by turning off shader pre-caching , and clearing my shader cache, I was able to turn shader precaching back on, and it caused no problems, so I'm guessing just clearing the cache would be enough.

ovlx avatar May 15 '24 19:05 ovlx

Temporary solution for me: -windowed -noborder to game launch params.

kotleni avatar May 16 '24 11:05 kotleni

Unfortunately, -windowed -noborder doesn't work for ultra wide monitors, as the FOV is incorrect unless the game is running full screen

bakkerthehacker avatar Aug 12 '24 05:08 bakkerthehacker

Unfortunately, -windowed -noborder doesn't work for ultra wide monitors, as the FOV is incorrect unless the game is running full screen

There's a better solution, set the refresh rate of your monitor on the game parameters.

Example: -freq 60

This is caused because Vulkan (in some systems) changes the refresh rate of the monitor after starting the game, which results in a crash.

notkiniro avatar Aug 12 '24 05:08 notkiniro

I worked around this issue by switching back to 'Legacy OpenGL' in the game options.

errantmind avatar Aug 15 '24 01:08 errantmind

Not sure if this is the same issue as i had. Game:[ The Finals ]

same as @Glue-Man i would press play and as soon as the loading screen/menu it would freeze up. i tried the -windowed -noborder and it did work but i needed full screen lol. i ended up re-installing the os (Mint) and found that before i turn on Enable fractional scaling controls under Display settings the game would work. Turned that off and now im good! image

That was the solution i found for my problem hope it helps someone els.

mkgotit avatar Sep 01 '24 08:09 mkgotit