Proton icon indicating copy to clipboard operation
Proton copied to clipboard

Proton cant create new prefixes on Proton 8 and Experimental

Open jkrhu opened this issue 3 years ago • 75 comments

Hi!

For some reason Proton is unable to create new prefixes for installed games when using Proton 8 or Experimental. I've tested a few games and every one of them is stuck during the prefix creation. I can wait minutes with no activity. This is with Experimental

GameAction [AppID 311340, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
Proton: Upgrading prefix from None to 8.0-102 (/mnt/NVME2/Gry/SteamLibrary/steamapps/compatdata/311340/)
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely

This is with Proton 8.0-2

GameAction [AppID 311340, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
Proton: Upgrading prefix from None to 8.0-101 (/mnt/NVME2/Gry/SteamLibrary/steamapps/compatdata/311340/)
Proton: Error while copying to "/mnt/NVME2/Gry/SteamLibrary/steamapps/compatdata/311340/pfx/drive_c/windows/system32/d3d12core.dll": No such file or directory
Proton: Error while copying to "/mnt/NVME2/Gry/SteamLibrary/steamapps/compatdata/311340/pfx/drive_c/windows/syswow64/d3d12core.dll": No such file or directory
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely

The games will successfully create a Prefix when using the Proton 7.0-6. They will also successfully upgrade, if the prefix was created in an earlier version. Another major annoyance is that even after cancelling the operation and closing Steam, the process will relaunch itself in the background with a winedevice, install script evaluator and a few other processes. No matter how many times I kill them, they return and require a reboot. Without it I can't launch any other Steam game.

My specs:

Fedora Linux 38 (6.3.8-200.fc38.x86_64) Intel i5-10400 16GB RAM Nvidia RTX 3060 (535.54.03)

Steam PC System Information

jkrhu avatar Jun 18 '23 00:06 jkrhu

I can confirm having the same issue, but this is valid only for certain games.

For example:

  • Titanfall
  • Deep Rock Galactic both suffer from this issue, and as you have mentioned it's only happening if you run them the first time directly with Proton 8, that is not happening if you had previously successfully executed them with Proton 7 or prior.

Same issue is not present instead for such games like:

  • Orcs Must Die 3 Which works without any issues at first execution directly with Proton 8.

Important to say that I had none of these issues when running these games directly under Proton 8 on the Steam Deck,these are issues I have always had exclusively with regular Linux on my PC.

This was tested on both Fedora 38 and NixOS.

This issue I had created I just discovered actually being related to this specific problem and not to only Titanfall.

https://github.com/ValveSoftware/Proton/issues/4410#issuecomment-1586400051

plarpoon avatar Jun 19 '23 14:06 plarpoon

I would like to also point out that this problem is occurring only on the Steam client. I can still create new prefixes with new Wine and Proton versions from Bottles or Heroic Games Launcher. I would assume it's connected to some of the changes in the new client recently. I've been testing the beta some time ago and it was fine then, but not the more recent updates.

jkrhu avatar Jun 21 '23 12:06 jkrhu

I believe I may be having a similar issue. Recently I have been trying Next Fest demos and they have all been following a pattern where they will not launch with Proton 8 or Experimental (will say launching, running, then instantly close), will fail to actually run with Proton 7 (will get stuck at either launching or running), but will then work normally after switching back to 8. Using the Thronefall Demo as an example, this is what was output by PROTON_LOG=1 on the initial launch with Proton 8: https://pastebin.com/qxhibq0z When switching to Proton 7, this was the log output, with the last line I believe being caused by me clicking "Stop" in the Steam client: https://pastebin.com/nFqw9gCE

DownloadFreeloader avatar Jun 24 '23 03:06 DownloadFreeloader

Yes, that is 100% compatible with the same issues I was having too. Which sucks because I am not sure it will be an easy fix.

plarpoon avatar Jun 24 '23 11:06 plarpoon

Today after the SELinux policy update on Fedora 38, Proton 8 and Experimental started working for me again.

jkrhu avatar Jul 01 '23 17:07 jkrhu

Fedora 38 and still not working. Had to delete prefix made by Proton 8 (both Valve's and GE)/Experimental then launch the game with proton 7 or older to create prefix that actually launches the game. Proton log gives no information that would help since it fails to launch the game and despite steam detecting this state as in game

TheEpicNoobZilla avatar Jul 04 '23 18:07 TheEpicNoobZilla

I'm also suffering a similar issue on Arch Linux. The only difference seems to be that Proton 8.0 refuses to work at all - upgrading the prefix from Proton 7.0 doesn't work for me. It just hangs on "Launching" indefinitely. The various processes also won't terminate when stopping the game, shutting down Steam, or logging out - forcing me to reboot the system.

I had exactly the same log output as @jkrhu the other day, however with the new client update today I get more verbose output:

steamlog.txt

I also managed to get a Proton log today, indicating that it is at least trying to start the game process now:

steam-782330.log

@kisak-valve Can we get some eyes on this please? It's a pretty major issue. Like @jkrhu, I suspect this is caused by the new Steam client itself, as I had no issues with Proton 8.0-2 prior to the recent Steam client updates, nor have I ever had issues in the last 4 years I've been running this setup.

ralgar avatar Jul 12 '23 22:07 ralgar

I agree, this is definitely something major to look into. It's distro independent and seems to ubiquitously exist across all minor versions of Proton 8. As of now I had the issue in NixOS, Fedora 38, Fedora 39 and PopOS!

plarpoon avatar Jul 13 '23 07:07 plarpoon

For me the problem stopped occuring after recent updates. I have a hunch it might be driver dependent too. I was initially on 535, but had problems with screen tearing. Eventually rolled back to 530, I kinda left it since there was no development on the issue. There were a bunch of updates like SELinux and when I tried a fresh prefix, it started working again. What drivers are you running? Have you tried with 530? I think the 535 has massive issues. The shader cache is broken, it has screen tearing on Wayland etc.

jkrhu avatar Jul 13 '23 11:07 jkrhu

Is anyone who is experiencing this issue not on NVIDIA with 535 drivers? Someone who was experiencing something that sounded exactly like the issue described was able to narrow it down to the 535 drivers, and rolling back to 530 fixed the issue. @jkrhu it sounds like at least in your case, this was the problem?

alasky17 avatar Jul 18 '23 16:07 alasky17

Several of us have that issue on full AMD setups, so I am doubtful it is just a driver issue. Maybe some internal dependency.

plarpoon avatar Jul 18 '23 17:07 plarpoon

@Plarpoon Thank you. I saw your post a while ago and tested Deep Rock Galactic locally, and could not repro following your steps :( (also with an all AMD setup with Arch). To start with, could you copy your system info from your original comment on the Titanfall bug so that it is all in one place?

Then, there are a couple of things for you to try:

  1. Please update to Mesa 23.1.3 if you are still on 23.1.1.
  2. Please disable gamemode and manguhud entirely.
  3. If you are still getting failures with a fresh prefix for any/all of the games mentioned after completing these steps, could you please get a log using "PROTON_LOG=+vulkan %command%" for each failing game?

alasky17 avatar Jul 18 '23 18:07 alasky17

  1. I am running always on the latest package updates, I am sort of an update freak :)
  2. I did run without any parameter and it didn't change much unfortunately
  3. steam-548430.zip Deep Rock Galactic

I unfortunately don't have Titanfall 1 installed anymore as it was quite quick to complete and go to Titanfall 2. But I will post more updates whenever something shows up!

Thanks for the interest @alasky17, anything else you need just let me know and I will provide it. Even if it's boring to do, I just want to solve this issue!

P.S. For the DRG log I uploaded I had re-enabled gamemode, I did test it without before but it still didn't work!

plarpoon avatar Jul 18 '23 19:07 plarpoon

@Plarpoon This is indeed boring :P , but could you please get a couple more logs? 1) It would be useful to get a log with gamemode disabled, just on the off chance that there are two failures going on, and disabling gamemode changes the failure. 2) Could you get a log of the game launching correctly on Proton 7.0-6 for comparrison?

alasky17 avatar Jul 19 '23 12:07 alasky17

@alasky17

DRG - Proton 7.0-6 - No extra parameters the game without gamemode is a lag fest when all in Ultra, absolutely terrible performance, but playable.

DRG - Proton 8.0-2 - No extra parameters unlike the version with 7.0-6 that has virtually no loading screen as they are extremely fast, the one with 8.0-2 actually takes approximately one entire minute after which it crashes to desktop (never managing to give me an actual playable character). After that for another minute Steam thinks I am actually still in-game despite the game being already crashed, it's only after this extra time that the option to "Play" the game comes available again! (so the process remains open despite the crash for some time)

These are the launch settings I used image

plarpoon avatar Jul 19 '23 14:07 plarpoon

@Plarpoon I think I'm a bit confused - I read your comment "both suffer from this issue, and as you have mentioned it's only happening if you run them the first time directly with Proton 8, that is not happening if you had previously successfully executed them with Proton 7 or prior." and took that to mean that the game was failing to launch when the prefix was created on Proton 8.0-x but the game works when the prefix is created on Proton 7.0-x and then upgraded. Does creating the prefix on Proton 7.0-6 and then upgrading fix this issue with DRG? Also, it sounds like the failure happens after a window is created?

alasky17 avatar Jul 19 '23 14:07 alasky17

@alasky17 That's the odd thing, Titanfall 1 that I don't have installed anymore used to behave that way. If you created the symlinks with proton 7 then run it with 8 it would work, DRG on the other hand it works only with Proton 7.

And yes, I confirm that, the failure in Proton 8 happens well after the window is created. There is first a splashscreen and then a loading screen, in that loading screen it dies. On Titanfall it wouldn't even boot instead.

plarpoon avatar Jul 19 '23 14:07 plarpoon

I was also unable to reproduce any Deep Rock Galactic launch issues, but I can reproduce the Titanfall problem, so it seems like those are separate issues. Titanfall Proton log after a successful launch is absolutely massive, though.

  • Kernel: 6.4.3-arch1-2
  • GPU: RX 7600
  • Driver: 23.1.3

runar-work avatar Jul 19 '23 14:07 runar-work

@Plarpoon It sounds like we should move the Deep Rock Galactic issue back to https://github.com/ValveSoftware/Proton/issues/284 because it is a game-specific issue, not a general problem, and it is not related to creating the prefix on Proton 7 vs Proton 8. Could you please write a comment there with your system specs, the current behavior on Proton 7 and Proton 8, and the logs you collected without gamemode or manghud to make this easier to follow?

alasky17 avatar Jul 19 '23 15:07 alasky17

I decided to test Monster Hunter Rise installation again, just to be absolutely certain it wasn't the same problem, and it turns out I get the same crash in the prefix installation even after I've switched to an AMD GPU. I just need to have the Nvidia driver installed, and the prefix installation will still fail with the same crash in libnvidia-glcore.so.535.54.03. After removing the driver and rebooting, it installed normally again.

For a brief while I could no longer reproduce the Titanfall issue. I deleted the prefix and it still launched normally with Proton 8.0. Now it's back to failing again. I collected various logs, mostly failures to launch and one from a successful 8.0 launch. The Proton log easily reaches 500 MB before the game even launces, so I just shut down the game via the Steam UI once it launched to keep it a bit shorter.

Titanfall_launch_issues.zip

runar-work avatar Jul 19 '23 17:07 runar-work