Steam Games Freezing when using dGPU

I’m trying to run Star Wars Battlefront II in Steam using Proton 5.13-6. The game loads fine and runs pretty smooth but usually about 5 minutes into playing, the game freezes. Audio can still be heard for a few seconds but the computer is totally unresponsive. My only solution is a force-shutdown. I just reinstalled Manjaro and the problem persists. I’m using prime-run to launch games to ensure the dGPU is being utilized. When using the iGPU, games play without freezing, albeit at lower performance so I think the problem lies with the dGPU.

I’m seeing the same pattern of issues in the system journal but I can’t nail down what the problem is.

Tail of the system journal from the last three times this has happened all seem to have the same warnings:

Mar 20 16:42:43 kratos krunner[5198]: Fossilize INFO: Overriding serialization path: "/home/mike/.local/share/Steam/steamapps/shadercache/1237950/fozpipelinesv5/steamapprun_pipeline_cach>
Mar 20 16:42:44 kratos krunner[5198]: Fossilize INFO: Overriding serialization path: "/home/mike/.local/share/Steam/steamapps/shadercache/1237950/fozpipelinesv5/steamapprun_pipeline_cach>
Mar 20 16:42:46 kratos kwin_x11[1285]: QPainter::begin: Paint device returned engine == 0, type: 3
Mar 20 16:42:51 kratos kwin_x11[1285]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 29625, resource id: 14689240, major code: 3 (GetWindowAttributes), minor code: 0
Mar 20 16:42:51 kratos kwin_x11[1285]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 29626, resource id: 14689240, major code: 14 (GetGeometry), minor code: 0
Mar 20 16:42:51 kratos kwin_x11[1285]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 29629, resource id: 14689241, major code: 3 (GetWindowAttributes), minor code: 0
Mar 20 16:42:51 kratos kwin_x11[1285]: qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 29630, resource id: 14689241, major code: 14 (GetGeometry), minor code: 0
Mar 20 16:43:11 kratos kded5[1281]: Registering ":1.87/StatusNotifierItem" to system tray

Google hasn’t been very helpful in my attempts and I’m not sure if kwin is the culprit or the victim here.

  • Razer Blade Advanced 2020
  • Nvidia RTX 2070 Super Mobile
  • Nvidia driver 460.56
  • Manjaro KDE
  • Kernel 5.11.10-1
1 Like

You should launch steam via terminal, run the game, and post the output after it crashes here.

Also, you should try the new Proton 6.3

I personally use GloriousEggroll’s Proton a lot.

The whole system locks up and I have to restart via holding the power button so I don’t get to see the terminal output at all. Simply redirecting it to a file (steam > ~/steam.log) only writes the first few lines of the terminal to disk and the rest just goes to STOUT in the terminal.

I just tried with Proton 6.3 and had the same problem. I can’t get GE to work for some reason right now. Games just don’t start.

If it helps, here’s the tail from ~/.steam/root/logs/compat_log.txt:

[2021-04-10 23:03:35] Loaded manifest for tool 1580130.
[2021-04-10 23:03:35] Loaded manifest for tool 1420170.
[2021-04-10 23:03:55] StartSession: session 386444851377c374
[2021-04-10 23:03:55] Querying foreign install path for AppID 1238860
[2021-04-10 23:03:55] Commands will be executed in session mode for session 386444851377c374
[2021-04-10 23:03:55] GetCompatibilityToolCommandLineInternal: tool 1580130 "Proton 6.3-2" has a dependency on tool 1391110
[2021-04-10 23:03:55] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=run -- 
[2021-04-10 23:03:55] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=run -- '/home/mike/.local/share/Steam/steamapps/common/Proton 6.3'/proton run 
[2021-04-10 23:03:55] GetCompatibilityToolCommandLineInternal: tool 1580130 "Proton 6.3-2" has a dependency on tool 1391110
[2021-04-10 23:03:55] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=getcompatpath -- 
[2021-04-10 23:03:55] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=getcompatpath -- '/home/mike/.local/share/Steam/steamapps/common/Proton 6.3'/proton getcompatpath 
[2021-04-10 23:04:08] Foreign install path for AppID 1238860: Z:\home\mike\.local\share\Steam\steamapps\common\Battlefield 4
[2021-04-10 23:04:08] Foreign install path for common redist for AppID 1238860: Z:\home\mike\.local\share\Steam\steamapps\common\Steamworks Shared
[2021-04-10 23:04:08] GetCompatibilityToolCommandLineInternal: tool 1580130 "Proton 6.3-2" has a dependency on tool 1391110
[2021-04-10 23:04:08] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=run -- 
[2021-04-10 23:04:08] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=run -- '/home/mike/.local/share/Steam/steamapps/common/Proton 6.3'/proton run 
[2021-04-10 23:04:08] Running install script evaluator for AppID 1238860, 8 steps
[2021-04-10 23:06:22] GetCompatibilityToolCommandLineInternal: tool 1580130 "Proton 6.3-2" has a dependency on tool 1391110
[2021-04-10 23:06:22] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- 
[2021-04-10 23:06:22] GetCompatibilityToolCommandLineInternal: '/home/mike/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/mike/.local/share/Steam/steamapps/common/Proton 6.3'/proton waitforexitandrun 
[2021-04-10 23:06:36] Compat manager: unexpected appID 1182480 exiting has no associated session information