Linux Vulkan Dawn of War 3 alt tab crash system

Driver 39x series running Dawn of War 3 Vulkan crash system unresponsive, reboot needed On Linux Mint 18.3

The 384 driver alt-tab works

I have the same Problem with every Vulkan game (dota2, DoW3, mad max, Serious Sam Fusion)

I get complete system hang on alt-tab. I can only kill the process via remote ssh session.

The issue happens with the nvidia driver 387.34, 390.25, 390.42, 390.48

Tested with KDE and XFC.

AMD-FX 8350, 32GB RAM, Nvidia 1070GTX, Debian sid, kernel 4.16.2 and previous version, 2560x1440

Vulkan renderer works fine till Nvidia driver 384.xxx.

see also:https://github.com/ValveSoftware/Dota-2/issues/1345

nvidia-bug-report.log.gz (119 KB)

How about providing a nvidia-bug-report.log when issue hits?
Please run nvidia-bug-report.sh as root and attach the resulting .gz file to your post. Hovering the mouse over an existing post will reveal a paperclip icon.

can’t provide nvidia-bug-report when system crashed and need reset.

I added my ‘nvidia-bug-report.log.gz’. I created it via remote ssh session too.

Can you try with 396.18 driver, alt-tabbing works for me with Talos Principle/Vulkan.

Just tried with 396.18.02 on Fedora 27 KDE. Crash still happens in all Vulkan games, including Talos Principle, Rise of the Tomb Raider and Wine games like Wolfenstein II.

It’s not just alt-tabbing either. Anything that causes something to take focus away from the game window and paint on top of the game window will cause a freeze. For example, volume OSD and desktop notifications both will trigger the crash.

The temporary workaround in this case is to make sure that your compositor is still running when playing the game. That means you need to disable unredirect fullscreen or, in the case of KDE, turn off “Allow applications to block compositing”. I set a KDE window rule to disable the setting for just Rise of the Tomb Raider and it seems to work.

The problem with this workaround is that obviously you incur a performance and input latency penalty due to the compositor, but at least Vulkan games won’t crash whenever you adjust the volume or someone sends you a chat message :(

EDIT: Oh, also G-SYNC gets disabled when you run with the compositor, obviously.

With compositor enabled (turned off “Allow applications to block compositing”) the Rise of the Tomb Raider works for me with the driver 390.48 too. I can use alt-tab as well as osd popups doesn’t lock the system.
I tested also dota2 with -vulkan command line option and F1 2017. Both works so far. DoW3 works better now too, but after I pressed few times alt-tab I got hang again.

Apr 22 09:31:04 czarnyckm kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 245
Apr 22 09:31:04 czarnyckm kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  390.48  Thu Mar 22 00:42:57 PDT 2018 (using threaded interrupts)
Apr 22 09:31:05 czarnyckm kernel: nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  390.48  Wed Mar 21 23:48:34 PDT 2018
Apr 22 09:31:39 czarnyckm kernel: nvidia-modeset: Allocated GPU:0 (GPU-3d3e49bd-112d-d732-b299-443383e09256) @ PCI:0000:01:00.0
Apr 22 10:10:23 czarnyckm kernel: NVRM: GPU at PCI:0000:01:00: GPU-3d3e49bd-112d-d732-b299-443383e09256
Apr 22 10:10:23 czarnyckm kernel: NVRM: GPU Board Serial Number:
Apr 22 10:10:23 czarnyckm kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception on GPC 0: WIDTH CT Violation. Coordinates: (0x4b0, 0x0)
Apr 22 10:10:23 czarnyckm kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x500420=0x80000010 0x500434=0x4b0 0x500438=0x1200 0x50043c=0x0
Apr 22 10:10:23 czarnyckm kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception on GPC 1: WIDTH CT Violation. Coordinates: (0x4a0, 0x0)
Apr 22 10:10:23 czarnyckm kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x508420=0x80000010 0x508434=0x4a0 0x508438=0x1200 0x50843c=0x0
Apr 22 10:10:23 czarnyckm kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception on GPC 2: WIDTH CT Violation. Coordinates: (0x4a8, 0x0)
Apr 22 10:10:23 czarnyckm kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ESR 0x510420=0x80000010 0x510434=0x4a8 0x510438=0x1200 0x51043c=0x0
Apr 22 10:10:23 czarnyckm kernel: NVRM: Xid (PCI:0000:01:00): 13, Graphics Exception: ChID 007a, Class 0000c197, Offset 000015cc, Data 00010000

Bug report attached.
nvidia-bug-report.log.gz (124 KB)

I also have a problem with full screen Vulkan applications (any full screen Vulkan software). When X11 compositor is disabled and “Allow Flipping” is enabled I’ve got two serious issues on X11:

  • game (or X11) freeze on Alt+Tab or when other window (e.g. volume control) covers the full screen game,
  • triple-buffer doesn’t work (looks like driver ignores VkSwapchainCreateInfoKHR::minImageCount) - if framerate is lower than screen refresh rate (60 FPS) it is truncated to 30 FPS.

Both above issues doesn’t happen when “Allow Flipping” is disabled or when X11 compositor is enabled. Unfortunately playing with compositor enabled or with disabled “Allow Flipping” is less convenient and has lesss performance.

OpenGL applications doesn’t have such problems: I’ve got Option "TripleBuffer" "1" enabled in xorg.conf, “Allow Flipping” option also enabled and X11 compositor disabled - works as expected.

I have GeForce GTX 1080 and drivers 396.18.02 on Arch Linux.

I used the latest 396.24 vulkan on alt-tab system did not crash but the game is frozen.I repeat the process and system crashed again.

Hi,

For the alt-tab / focus issues, these should be fixed in 396.18.08 available here:

I am using 396.24 and still crashes with vulkan alt-tab. 396.18.08 is beta isn’t it?

396.18.08 is coming from our Vulkan side branch, which we release more frequently than our regular UDA drivers. 396.18.08 was released after 396.24.

Good thing that’s not confusing at all. I thought that my woes with 396.18-r1 were done when I saw an update to 396.24. I see that, according to https://devtalk.nvidia.com/default/topic/1033078/396-24-or-396-18-07-vulkan-what-is-newer-/?offset=2, there are fixes in both branches which have now diverged and there is a plan to re-merge “in the future”. Any ETA on that? Before I go overriding my system package for nvidia drivers, it would be nice to know if it’s worth it. I’m also a little confused how fixes don’t make it back into the mainline :/

They do, but as Damien mentioned, the fix was made in the Vulkan side branch and then integrated to the mainline after 396.24 was built.

I realize this is confusing, sorry.

is 396.24.02 alt-tab not totally fixed? alt-tab works now in Dawn of War 3 menu, but does not work anymore when after loaded a game

Does it crash even if you stop the compositor before starting the game / iwthout a compositor at all?

My experience is that it does (for Tomb Raider at least). Disabling the compositor seems to make the game (slightly) less likely to crash all by itself, but any switch away from the game (alt-tab, or change volume – which causes a screen overlay) causes the game to crash hard.

This problem does not exist at all in OpenGL, therefore it doesn’t matter if you disable compositor or not.

I Fail to understand your logic.
X11 fullscreen is different from a fullscreen under a compositor.

So i supposed that the redirect/unredirect action done by the opengl compositor was causing troubles.
Second, “Allow Flipping” (which enables opengl flipping) seems to mitigate the issue.

Now, given that running the vulkan fullscreen app under a compositor seems to workaround the issue, but introduces performance penalty, one may try to run a light compositor (kwin+xrender, compton+xrender or even try nvidia composition pipeline).