Proton icon indicating copy to clipboard operation
Proton copied to clipboard

Pathfinder: Wrath Of The Righteous - Enhanced Edition (1184370)

Open TheSHEEEP opened this issue 5 years ago • 33 comments

Compatibility Report

  • Name of the game with compatibility issues: Pathfinder: Wrath Of The Righteous
  • Steam AppID of the game: 1184370

System Information

  • GPU: GeForce GTX 1070
  • Driver/LLVM version: NVIDIA 470.63.01
  • Kernel version: 5.10.61-1
  • Proton version: Every version is affected (tried current, experimental, etc.)

Don't think that that any of these matter, though, as the bug(s) seem to affect everyone using Proton. Have yet to meet anyone using Proton who can proceed past the Drezen battle.

I confirm:

  • [X] that I haven't found an existing compatibility report for this game.
  • [X] that I have checked whether there are updates for my system available.

Symptoms

There are basically two problems: 1. Using Proton normally (no WINED3D options, etc.), the game runs fine for the most part. However, sometimes when loading the next map (and for some maps, this is guaranteed to happen, e.g. Drezen battle map happens at 88%) the loading just freezes. The game will now continue to fully occupy one CPU/thread until manually closed.

This behavior can be worked around by doing the following:

  • Launch the game with PROTON_USE_WINED3D=1 %command%
  • You’ll now be able to get past the map that didn’t load before.
  • The option seriously impacts performance and graphics quality, so leave the area you are in ASAP and go to some other map.
  • Save & quit the game.
  • Change the launch parameter to PROTON_USE_WINED3D=0 %command%.
  • Launch the game again - you’ll now be able to play normally.

However, using the WINED3D mode, besides seriously impacting graphics and performance, leads to another bug:

2. (only when using WINED3D mode) In very large maps with lots of entities (again, e.g. Drezen), the game becomes fully unplayable (not even 1 fps, it will simply refuse to render anything anymore) and something causes the game to basically occupy all CPU cores at 100% making it very difficult to even shut it down manually.

If you happen to hit both bugs at once (guaranteed freeze for normal Proton usage + guaranteed unplayable with WINED3D), it will become impossible to proceed.

This seems to be the case for the Drezen battle.

Obviously, the first problem is the one that should actually be tackled as solving that makes the workaround leading to problem two not required any more. Since it happens during loading, and since it ALWAYS happens at the same percentage, I can only suspect that it might be some kind of file that it tries to load on some maps, or that it tries to play some certain audio or video files, etc. which causes this.

Then again, the loading works just fine using PROTON_USE_WINED3D=1, which certainly doesn't change what files the game wants to load or play... who knows.

I'll try creating a proton log file from when this loading bug occurs and add that at a later point.

TheSHEEEP avatar Sep 11 '21 12:09 TheSHEEEP

Here is the proton log (forcefully closed the game a few seconds after it freezes at 88% loading):

steam-1184370.log

TheSHEEEP avatar Sep 11 '21 12:09 TheSHEEEP

I have encountered what I suspect is the same issue on a similar system but with an RTX 2080 and is intermittent (though can be repeatable when loading specific maps from specific game states). In my case, it acts a bit like it's crashing the video driver (both monitors freeze, unable to close the window or switch to another linux virtual console, but audio continues seemingly normally and the PC power switch shuts down the machine pretty much normally) but of course I'm by no means sure that's really what's happening.

ExpandingMan avatar Sep 12 '21 00:09 ExpandingMan

"Audio continues normally" is something I also found to be true. I suspect Unity has an extra thread for audio and whatever is the problem here, audio continues to play fine (and so does input, at least for me). So I would find it at least less likely that something related to audio is the culprit here.

TheSHEEEP avatar Sep 12 '21 05:09 TheSHEEEP

Probably worth retrying this with dxvk master, this commit https://github.com/doitsujin/dxvk/commit/de7fb51e6496a22a31907c9892e597426279f5ac might fix the freezes/hangs.

Oschowa avatar Sep 12 '21 09:09 Oschowa

Im pretty certain this is fixed with the current dxvk master (cause using it i do not have the issue anymore). You can get a build here: https://github.com/doitsujin/dxvk/actions/workflows/artifacts.yml?query=branch%3Amaster

You might have to replace the dlls under [steam]/steamapps/common/[your proton version]/lib(or lib64)/wine/dxvk/ or [steam]/compatibilitytools.d/[your proton version]/files/lib(or lib64)/wine/dxvk/ instead of installing it into the prefix cause proton replaces files.

mkalte666 avatar Sep 12 '21 12:09 mkalte666

Interesting. Definitely gonna give that a go when I run into that bug next time.

TheSHEEEP avatar Sep 12 '21 12:09 TheSHEEEP

I can confirm that https://github.com/doitsujin/dxvk/commit/de7fb51e6496a22a31907c9892e597426279f5ac fixes the loading issue.

RipleyTom avatar Sep 12 '21 14:09 RipleyTom

Seems to have done the trick for me as well.

TheSHEEEP avatar Sep 12 '21 17:09 TheSHEEEP

Replacing the dxvk dlls solved the issue for me too. On AMD Vega 64.

crabel avatar Sep 13 '21 19:09 crabel

I'm fairly new to Linux gaming, how do I apply the changes, Im seeing no new dll files in the fix. Did I download the wrong thing? I replaced protons experimental DLLS with the ones from the most stable release and still get the infinite 88% loading screen.

momokol avatar Sep 13 '21 19:09 momokol

@momokol https://github.com/doitsujin/dxvk/actions/runs/1226694632

Download the artifact from link above ( scroll down a little) then unzip it.

Then follow this comment.

https://github.com/ValveSoftware/Proton/issues/5150#issuecomment-917625085

Release build of DXVK doesn't have this commit so it is normal that didn't solve your issue.

Leopard1907 avatar Sep 13 '21 22:09 Leopard1907

For me, the path was slightly different, what I did was:

  1. Downloaded the artifact from the above link.
  2. I found the following paths: [base]/steamapps/common/Proton 6.3/dist/lib/wine/dxvk [base]/steamapps/common/Proton 6.3/dist/lib64/wine/dxvk
  3. Unpacked the artifact and copied the content of x32 into .../lib/wine dxvk and x64 into .../lib64/wine/dxvk

hth

crabel avatar Sep 14 '21 05:09 crabel

After the 1.0.3c patch today the game doesn't start for me at all. Can anyone confirm or deny?

folknor avatar Sep 14 '21 16:09 folknor

Works fine for me with 1.0.3c.

TheSHEEEP avatar Sep 14 '21 16:09 TheSHEEEP

I didn't get any of the freezes last night after the latest proton experimental was pushed to steam, including from a save state where it would always happen previous to that. I just loaded it for a second to see how it was on the 1.0.3c patch and it seems fine.

ExpandingMan avatar Sep 14 '21 17:09 ExpandingMan

OS: Debian Sid Kernel: 5.10.0-8-amd64 GPU: RX580 Mesa: 21.2.1-2 Proton: Experimental

Issues are mostly resolved. Certain maps/areas will have terrible frame rates. Zoning between areas sometimes clears it. The only way I know to resolve it 100% is to save in a good area, close/exit, and then relaunch and zone into the bad area. Probably not related to Proton?

I will generate some logs and edit this if theyre helpful

jake-hedges avatar Sep 14 '21 19:09 jake-hedges

Same experience as @ExpandingMan. I tried proton experimental today and was able to pass the level 3 Grey Garrison load screen from a save that had failed before. This was with patch 1.0.3c. The game did freeze later when I closed out of the level up screen for Seelah, but that could be a non-proton related bug.

moorepants avatar Sep 14 '21 20:09 moorepants

I think, the crash issue has been addressed, no issues since the fix. BUT there are still a few problems left, albeit more minor. I am giving a short description here, since I am not sure how this is handled here. Would it be better to open new issues?

  1. Alt-Tabbing out and back to game again sometimes leads to a black screen. Not always, just sometimes. Then I have to tab out again and kill the game since I can do nothing in it anymore.

  2. The game does not quit correctly. No idea why, but when you click "Return to desktop", the game continues to run. I experience two behaviors in that case: a) It drops to the desktop but the process is still running. b) The click is registered, the engine seems to shut down, but I stay on the game screen and can do nothing. I have to alt-tab out. Afterwards I have to click the "Stop" in Steam or kill it

  3. After stopping it, the Steam often validates 150/210 MB. No idea why it does that and what it does there. Maybe this behavior is normal. It just feels weird.

crabel avatar Sep 18 '21 15:09 crabel

Hello @crabel, on the Proton issue tracker, we're using one issue per unofficially supported game title. You're in the right place for feedback related to running Pathfinder: Wrath of the Righteous on Proton.

kisak-valve avatar Sep 18 '21 15:09 kisak-valve

@crabel 3rd issue is likely related to this. Currently Steam client downloads same shader caches over and over again, restarting client and booting then closing a game is sufficient to repro. It will download same amount of shader cache it downloaded previously.

https://github.com/ValveSoftware/steam-for-linux/issues/8076

Leopard1907 avatar Sep 18 '21 18:09 Leopard1907