Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ELEX II (900040) #5670

Open
2 of 6 tasks
ziabice opened this issue Mar 12, 2022 · 37 comments
Open
2 of 6 tasks

ELEX II (900040) #5670

ziabice opened this issue Mar 12, 2022 · 37 comments
Labels
AMD RADV Possible driver issues with RADV Game compatibility - Unofficial Games not expected to work without issues Mesa drivers Possibly involves an issue with a Mesa video driver Regression Confirmed working on an older version of Proton

Comments

@ziabice
Copy link

ziabice commented Mar 12, 2022

Whitelist Request

  • Name of the game to be whitelisted: ELEX II
  • Steam AppID of the game: 900040

System Information

  • GPU: RX 580 4 Gb
  • Driver/LLVM version: Mesa 21.3.7/13.0.1
  • Distro version: Manjaro
  • Link to full system information report as Gist: my system information
  • Proton version: 7.0-1

I confirm:

  • that pressing the Play button in the Steam client is sufficient.
  • that runtime config options are necessary to run the game.
  • that no workarounds other than PROTON_* env variables are necessary.

Issues

  • I haven't experienced any issues.
  • There are no issues left open for this game.
  • Although I consider the gaming experience equal to Windows there are remaining issues:

I played right now 14 hours without a problem. The game has poor graphic performance, but this problem affects Windows users too.

Currently I'm playing at a 1440p resolution but with 50% scaled rendering and high graphic detail.

@kisak-valve kisak-valve added the Whitelist Request Community tested games to be whitelisted in Steam label Mar 12, 2022
@DSLinuxUser
Copy link

Not so fast.
Game runs fine so far, but every 5-10 seconds the game stutters immensely.
Log from Proton attached.
Mangohud didn't show any spikes, only drops in FPS.
steam-900040.log

@kisak-valve
Copy link
Member

Hello @DSLinuxUser, info: Driver: 2.0.216 in your log hints that you're using AMDVLK. Can you test how the game behaves with mesa/RADV as well?

@DSLinuxUser
Copy link

DSLinuxUser commented Mar 12, 2022

Wow, I am such a dumbass.
AMDVLK was active and I thought I used Mesa all time.
Must have forgotten about it after some tinkering one day.

Not perfect, but with Mesa the stutters are way less, next to nothing.
Thank you very much @kisak-valve .

@ziabice
Copy link
Author

ziabice commented Mar 13, 2022

The game stutters even on Windows, as reported by some reviews. Even the the Steam Community hub has lots of discussions on performance problems.

@DSLinuxUser
Copy link

DSLinuxUser commented Mar 13, 2022

Yes and no.
The code itself is not top notch and way too resource hungry,
but it can be played smoothly.
But with AMDVLK it was next to unplayable, with Mesa it runs
pretty smooth, like 99,9%.

@kisak-valve
Copy link
Member

Elex 2 crashes after proton update 7.0-1 to 7.0-2

Issue transferred from #5788.
@crone66 posted on 2022-04-23T21:09:21:

Compatibility Report

  • Name of the game with compatibility issues: Elex 2
  • Steam AppID of the game: 900040

System Information

Steam Deck with everything up to date

  • Proton version: 7.0-2 (worked flawlessly with 7.0-1)

I confirm:

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

https://gist.github.com/crone66/abfaf9bb06f83c654551b6ff00846022

Symptoms

Game Crashs after splash screen

Reproduction

Start the game :)

@kisak-valve kisak-valve added Game compatibility - Unofficial Games not expected to work without issues and removed Whitelist Request Community tested games to be whitelisted in Steam labels Apr 23, 2022
@kisak-valve kisak-valve added the Regression Confirmed working on an older version of Proton label Apr 23, 2022
@ivyl
Copy link
Collaborator

ivyl commented Apr 26, 2022

@crone66 hi, there's an access violation happening somewhere that we are unable to reproduce locally. It's even hard to tell where does it happen. Address suggests it's some unix .so.

Can you reproduce the crash but before the process actually dies provide the contents of /proc/$PID/maps + the log from that session? That would help to narrow things down using mapped addresses.

If that proves too hard you can download Proton build from https://www.codeweavers.com/xfer/ahiler/log-so-addr/ (password: log-so-addr), extract the contained directory in $HOME/.steam/root/compatiblitytools.d/, restart Steam, go to game's properties -> compatibility and select log-so-addr. After that if you can capture log with PROTON_LOG=+module %command% that would be great.

@crone66
Copy link

crone66 commented Apr 26, 2022

@ivyl Hi, I used your proton build, the log can be found here: https://gist.github.com/crone66/18a70e451f0508db0c520df0e6e6a7ca

I hope it can help you to solve the issue.

In the meantime I used ge-proton7-1 as a workaround via protonup-qt. It would be great if previous proton version aren't removed from steam immediately after an update.

@ivyl
Copy link
Collaborator

ivyl commented Apr 27, 2022

@crone66 thank you for the logs! Can you capture another one using 7.0-2 with PROTON_LOG=+vulkan? It looks like it crashes somewhere in the Vulkan driver a few calls down from winevulkan.dll that's used by DXVK's DirectX11 implementation.

Also I have two build for you to try, one which reverts the few winevulkan changes we had since 7.0-1 and one that downgrades DXVK to the version that was used in 7.0-1. Those are available in the same place: https://www.codeweavers.com/xfer/ahiler/log-so-addr/ (password: log-so-addr). Is any one of those helping with your crash?

Just making sure, you are launching the game in the game mode, not the desktop mode, right? I've tried to reproduce this by starting the game with 7.0-1b + a fresh prefix and then with 7.0-2 but I had no luck.

As of 7.0-1, you can find it in my personal archive https://f002.backblazeb2.com/file/ivyl-proton-archive/index.html. Sadly currently there's no easy way of keeping it available in the selection UI but I'm considering keeping it on a beta branch of 7.0.

@crone66
Copy link

crone66 commented Apr 27, 2022

@ivyl I was not 100% if I created the log in game mode, therefore I created a new one with your log-so-addr build with +module: https://gist.github.com/crone66/02875c0b464c8961dc15eff2a45f783d

I also created the requested log with the default proton7.0-2 build with +vulkan: https://gist.github.com/crone66/ebdf6e6f88805f9c1f15f7afe79aef3c

Sadly I wasn't able to create the log for the other two proton builds because the download speed is just around 6KB/s for some reason. I will try again tomorrow.

@ivyl
Copy link
Collaborator

ivyl commented Apr 28, 2022

@crone66 hi, that was helpful. Thanks for your patience! We really have no other way debugging this than asking you for help as it cannot be reproduced locally.

Looks like it crashes during vkCreateGraphicsPipelines():

6843.061:0138:0170:trace:vulkan:wine_vkCreateGraphicsPipelines 0x7effe7e0, 0x7ed83a60, 1, 0x64df1b0, (nil), 0x64dec88
6843.061:0138:0170:trace:seh:dispatch_exception code=c0000005 flags=0 addr=00007F21DD3F1786 ip=00007F21DD3F1786 tid=0170
6843.061:0138:0170:warn:seh:dispatch_exception EXCEPTION_ACCESS_VIOLATION exception (code=c0000005) raised

I've added another build to the same place with a revert of ValveSoftware/wine@1cd7b16 which touched the offending function, but it still feels like a long shot. The change should be fairly safe and it seems to not be causing problems elsewhere...

@crone66
Copy link

crone66 commented Apr 28, 2022

@ivyl no problem I'm glad that I can help you to solve the problem. I tested your builds the results are as follows.

Revert-direct-call-functions: works
Revert-dxvk-bump: crashs
Revert-winevulkan-changes: works

For both working builds my old savegames from my proton 7.0-1/ge-proton7.0-1 sessions are missing for some reason but I was able to create new savegames.

The game received an update today which doesn't seem to have any effects regarding the crash behavior I tested your builds before and after the update.

@ivyl
Copy link
Collaborator

ivyl commented Apr 29, 2022

@crone66 ok, so now we know which exact commit caused the problem for you which is great news. Bad news is that it's widely used, doesn't cause any pains elsewhere and it's kinda important because some drivers don't like having limited stack space they would have without it and those would just crash.

The crash happens somewhere withing the Vulkan driver stack (one of the layers or mesa) and debugging that remotely via back-and-forth would be hard, but there's a few more things we can try out :-)

You can try moving $HOME/.steam/root/steamapps/compatdata/900040 so you have saves backed up somewhere else and try to start the game with 7.0-2. I doubt this will affect anything but having a fresh prefix is a good first step.

Then we can look into shader caches, as the call in questions may be affected by them. Can you move $HOME/.steam/root/steamapps/shadercache/900040 somewhere and try with 7.0-2?

The last thing to try out would be moving $HOME/.cache/mesa_shader_cache.

If any of those steps helps it would be great if you could pack the directory that caused the problems (the copied backup) and share it with me in hope that I be able to repro locally.

@crone66
Copy link

crone66 commented Apr 29, 2022

@ivyl deleting the shader cache did the trick after that the game didn't want to start at all but rebooting the steam deck solved that. The first exit also didn't work and I had force quit the game but every other try so far worked flawlessly.

The backed up shadercache can be found here:
https://1drv.ms/u/s!AkEMgSEYjPAAt3syjj9dpHQal7he?e=Et5ASL

I hope that helps you to figure out what was wrong.
Thank you for all your work on trying to solve the issue.

@hakzsam
Copy link

hakzsam commented May 4, 2022

@crone66 Would be to able to confirm that it doesn't crash with the following steps?

  1. remove existing steamapps/shadercache/900040 dir
  2. unzip your backup archive
  3. remove steamapps/shadercache/900040/DXVK_state_cache
  4. launch the game

Thanks!

@crone66
Copy link

crone66 commented May 5, 2022

@hakzsam I can confirm that deleting the directory fixed the problem for my backup.

@hakzsam
Copy link

hakzsam commented May 6, 2022

@crone66 Thanks for confirming. We actually don't know how this happened, your DXVK cache seems completely corrupted... Is ELEX II the only game that is affected on your side?

@crone66
Copy link

crone66 commented May 8, 2022

@hakzsam I tested multiple games that I've already started on the steamdeck before the proton 7.0-2 update. All of them run without issues, therefore only Elex 2 seems to be affected.

@hakzsam
Copy link

hakzsam commented May 9, 2022

@crone66 Good to know. Are you able to reproduce this issue with Elex 2 after removing the DXVK cache ie. does it always happen?

@kisak-valve
Copy link
Member

Elex II - DirectX 12 version

Issue transferred from #6331.
@Xenophobe-01 posted on 2022-11-21T18:26:15:

Compatibility Report

  • Elex II - DirectX 12 mode
  • Steam AppID 9000040

System Information

I confirm:

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

Symptoms

There is an odd fireball glitch that only occurs using the DX12 version of the game in Linux. This glitch does not occur with the DX12 version in windows. I'm submitting this report on the chance that this issue is caused by DX12 calls being converted to Vulkan.

Reproduction

Start game in DX12 mode and play until you get to first meeting with Caya (does not take long to get there) and enter into dialog. Here's a link to a Youtube clip of what I'm experiencing. https://www.youtube.com/watch?v=Yx2AA0L9lcY
steam-900040.log

@kisak-valve kisak-valve added Mesa drivers Possibly involves an issue with a Mesa video driver AMD RADV Possible driver issues with RADV labels Nov 21, 2022
@Xenophobe-01
Copy link

Additional tests:
I just tried it with the new Proton Next 7.0-5 and the issue persists, it also occurs with the GE-Proton7-41 version.

No issues under the DX11 version of the game on linux, aside from the horrible fps that also plagues the windows version of the game.

@Xenophobe-01
Copy link

Just tested with Proton Next 7.0-6, Proton Experimental, Proton Hotfix and GEproton7-47 ... issue persists and seems to be getting worse.
System changes below:
Driver/LLVM version: PPA 22.2.5-kisak-mesa
Linux Mint 21.1, Kernel version: 5.15.0-58

@Xenophobe-01
Copy link

Just tested with proton 8.0-2 and experimental ... issue persists.

System changes below:
Driver/LLVM version: stock mesa 22.2.5
Linux Mint 21.1, Kernel version: 5.15.0-71

@mbriar
Copy link

mbriar commented May 10, 2023

@Xenophobe-01 can you try with updated drivers? Mesa 22.2.5 is pretty old and not getting any bug fixes anymore.

@Xenophobe-01
Copy link

Xenophobe-01 commented May 10, 2023

@mbriar ... I just tested with ppa:kisak/turtle 22.3.7 and with ppa:kisak/kisak-mesa 23.0.3 ... same result with both of the fireball storm in DX12 mode but great fps, no firestorm in DX11 mode with trash fps.

edit: I also deleted the shader cache in /steamapps/shadercache/900040 to let it regenerate a clean cache, as well as the proton prefix so it was freshly generated too.

@HomerSp
Copy link

HomerSp commented May 11, 2023

Same issue here with the "fireballs" using mesa 23.0.3, though it's happened on earlier versions too. I've also tried different proton versions like 7.0, 8 and experimental to no avail.
Info:
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon RX 5700 XT (navi10, LLVM 15.0.7, DRM 3.52, 6.3.0-x64v1-xanmod1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.0.3 - kisak-mesa PPA
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

UPDATE: Also happens on mesa 23.2.0 (development version) and 22.2.5.

@Blisto91
Copy link

Blisto91 commented May 11, 2023

Are any special settings needed for this to happen? I've been unable to reproduce on my rdna3 with either mesa 23.0.2 or git from yesterday. Tested Proton 7, 8 and BE while poking at a few ingame settings.

Installing on Steam Deck to check it out there too.

@Xenophobe-01
Copy link

@Blisto91 no special settings I'm aware of. fullscreen only,1080p, vsync on, 60fps, everything in-game on high setting.

@HomerSp
Copy link

HomerSp commented May 11, 2023

Are any special settings needed for this to happen? I've been unable to reproduce on my rdna3 with either mesa 23.0.2 or git from yesterday. Tested Proton 7, 8 and BE while poking at a few ingame settings.

Installing on Steam Deck to check it out there too.

Thanks for checking! I have everything on the highest settings with resolution 1440p@144hz (also tried 1080p@60hz) and fullscreen only. I've also tried with the lowest settings, and the issue still remains unfortunately.
For me it seems a bit random, sometimes it happens almost immediately upon loading the save, and other times it takes a couple of minutes. I've found that changing the render range option makes the fireballs go away, but only temporarily.

@Blisto91
Copy link

Strange. I've tried a bit on Deck now too. Played the cutscene a bunch of times and ran around in the camp for a while but still haven't triggered it.

@Xenophobe-01
Copy link

@Blisto91 Linux Mint is still using X11, I'm not sure if the deck is on Wayland or not ... is your pc distro on X11 or Wayland?

Also, the fireball storm glitch only seems to trigger when entering into conversation with an npc, Caja or even Adam Dawkins has triggered it.

@mbriar
Copy link

mbriar commented May 11, 2023 via email

@Blisto91
Copy link

Blisto91 commented May 11, 2023

I can quickly boot in to X11, but i'm also 99.99% sure that won't do anything as mbriar pointed out.

The only thing i see in common here, besides it being AMD Rdna 1 & 2 GPU's so far, is that you both are using Kisak ppa drivers. I'm on a Arch based distro myself, but i'm not really thinking it should affect it.

@Xenophobe-01
Copy link

I can quickly boot in to X11, but i'm also 99.99% sure that won't do anything as mbriar pointed out.

The only thing i see in common here, besides it being AMD Rdna 1 & 2 GPU's so far, is that you both are using Kisak ppa drivers. I'm on a Arch based distro myself, but i'm not really thinking it should affect it.

also does it with the stock mesa driver 22.2.5 which is the latest on mint. HomerSP said it happens with mesa 23.2.0 (development version) too.

@Blisto91
Copy link

Ye realized afterwards

@mbriar
Copy link

mbriar commented May 11, 2023

I tried this now as well and can't reproduce it either, played for an hour and ran the cutscene from the video 6 times. 6700XT, both a week old mesa-git and even amdgpu-pro work fine (and on x11).

@Xenophobe-01
Copy link

I just tried it with a Manjaro KDE live USB (fully updated, mesa 23.0.2 ) and the exact same thing happened ... no idea what's causing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AMD RADV Possible driver issues with RADV Game compatibility - Unofficial Games not expected to work without issues Mesa drivers Possibly involves an issue with a Mesa video driver Regression Confirmed working on an older version of Proton
Projects
None yet
Development

No branches or pull requests

10 participants