ValveSoftware / Proton

Compatibility tool for Steam Play based on Wine and additional components
Other
23.86k stars 1.04k forks source link

PARTIALLY SOLVED Games crash without launching a window regardless of Proton version on X11(KDE), works fine on Wayland(Gnome) #6734

Open dxalp3 opened 1 year ago

dxalp3 commented 1 year ago

I have had this issue with wine overall before, but this time around happens only with Steam Proton. I'm running on a dual GPU(Nvidia/Intel) laptop with Pop!OS 22.04.

The terminal output: steamproton.txt EDIT: steam-1449850.log

What I've tried so far: 1.Reinstalling NVIDIA drivers

alperen@pop-os:~$ grep "X Driver" /var/log/Xorg.0.log [ 8.657] (II) NVIDIA dlloader X Driver 525.85.05 Sat Jan 14 00:47:44 UTC 2023

  1. Installing missing 32 bit dependencies

    alperen@pop-os:~$ cd ~/.steam/root/ubuntu12_32 alperen@pop-os:~/.steam/root/ubuntu12_32$ sudo apt install libnvidia--525:i386 mesa:i386 alperen@pop-os:~/.steam/root/ubuntu12_32$ file | grep ELF | cut -d: -f1 | LD_LIBRARY_PATH=. xargs ldd | grep 'not found' | sort | uniq alperen@pop-os:~$

3.Installing the repository and flatpak versions

xorg log: xorglog.txt

Steam System Info: systeminfo.txt

kisak-valve commented 1 year ago

Hello @dxalp3, please add PROTON_LOG=1 %command% to some affected game's launch options and attach the generated $HOME/steam-$APPID.log to this issue report as a file. (Proton logs compress well if needed.)

dxalp3 commented 1 year ago

steam-1449850.log

dxalp3 commented 1 year ago

from proton log:

16818.704:016c:0170:fixme:kernelbase:AppPolicyGetProcessTerminationMethod FFFFFFFFFFFFFFFA, 000000000011FEB0 16820.652:00d0:00d4:err:xrandr:xrandr14_get_adapters Failed to get adapters 16820.671:00d0:00d4:err:xrandr:xrandr14_get_adapters Failed to get adapters

from xorg log:

[ 802.377] (WW) NVIDIA(G0): Failed to set the display configuration [ 802.377] (WW) NVIDIA(G0): - Setting a mode on head 0 failed: Insufficient permissions [ 802.377] (WW) NVIDIA(G0): - Setting a mode on head 1 failed: Insufficient permissions [ 802.377] (WW) NVIDIA(G0): - Setting a mode on head 2 failed: Insufficient permissions [ 802.377] (WW) NVIDIA(G0): - Setting a mode on head 3 failed: Insufficient permissions

Ok so I inferred my xserver is unable to use my dedicated gpu for a second display(?), but tries to to (system76-power graphics prints nvidia). What I don't get it why it doesn't work specifically for steam proton (considering there are no missing 32 bit packages) and not other wine binaries, or even desktop, and specifically on X11. And my integrated graphics support vulkan anyway

My GPU driver has been automatically using my dedicated GPU for games up to this point (It's called prime render offload i think?) and updates occassionaly broke wine on x11, but reinstalling wine have fixed that. Is this an error on steam's end? Or kernel version maybe?

Edit: Tried enabling prime render offload because apparently my power profile was set to exclusively use nvidia, but it didn't work. I still get the same error log.

dxalp3 commented 1 year ago

I uninstalled and reinstalled wallpaper engine, and this kde plugin restored its cache. So the apps are working briefly, but cannot display and crash after a while. I'm out of ideas at this point

dxalp3 commented 1 year ago

EDIT: Inputting the launch command 'VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json %command%' worked. It also fixed the brief desktop stutter when launching wine on X11. But I don't want to have to do this for each game. How do I implement this globally?

kisak-valve commented 1 year ago

Hello @dxalp3, you've described the issue being tracked at https://github.com/ValveSoftware/steam-for-linux/issues/8179. Closing as a duplicate.

dxalp3 commented 1 year ago

Hello there, unfortunately the issue persists following the instructions on that thread.

jmfergeau commented 1 year ago

I confirm the problem. Using wayland fixes it for me (the irony knowing wayland works initially bad with nvidia). Any other program that uses wine (including unity-based stuff) without proton runs fine on X11.

Shivin302 commented 7 months ago

@dxalp3 I also had the wine related igpu optimus related "Application tried to create a window, but no driver could be loaded" issue. Your solution worked, and then I looked around to find out how to run proton without needing to add that command everytime. You can see all the vulkan devices using vulkaninfo | grep deviceName. I had Intel UHD integrated graphics, LLVM llvmpipe, and my NVIDIA GTX 2070. I deleted everything in /usr/share/vuikan/icd.d except the nvidia_icd.json (moved them to a backup folder actually). Now I can run games without needing to set VK_ICD_FILENAMES everytime