[SOLVED] Starting Wine Steam crashes Desktop Environment

Good day,

I’ll get right to it: After I launch Wine Steam (via a game or the play button on the side bar in Lutris) it pops up the login screen after it updating or downloading an update and then crashes my desktop environment. I’ve tried to look in the X-session errors but can’t find anything, dmesg doesn’t show anything promising and looking through logs elsewhere just ends up nowhere.

If I were to reinstall Wine Steam fresh (with reboot etc) It launches once, and then reverts back to crashing.

So I come to you here, I don’t know where I need to look or what I’m missing. If you need any logs from specific places or want me to try something, I’m taking pretty much all suggestions.

  • Farcrada

Quick update: I tried: lutris > lutris_log.log and this is the output it gave me:

2019-05-08 23:45:42,107: Running Lutris 0.5.2
2019-05-08 23:45:42,107: Using X.Org
2019-05-08 23:45:42,107: Running Mesa driver 19.0.1 on AMD Radeon (TM) R9 380 Series (TONGA, DRM 3.23.0, 4.15.0-48-generic, LLVM 8.0.0) (0x6939)
2019-05-08 23:45:42,107: GPU: [SNIP] using amdgpu drivers
2019-05-08 23:45:42,108: GPU: [SNIP] using i915 drivers
2019-05-08 23:45:42,125: Vulkan is supported
2019-05-08 23:45:42,125: Updating DXVK versions
2019-05-08 23:45:45,268: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/dxgi with DXVK version
2019-05-08 23:45:45,269: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d11 with DXVK version
2019-05-08 23:45:45,269: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d10core with DXVK version
2019-05-08 23:45:45,269: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d10_1 with DXVK version
2019-05-08 23:45:45,270: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d10 with DXVK version
2019-05-08 23:45:45,270: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d9 with DXVK version
2019-05-08 23:45:45,270: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/dxgi with DXVK version
2019-05-08 23:45:45,270: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d11 with DXVK version
2019-05-08 23:45:45,271: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d10core with DXVK version
2019-05-08 23:45:45,271: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d10_1 with DXVK version
2019-05-08 23:45:45,271: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d10 with DXVK version
2019-05-08 23:45:45,271: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d9 with DXVK version
Running /home/farcrada/.local/share/lutris/runners/wine/tkg-protonified-4.6-x86_64/bin/wine /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/Program Files (x86)/Steam/Steam.exe -no-cef-sandbox -console
wine: cannot find L"C:\\Program Files (x86)\\Steam\\bin\\cef\\cef.winxp\\steamwebhelper.exe"
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 247 requests (247 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 14 requests (14 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 264 requests (264 known processed) with 0 events remaining.

Any other game I install works (given it’s not Wine Steam) and has superb performance. So I don’t know what’s going on apart from X crashing.

What’s your distributive? Did you install mesa driver for i965? Do you have a non-Intel videocard?
Have you tried disabling DXVK and/or discrete graphics?

I have a dedicated AMD GPU, I’m running Linux Mint 19.1, and I’ve tried both of those. Ended up disabling “Discrete graphics” but that results in being unable to generate a working picture in Dying Light (but does start) and Arma 3 doesn’t start at all.

I am unsure as to how to download the i965 drivers, but I’d rather use my dedicated (not integrated). Again: All other Lutris games work, only this one crashes the desktop environment.

The issue here, I believe, that it tries to load AMD driver, fails, falls back to Intel and fails that as well. Which results in a crash of the X server.

Does glxinfo produce OpenGL data for your AMD driver? Does vulkaninfo work as well?

Which one?

glxinfo and vulkaninfo both work (although I had to install vulkan-utils for the latter), but I’m not sure what I’m looking for, browsing through it I did find this:

Vulkan Instance Version: 1.1.70

ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
INTEL-MESA: warning: Haswell Vulkan support is incomplete

League of Legends runs, but I have to use the DG2Voodoo or it simply won’t start (now that I think about it, mightn’t have worked because of these issues). Anything Battle.Net related works (by simply using the Battle.Net install page): Overwatch, Diablo 3, Starcraft 2.

I had uninstalled everything seen as I didn’t play or the installs were so outdated I might as well just do the whole thing over.

Starcraft 2

Oh! I just tried to reconfirm if it had actually stopped working in the mean time, and it had. It quits on me like Wine Steam does. Weirdly enough it doesn’t for Overwatch. This is the lutris > lutris.log for Battle.Net when launching Starcraft 2.

Running /home/farcrada/.local/share/lutris/runners/wine/tkg-4.0-x86_64/bin/wine /mnt/HDD_Small/WineGames/Battle.Net/drive_c/Program Files (x86)/Battle.net/Battle.net.exe
[0511/111050.991:ERROR:network_change_notifier_win.cc(157)] WSALookupServiceBegin failed with: 8
[0511/111051.034:ERROR:gpu_process_transport_factory.cc(1031)] Lost UI shared context.
INTEL-MESA: warning: Haswell Vulkan support is incomplete
INTEL-MESA: warning: Haswell Vulkan support is incomplete
INTEL-MESA: warning: Haswell Vulkan support is incomplete
INTEL-MESA: warning: Haswell Vulkan support is incomplete
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
info:  Game: Battle.net.exe
info:  DXVK: v1.1.1
warn:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_KHR_get_physical_device_properties2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
INTEL-MESA: warning: Haswell Vulkan support is incomplete
info:  AMD RADV TONGA (LLVM 8.0.0):
info:    Driver: 19.0.1
info:    Vulkan: 1.1.90
info:    Memory Heap[0]: 
info:      Size: 3840 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:    Memory Heap[1]: 
info:      Size: 256 MiB
info:      Flags: 0x1
info:      Memory Type[2]: Property Flags = 0x7
info:    Memory Heap[2]: 
info:      Size: 4096 MiB
info:      Flags: 0x0
info:      Memory Type[1]: Property Flags = 0x6
info:      Memory Type[3]: Property Flags = 0xe
info:  Intel(R) Haswell Desktop:
info:    Driver: 19.0.1
info:    Vulkan: 1.1.96
info:    Memory Heap[0]: 
info:      Size: 1536 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0xf
info:  D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_1
info:  D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_1
info:  Enabled device extensions:
info:    VK_EXT_conditional_rendering
info:    VK_EXT_shader_viewport_index_layer
info:    VK_EXT_transform_feedback
info:    VK_EXT_vertex_attribute_divisor
info:    VK_KHR_dedicated_allocation
info:    VK_KHR_descriptor_update_template
info:    VK_KHR_driver_properties
info:    VK_KHR_get_memory_requirements2
info:    VK_KHR_image_format_list
info:    VK_KHR_maintenance1
info:    VK_KHR_maintenance2
info:    VK_KHR_sampler_mirror_clamp_to_edge
info:    VK_KHR_shader_draw_parameters
info:    VK_KHR_swapchain
info:  DXVK: Read 23 valid state cache entries
info:  DXVK: Using 4 compiler threads
warn:  DXGI: VK_FORMAT_D24_UNORM_S8_UINT -> VK_FORMAT_D32_SFLOAT_S8_UINT
warn:  D3D11DeviceContext::QueryInterface: Unknown interface query
warn:  b4e3c01d-e79e-4637-91b2-510e9f4c9b8f
err:   DXGI: CheckInterfaceSupport: Unsupported interface
err:   54ec77fa-1377-44e6-8c32-88fd5f44c84c
warn:  D3D11Device::GetDeviceRemovedReason: Stub
err:   D3D11DXGIResource::GetSharedHandle: Stub
warn:  D3D11Texture2D::QueryInterface: Unknown interface query
warn:  9d8e1289-d7b3-465f-8126-250e349af85d
info:  Presenter: Actual swap chain properties:
  Format:       VK_FORMAT_B8G8R8A8_UNORM
  Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
  Buffer size:  104x1
  Image count:  2
warn:  DXGI: MakeWindowAssociation: Ignoring flags
warn:  D3D11Texture2D::QueryInterface: Unknown interface query
warn:  9d8e1289-d7b3-465f-8126-250e349af85d
err:   D3D11DXGIResource::GetSharedHandle: Stub
warn:  D3D11Texture2D::QueryInterface: Unknown interface query
warn:  9d8e1289-d7b3-465f-8126-250e349af85d
info:  Presenter: Actual swap chain properties:
  Format:       VK_FORMAT_B8G8R8A8_UNORM
  Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
  Buffer size:  1200x750
  Image count:  2
warn:  DXGI: MakeWindowAssociation: Ignoring flags
[SNIP]
    More mumbo jumbo, This is a new one though ^
[SNIP]
info:  Presenter: Actual swap chain properties:
  Format:       VK_FORMAT_B8G8R8A8_UNORM
  Present mode: VK_PRESENT_MODE_FIFO_KHR
  Buffer size:  1200x750
  Image count:  3
[0511/111055.951:ERROR:mf_helpers.cc(14)] Error in dxva_video_decode_accelerator_win.cc on line 379
[SNIP]
    More mumbo jumbo
[SNIP]
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
INTEL-MESA: warning: Haswell Vulkan support is incomplete
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 516 requests (516 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 777 requests (777 known processed) with 0 events remaining.

I have tried The Witcher 3 (GOG version) as well and that runs with no problems (although there’s a mouse border issue, but I suspect that’s easily solved).

…Can you try DRI_PRIME=1 glxinfo | grep "OpenGL renderer"?
If it fails, does sudo help (DRI_PRIME=1 sudo glxinfo | grep "OpenGL renderer")?
…Also, does DRI_PRIME=1 change anything in vulkaninfo output?

~$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
OpenGL renderer string: Mesa DRI Intel(R) Haswell Desktop

Oh. I figure there’s a way to change that to my AMDGPU?

For vulkaninfo it doesn’t change anything (or you’re looking for something specific, but grep "OpenGL renderer" doesn’t provide anything (regardless of DRI_PRIME=1)).

DRI_PRIME is a variable that triggers activation of the discrete card usage (in fact, I believe this is exactly what “Use discrete graphics” option in Lutris uses). Which clearly fails, so glxinfo has to fall back to Intel driver instead.

vulkaninfo doesn’t have the same output format so there’s no point in grepping for he same string; what I was asking for is for you to check if you can spot any difference in outputs (actually you can just direct output of both runs into text files and run diff on them if you don’t want to look for differences by hand).

The most likely problem you have is one with your drivers. Best case, you just don’t have correct driver for your GPU installed (if you’re on a binary distributive, drivers for different cards are provided as separate packages). Another possibility is that you need to pass some parameter to a kernel in Grub config (though I don’t know of any related to such an issue), or that you need to load some module (done with sudo modprobe, permanent config depends on distributive… although for the life of me I can’t guess what that module could be).

Personally, I haven’t managed to make it work on my system (either X server won’t display anything from the start or if it does then any call with DRI_PRIME freezes X display for good… come to think of it these things might be related) as NVidia has closed-source drivers, but at least I can use primusrun instead (it’s a different approach to use hybrid graphics and somehow it appears to work for me). vulkaninfo fails with or without primusrun for me, but that’s probably because for some reason only Radeon driver configs were installed with vulkan-tools…

Running a diff on the two outputs of vulkaninfo returns null so that’s empty.

Would you have any idea as to whether or not reinstalling drivers would work? Because maybe it’s got a service or something that had gotten turned off or removed by an update. I’ve been thinking about jumping ship onto another Distro to see what’s what (though I’ve kinda made myself a home now and don’t really feel like throwing the brick into the glass casings just yet).

I’ll see if I can get something working. Thank you very much for the help so far.

Oh hang on; hadn’t tried that yet:

~$ DRI_PRIME=1 sudo glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD Radeon (TM) R9 380 Series (TONGA, DRM 3.23.0, 4.15.0-48-generic, LLVM 8.0.0)

Has it got something to do with Lutris not running in su? And thus not ebing able to boot Wine Steam with the correct GPU? But that’s weird because Witcher 3 and Overwatch run A-Ok. The new exp. version of LoL finally reaches above 100FPS (300 even) too, but they don’t run in su

Any ideas?

Well, running sudo lutris simply puts me at:

wine: /home/farcrada/.local/share/lutris/runners/winesteam/prefix64 is not owned by you
Waiting on children
Exit with returncode 1

Worth a try.

…Don’t run sudo lutris.
Sudo is literally running stuff with as root, you don’t want to do that with GUI programs. Actually, it’s better to minimize what you run with root privileges.

In this case, DRI_PRIME working with sudo means that your user doesn’t have access to something vital. In my experience, that could be either a file (some /dev files may be spawned without proper access rights, thus usable only by root) or a group (that is, either your user has to be in a specific group, like video or something, or a file is meant to be accessed via group ownership). I couldn’t find anything relevant on this so far, aside from some guy finding a stray .drirc file, removing it and suddenly finding that everything works now.

…Another possibility which I just thought of is that your cards actually have switched priorities (that is, AMD is primary and Intel is secondary), in which case “enabling discrete card” will actually invoke a switch to the integrated one (and the error messages are because PRIME doesn’t support Intel or something).

If you have a binary distributive then I suspect that reinstalling drivers would be just replacing files with copies of themselves, thus being pointless. My suggestions was more in the line of “check if specifically the relevant driver packages are installed”.

That did it. Saw I wasn’t in the video group via groups, so I added myself to the video group (i.e.: sudo usermod -aG video farcrada), reboot, check again with groups. And when I run glxinfo | grep "OpenGL renderer" I get:

OpenGL renderer string: AMD Radeon (TM) R9 380 Series (TONGA, DRM 3.23.0, 4.15.0-48-generic, LLVM 8.0.0)

Now Wine Steam launches even if I have Discrete Graphics on, with DXVK and the lot. Thank you very much!

Ok I’ve had the time to test Starcraft 2 again, but it still crashes with similar errors:

libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
INTEL-MESA: warning: Haswell Vulkan support is incomplete
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 512 requests (512 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 337 requests (337 known processed) with 0 events remaining.
      after 78 requests (78 known processed) with 0 events remaining.

I tried (even though you said it wouldn’t work) reinstalling the libGL packages, but to no avail. I also tried Modern Warfare 2 Multiplayer and that also crashes the desktop environment with this log:

2019-05-12 20:38:21,698: Running Lutris 0.5.2
2019-05-12 20:38:21,699: Using X.Org
2019-05-12 20:38:21,699: Running Mesa driver 19.0.1 on AMD Radeon (TM) R9 380 Series (TONGA, DRM 3.23.0, 4.15.0-48-generic, LLVM 8.0.0) (0x6939)
2019-05-12 20:38:21,699: GPU: [SNIP] using amdgpu drivers
2019-05-12 20:38:21,699: GPU: [SNIP] using i915 drivers
2019-05-12 20:38:21,716: Vulkan is supported
2019-05-12 20:38:21,717: Updating DXVK versions
2019-05-12 20:38:24,083: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/dxgi with DXVK version
2019-05-12 20:38:24,084: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d11 with DXVK version
2019-05-12 20:38:24,084: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d10core with DXVK version
2019-05-12 20:38:24,086: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d10_1 with DXVK version
2019-05-12 20:38:24,086: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d10 with DXVK version
2019-05-12 20:38:24,087: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/system32/d3d9 with DXVK version
2019-05-12 20:38:24,087: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/dxgi with DXVK version
2019-05-12 20:38:24,088: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d11 with DXVK version
2019-05-12 20:38:24,088: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d10core with DXVK version
2019-05-12 20:38:24,089: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d10_1 with DXVK version
2019-05-12 20:38:24,089: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d10 with DXVK version
2019-05-12 20:38:24,090: Replacing /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/windows/syswow64/d3d9 with DXVK version
Running /home/farcrada/.local/share/lutris/runners/wine/tkg-protonified-4.6-x86_64/bin/wine /home/farcrada/.local/share/lutris/runners/winesteam/prefix64/drive_c/Program Files (x86)/Steam/Steam.exe -no-cef-sandbox -console
wine: cannot find L"C:\\Program Files (x86)\\Steam\\bin\\cef\\cef.win7x64\\steamwebhelper.exe"
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965
\src\common\html\chrome_ipc_client.cpp (763) : Assertion Failed: Failed to connect to master html process, created shared memory (spawn time 61.18)
libGL error: Different GPU, but blitImage not implemented for this driver
libGL error: failed to load driver: i965

Seems like the core issue isn’t resolved yet, although we did find out that adding myself to the video group at least remedies the problem.

Did you run it with “discrete graphics” on or off?

Turned it all off and it all works now. Is this (considering Dying Light showed artefacts across the board previously) because it finds the correct GPU by standard now (meaning “Discrete Graphics” shouldn’t have to be on “on”)?

Man I can’t believe I missed that option. Sometimes the simplest solution works best. Once again: Thank you very much.

As I mentioned earlier, that option isn’t actually “switching on discrete GPU”, but “switching from default GPU to secondary”. So in the cases where Intel is the secondary one it’s the one being turned on.