ValveSoftware / Proton

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

Hogwarts Legacy (990080) #6510

Open kzdixon opened 1 year ago

kzdixon commented 1 year ago

Compatibility Report

System Information

I confirm:

Proton Log (had to compress, took a bit to get it to crash but the incorrect shaders on close NPCs was consistently appearing the entire time): steam-990080.log.zip

Symptoms

Reference Pictures: ![2023-02-07-17:54:53-screenshot](https://user-images.githubusercontent.com/10300293/217394257-1d6d5da0-acde-4de9-80c3-1de4d9bb8bb1.png) ![2023-02-07-19:00:29-screenshot](https://user-images.githubusercontent.com/10300293/217394531-0bc0f156-1cc7-4c56-9ef0-1366132930c9.png) ![2023-02-07-19:00:36-screenshot](https://user-images.githubusercontent.com/10300293/217394544-0a0e42b2-b15d-4162-8ae6-8fd0b532b2a9.png)

Reproduction

Simply playing the game on a RX 7900 XTX with Proton using the latest stable driver release seems to result in this issue pretty regularly.

Severus157 commented 1 year ago

VK_ICD_FILENAMES is a colon separate list and the second entry is being parsed as /usr/share/vulkan/icd.d/radeon_icd.x86_64.json steam with the space not separating the noise at the end of the variable.

Hmm... Okay weird. Than it looks like the environment variable I used for being able to use the vulkan-radeon package is somehow wrong...

I've used the direct information from archwiki to set them and copied the variable completely.

Blisto91 commented 1 year ago

Do you need the other drivers? If you don't it's easier if they were just removed.

Severus157 commented 1 year ago

Do you need the other drivers? If you don't it's easier if they were just removed.

Had that mainly for better Performance on Star Citizen, when I played it. But I've just uninstalled amdvlk for testing, removed the Environment Variables and rebooted. Unfortunately still not working. Hogwarts Legacy doesn't want to start, not getting any Screen at all.

New SteamInformation

New Log: steam-990080.log

Vulkaninfo:

[svenja@svenja-arch ~]$ vulkaninfo --summary
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.240

Instance Extensions: count = 21
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_EXT_swapchain_colorspace            : extension revision 4
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6

Instance Layers: count = 8
--------------------------
VK_LAYER_AMD_switchable_graphics_32 AMD switchable graphics layer 1.3.235  version 1
VK_LAYER_INTEL_nullhw               INTEL NULL HW                 1.1.73   version 1
VK_LAYER_MESA_device_select         Linux device selection layer  1.3.211  version 1
VK_LAYER_MESA_overlay               Mesa Overlay layer            1.3.211  version 1
VK_LAYER_VALVE_steam_fossilize_32   Steam Pipeline Caching Layer  1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64   Steam Pipeline Caching Layer  1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32     Steam Overlay Layer           1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64     Steam Overlay Layer           1.3.207  version 1

Devices:
========
GPU0:
        apiVersion         = 1.3.238
        driverVersion      = 23.0.0
        vendorID           = 0x1002
        deviceID           = 0x731f
        deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
        deviceName         = AMD Radeon RX 5700 XT (RADV NAVI10)
        driverID           = DRIVER_ID_MESA_RADV
        driverName         = radv
        driverInfo         = Mesa 23.0.0
        conformanceVersion = 1.2.7.1
        deviceUUID         = 00000000-0b00-0000-0000-000000000000
        driverUUID         = 414d442d-4d45-5341-2d44-525600000000
YamiYukiSenpai commented 1 year ago

VK_ICD_FILENAMES is a colon separate list and the second entry is being parsed as /usr/share/vulkan/icd.d/radeon_icd.x86_64.json steam with the space not separating the noise at the end of the variable.

Hmm... Okay weird. Than it looks like the environment variable I used for being able to use the vulkan-radeon package is somehow wrong...

I've used the direct information from archwiki to set them and copied the variable completely.

You misunderstood the article. That was meant to launch Steam with RADV. When you declare the variable, you aren't supposed to put the "steam" part.

Severus157 commented 1 year ago

Replying to https://github.com/ValveSoftware/Proton/issues/6510#issuecomment-1484138599

Thanks. But I've completely removed the Variables now and even removed amdvlk. So shouldn't be an issue anymore.

Blisto91 commented 1 year ago

You still have 32bit amdvlk installed

Severus157 commented 1 year ago

You still have 32bit amdvlk installed

Damn... Forgotten that part. But even after uninstall and reboot, no change. Game will not start.

Thank you though.

SOlsson91 commented 1 year ago

Gist After playing Legacy on Steam deck for a while (Everything working fine) I'm back on my Linux Machine. However now and the last few days I only get the following message

2023-03-30-210404_543x170_scrot 2023-03-30-210409_451x425_scrot

What I have tried:

Thanks

kisak-valve commented 1 year ago

Hello @SOlsson91, since it's a codefusion support link, that hints that Denuvo Anti-Tamper was unable to phone home to activate the game.

machadoprx commented 1 year ago

@MichaelAllenHardeman I have been told that might be an esync "issue" (maybe not a issue with esync itself per say, but can trigger it when a low fd limit is set). You could try launching with PROTON_NO_ESYNC=1 %command% and see if that helps? CPU performance might decrease tho. People with kernel 5.16+ use fsync by default instead.

This solved my issue also on pop os 22.04, nvidia 3090 with driver version 530

urbenlegend commented 1 year ago

The new game patch today seems to have addressed a bunch of issues I had with raytracing. It no longer has any weird artifacts and the performance has improved.

Still needs that vm.max_map_count change though.

lfelipe commented 1 year ago

There is a wine patch that is needed in order to get the game to work with Anv (Intel's Vulkan driver on Linux): https://gitlab.winehq.org/wine/wine/-/commit/4fab9ff230f497499da223ade9bbe3633a657f05

Would like to request that this gets backported to Proton (or if Proton gets rebased to 8.6 release that should also include it) in order to unblock this.

According to the original bug report on Wine, it should also help with an Unreal Engine 5.1 demo (Matrix Awakens) and possibly other apps.

folknor commented 1 year ago

See also https://github.com/ValveSoftware/Proton/issues/2927#issuecomment-1537547199


mai 16 20:21:22 kthx kernel: umip_printk: 19 callbacks suppressed
mai 16 20:21:22 kthx kernel: umip: HogwartsLegacy.[32290] ip:152a000a3 sp:b9e3c8: SGDT instruction cannot be used by applications.
mai 16 20:21:22 kthx kernel: umip: HogwartsLegacy.[32290] ip:152a000a3 sp:b9e3c8: For now, expensive software emulation returns the result.
mai 16 20:21:31 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: SGDT instruction cannot be used by applications.
mai 16 20:21:31 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: For now, expensive software emulation returns the result.
mai 16 20:21:31 kthx kernel: umip: HogwartsLegacy.[32290] ip:152a000a3 sp:b9e3c8: SGDT instruction cannot be used by applications.
mai 16 20:22:48 kthx NetworkManager[1009]: <info>  [1684261368.6539] dhcp4 (enp5s0): state changed new lease, address=192.168.1.112
mai 16 20:24:24 kthx kernel: umip_printk: 29 callbacks suppressed
mai 16 20:24:24 kthx kernel: umip: HogwartsLegacy.[32290] ip:14f60b9a4 sp:b9e890: SGDT instruction cannot be used by applications.
mai 16 20:24:24 kthx kernel: umip: HogwartsLegacy.[32290] ip:14f60b9a4 sp:b9e890: For now, expensive software emulation returns the result.
mai 16 20:24:24 kthx kernel: umip: HogwartsLegacy.[32290] ip:152a000a3 sp:b9e3c8: SGDT instruction cannot be used by applications.
mai 16 20:24:24 kthx kernel: umip: HogwartsLegacy.[32290] ip:152a000a3 sp:b9e3c8: For now, expensive software emulation returns the result.
mai 16 20:24:40 kthx kernel: umip: HogwartsLegacy.[32290] ip:1593ff28d sp:b9d6d8: SGDT instruction cannot be used by applications.
mai 16 20:25:01 kthx CRON[33725]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
mai 16 20:25:01 kthx CRON[33726]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
mai 16 20:25:01 kthx CRON[33725]: pam_unix(cron:session): session closed for user root
mai 16 20:26:30 kthx kernel: umip_printk: 118 callbacks suppressed
mai 16 20:26:30 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: SGDT instruction cannot be used by applications.
mai 16 20:26:30 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: For now, expensive software emulation returns the result.
mai 16 20:26:31 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: SGDT instruction cannot be used by applications.
mai 16 20:26:31 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: For now, expensive software emulation returns the result.
mai 16 20:26:31 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: SGDT instruction cannot be used by applications.
mai 16 20:28:50 kthx kernel: umip_printk: 21 callbacks suppressed
mai 16 20:28:50 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: SGDT instruction cannot be used by applications.
mai 16 20:28:50 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: For now, expensive software emulation returns the result.
mai 16 20:29:04 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: SGDT instruction cannot be used by applications.
mai 16 20:29:04 kthx kernel: umip: HogwartsLegacy.[32290] ip:15766a9a1 sp:b9cc50: For now, expensive software emulation returns the result.
mai 16 20:29:04 kthx kernel: umip: HogwartsLegacy.[32290] ip:159456571 sp:b9ce78: SGDT instruction cannot be used by applications.

journal is absolutely spammed by this.

hjpaul7 commented 1 year ago

Game is currently crashing for me after the initial seziure warning message, with a dialog "Ran out of video memory".

Arch - 6.4.1 Nvidia 4090: 535.54.03 Proton Experimental

Proton log

bigkrp commented 1 year ago

Every time game crashed with error "out of video memory trying to allocate a rendering resource..."

zaps166 commented 1 year ago

Every time game crashed with error "out of video memory trying to allocate a rendering resource..."

I had this too: https://github.com/ValveSoftware/Proton/issues/6510#issuecomment-1445152064 It was random when I had this message (AMD Radeon here) or game was stable or AMD driver crashed.

YamiYukiSenpai commented 1 year ago

Replying to https://github.com/ValveSoftware/Proton/issues/6510#issuecomment-1427138732

I haven't touched the game in a while, but anyone else still gets this issue?

rowbawts commented 1 year ago

I'm playing it now with a 6950XT with no problems, but I am wondering if there's a way to get RT enabled currently its greyed out in the menu.

Blisto91 commented 1 year ago

VKD3D_CONFIG=dxr %command% if using mesa 23.2.0 (which doesn't have a stable release yet) or above. Below mesa 23.2.0 you will need a extra env var, but i recommend not trying that as the game will either crash (and maybe also on startup afterwards) or leak memory heavily. 23.2.0 and above should be fine afaik.

YamiYukiSenpai commented 1 year ago

I'm playing it now with a 6950XT with no problems

are you still using specific launch configs?

rowbawts commented 1 year ago

I'm playing it now with a 6950XT with no problems

are you still using specific launch configs?

Edit: I recently upgraded to this card I previously had a 6700XT and also had no problems playing it on there also with no configuration.

No, It's working out of the box as in I just installed it and hit play on Steam.

I'm running Flatpak Steam on Fedora Linux 37 (Silverblue) ![image](https://github.com/ValveSoftware/Proton/assets/13012832/bf80e91f-367c-49c3-986c-54bc9b81eaee)
System Info as reported by Steam: ``` Computer Information: Manufacturer: ASUSTeK COMPUTER INC. Model: TUF GAMING X570-PLUS (WI-FI) Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 7 5800X 8-Core Processor CPU Family: 0x19 CPU Model: 0x21 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 4850 MHz 16 logical processors 8 physical processors Hyper-threading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Supported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: Freedesktop.org SDK 22.08 (Flatpak runtime) (64 bit) Kernel Name: Linux Kernel Version: 6.4.12-100.fc37.x86_64 X Server Vendor: The X.Org Foundation X Server Release: 12201009 X Window Manager: GNOME Shell Steam Runtime Version: steam-runtime_0.20230606.51628 Video Card: Driver: AMD AMD Radeon RX 6950 XT (navi21, LLVM 15.0.7, DRM 3.52, 6.4.12-100.fc37.x86_64) Driver Version: 4.6 (Compatibility Profile) Mesa 23.1.4 (git-8b0202e4b4) OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 59 Hz VendorID: 0x1002 DeviceID: 0x73a5 Revision Not Detected Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 3840 x 2160 Desktop Resolution: 3840 x 2160 Primary Display Size: 23.62" x 13.39" (27.13" diag), 60.0cm x 34.0cm (68.9cm diag) Primary VRAM: 16384 MB Sound card: Audio device: USB Mixer Memory: RAM: 64194 Mb VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 952228 MB Largest Free Hard Disk Block: 119649 MB Storage: Number of SSDs: 2 SSD sizes: 1000G,512G Number of HDDs: 0 Number of removable drives: 0 ```
YamiYukiSenpai commented 1 year ago

No, It's working out of the box as in I just installed it and hit play on Steam.

Why was this needed: VKD3D_CONFIG=pipeline_library_app_cache?

zaps166 commented 1 year ago

Why was this needed: VKD3D_CONFIG=pipeline_library_app_cache?

To prevent two caches I guess (game has it's own cache). From docs:

VKD3D_CONFIG=pipeline_library_app_cache is an alternative to VKD3D_SHADER_CACHE_PATH=0 and can be automatically enabled based on app-profiles if relevant in the future if applications manage the caches better than vkd3d-proton can do automagically.

zaps166 commented 1 year ago

Ray tracing with Mesa 23.2.0 (69f5c51b2d2), RX 6900 XT, Proton-experimental:

Screenshot_20230904_212937

pixelcluster commented 1 year ago

@zaps166 Weird, I can't seem to reproduce this on my end. Do you encounter this right during the shader compilation at startup or somewhere else in the game? Also, do you have any special environment variables or launch options set besides VKD3D_CONFIG=dxr?

zaps166 commented 1 year ago

@pixelcluster Only VKD3D_CONFIG=dxr is set. It asserts when loading a map, menu is working. VKD3D_SHADER_CACHE_PATH=0 and/or deleting game shader cache doesn't make any difference.

Blisto91 commented 1 year ago

Could you post a Proton log where the crash happens?

pixelcluster commented 1 year ago

@zaps166 If you can get to the main menu, but not load into any game, I guess the crash might be specific to certain areas of the game. Which area are you in in the save that you're trying to load?

zaps166 commented 1 year ago

Right, depends on location. Newly created character is working.

I'm here: obraz

Logs (please remove .txt suffix): steam-990080.log.zst

zaps166 commented 1 year ago

New tests:

pixelcluster commented 1 year ago

I reproduced the issue, looking into it now. Thanks for reporting!

D1Ck3n commented 1 year ago

hey there, i cannot pass the Warning message at the beginning anymore. i was able to play the game for about 200h vua proton experimental but now steam completely crashed while trying to start the game: steam-990080.log

my system:

OS: Manjaro Linux x86_64 kernel: 6.5.1-1-MANJARO Resolution: 1920x1080, 2560x1440, 1920x1080 DE: GNOME 44.4 CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz GPU: AMD ATI Radeon RX 5700 XT Memory: 3775MiB / 64244MiB

kisak-valve commented 1 year ago

Hello @D1Ck3n, mesa 23.1.6 (specifically) has a memory leak that's been fixed with mesa 23.1.7. Please update your mesa install when that becomes available via the distro's normal update process and retest.

apcolvin commented 1 year ago

Hello @D1Ck3n, mesa 23.1.6 (specifically) has a memory leak that's been fixed with mesa 23.1.7. Please update your mesa install when that becomes available via the distro's normal update process and retest.

With mesa 23.1.6 I couldn't even load the game - stuck on warning screen. 23.1.7 fixed it for me and the versions prior to .6 worked fine also. I have an AMD RX5700XT for reference. So I agree ditch 23.1.6 as fast as possible

zaps166 commented 1 year ago

~1.5h gameplay, Proton-Experimental (experimental-8.0-20230907), Mesa 23.2 (cc3aad2a9fb761a242174f414a0b1e07b03e2b36), Kernel 6.5.2, RX 6900XT, full GPU reset - login screen:

[11272.163466] amdgpu 0000:03:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:5 pasid:32781, for process HogwartsLegacy. pid 37076 thread HogwartsLe:cs0 pid 37209)
[11272.163471] amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x00008000233fb000 from client 0x1b (UTCL2)
[11272.163473] amdgpu 0000:03:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00501430
[11272.163474] amdgpu 0000:03:00.0: amdgpu:      Faulty UTCL2 client ID: SQC (data) (0xa)
[11272.163475] amdgpu 0000:03:00.0: amdgpu:      MORE_FAULTS: 0x0
[11272.163476] amdgpu 0000:03:00.0: amdgpu:      WALKER_ERROR: 0x0
[11272.163476] amdgpu 0000:03:00.0: amdgpu:      PERMISSION_FAULTS: 0x3
[11272.163477] amdgpu 0000:03:00.0: amdgpu:      MAPPING_ERROR: 0x0
[11272.163477] amdgpu 0000:03:00.0: amdgpu:      RW: 0x0
[11282.319564] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=3648516, emitted seq=3648518
[11282.319738] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process HogwartsLegacy. pid 37076 thread HogwartsLe:cs0 pid 37209
11282.319875] amdgpu 0000:03:00.0: amdgpu: GPU reset begin!
[11282.610227] amdgpu 0000:03:00.0: amdgpu: MODE1 reset
[11282.610230] amdgpu 0000:03:00.0: amdgpu: GPU mode1 reset
[11282.610278] amdgpu 0000:03:00.0: amdgpu: GPU smu mode1 reset
[11283.136568] amdgpu 0000:03:00.0: amdgpu: GPU reset succeeded, trying to resume
[11283.136726] [drm] PCIE GART of 512M enabled (table at 0x0000008000300000).
[11283.136784] [drm] VRAM is lost due to GPU reset!
[11283.136792] [drm] PSP is resuming...
[11283.215962] [drm] reserve 0xa00000 from 0x83fd000000 for PSP TMR
[11283.352994] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[11283.352997] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[11283.352999] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x00000040, smu fw if version = 0x00000041, smu fw program = 0, version = 0x003a5800 (58.88.0)
[11283.353000] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[11283.353032] amdgpu 0000:03:00.0: amdgpu: use vbios provided pptable
[11283.428346] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[11283.429605] [drm] DMUB hardware initialized: version=0x0202001E
[11283.574387] [drm] kiq ring mec 2 pipe 1 q 0
[11283.581525] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[11283.582131] [drm] JPEG decode initialized successfully.
[11283.582150] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[11283.582151] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[11283.582152] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[11283.582152] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[11283.582152] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[11283.582153] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[11283.582153] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[11283.582154] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[11283.582154] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[11283.582154] amdgpu 0000:03:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[11283.582155] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[11283.582155] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[11283.582156] amdgpu 0000:03:00.0: amdgpu: ring sdma2 uses VM inv eng 14 on hub 0
[11283.582156] amdgpu 0000:03:00.0: amdgpu: ring sdma3 uses VM inv eng 15 on hub 0
[11283.582156] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[11283.582157] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[11283.582157] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[11283.582158] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec_1 uses VM inv eng 5 on hub 8
[11283.582158] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_1.0 uses VM inv eng 6 on hub 8
[11283.582158] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc_1.1 uses VM inv eng 7 on hub 8
[11283.582159] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 8 on hub 8
[11283.589481] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow start
[11283.618022] amdgpu 0000:03:00.0: amdgpu: recover vram bo from shadow done
[11283.618030] amdgpu 0000:03:00.0: amdgpu: GPU reset(2) succeeded!
Blisto91 commented 1 year ago

@zaps166 Hi there. Is this with or without Ray Tracing turned on?

zaps166 commented 1 year ago

@zaps166 Hi there. Is this with or without Ray Tracing turned on?

Hi! 2880x1620 with High/Ultra mixed settings without RT.

I don' think the pagefault is related to the unstable mesa, because I had this problem many times in the past on various kernel/mesa versions.

zaps166 commented 1 year ago

Today same after ~1.5h:

[ 9751.934956] amdgpu 0000:03:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:2 pasid:32783, for process HogwartsLegacy. pid 11363 thread HogwartsLe:cs0 pid 11491)
[ 9751.934963] amdgpu 0000:03:00.0: amdgpu:   in page starting at address 0x00008000227f7000 from client 0x1b (UTCL2)
[ 9751.934965] amdgpu 0000:03:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00201430
[ 9751.934966] amdgpu 0000:03:00.0: amdgpu:      Faulty UTCL2 client ID: SQC (data) (0xa)
[ 9751.934967] amdgpu 0000:03:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 9751.934968] amdgpu 0000:03:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 9751.934968] amdgpu 0000:03:00.0: amdgpu:      PERMISSION_FAULTS: 0x3
[ 9751.934969] amdgpu 0000:03:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 9751.934970] amdgpu 0000:03:00.0: amdgpu:      RW: 0x0
[ 9761.956618] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, but soft recovered

this time soft recovered and game crash after long freeze.

Is it vkd3d or game or mesa bug?

zaps166 commented 1 year ago

Today no amdgpu pagefault (kernel 6.5.3).


I found a strange regression in Proton 8 / Experimental: when I close game (Hogwarts Legacy or some other games) the mouse is grabbed into a game (I'm on Xorg) and I can't use mouse while game is closing (when window is already closed, but process is still running or when alt-tab while game is closing).

When game freezes, mouse is inaccessible and I have to kill process using keyboard to get the mouse back. This problem doesn't exist on Proton 7.0-6.

alasky17 commented 1 year ago

@zaps166 It is interesting that you are reporting this behavior on both Proton 8.0-3 and Experimental. I found a regression that behaves exactly like you are describing in experimental, but the blamed commit is only in experimental and I do not see the issue on 8.0-3 (or 8.0-4-rc). Could you please re-try Proton 8.0-3/4 to double check that you are seeing this on stable? Could you also please try this build and see if it fixes the issue? Build uploaded here: https://www.codeweavers.com/xfer/alasky/cursor-revert/ with lock code "revert". Thank you for the report!

zaps166 commented 1 year ago

@alasky17 Oops, maybe I checked different proton and I thought it's 8.0 :sweat_smile: My mistake, sorry. Proton 8.0-3 and 8.0-4-rc are OK.

I'm downloading the cursor-revert, but I noticed bleeding-edge returns cursor much earlier like experimental.

zaps166 commented 1 year ago

cursor-revert build was ok, but game started without my saves!

alasky17 commented 1 year ago

@zaps166 Thank you for testing! That is quite strange, as it should have been very similar to experimental-8.0-20230907. Hopefully you got them back? It sounds like you are indeed running into the same regression as me -- it is under investigation :)

zaps166 commented 1 year ago

That is quite strange, as it should have been very similar to experimental-8.0-20230907

Maybe it's random how long the cursor is grabbed after closing game, now tested and it was same as in proton-experimental. Sometimes cursor is back when process is closed, sometimes a bit earlier. Hard to test - let's say - it's the same :smile:

Hopefully you got them back

Yes, saves are back :smile:

zaps166 commented 1 year ago

@alasky17 Found another regression, affects many games, not only Hogwarts Legacy. When I disconnect or turn off the monitor and connect or turn on again, game freezes and needs to be killed. Happens to me on Proton-Experimental and Proton 8.0-3, but works properly on Proton 7.0-6. RADV driver, Xfwm4 and Openbox WMs. On Proton-Experimental on some games cursor is grabbed and I have to kill processes manually on keyboard, because can't click "Stop" on Steam (btw. when we can expect the cursor-revert fix in bleeding edge? :smile_cat: ?).

Logs (remove .txt suffix and unpack): steam-990080.log.zst.txt

kisak-valve commented 1 year ago

Hello @zaps166, these look like a couple lines of interest in your Proton log:

err:system:update_display_cache Driver reported devices, but we failed to read them.
err:system:update_display_cache Failed to read display config.

This is followed by EXCEPTION_INT_DIVIDE_BY_ZERO (c0000094).

zaps166 commented 1 year ago

@kisak-valve Hi, thanks for investigation!

D1Ck3n commented 1 year ago

Hello @D1Ck3n, mesa 23.1.6 (specifically) has a memory leak that's been fixed with mesa 23.1.7. Please update your mesa install when that becomes available via the distro's normal update process and retest.

Hi @kisak-valve , Version 23.1.7 was enrolled on my system and it fixed my issue! :) thanks for the tip!

zaps166 commented 12 months ago

@alasky17 This game sometimes doesn't ungrab cursor on game exit on proton-experimental/BE (it's random, need many attempts to run and quit to reproduce).

fiws commented 12 months ago

I can't get this game to run for more than a few hours.

8.0-4 segfault

[ 5424.258522] amdgpu 0000:2f:00.0: amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:1 pasid:32780, for process HogwartsLegacy. pid 30774 thread HogwartsLe:cs0 pid 30937)
[ 5424.258530] amdgpu 0000:2f:00.0: amdgpu:   in page starting at address 0x00008000244e2000 from client 0x1b (UTCL2)
[ 5424.258533] amdgpu 0000:2f:00.0: amdgpu: GCVM_L2_PROTECTION_FAULT_STATUS:0x00101430
[ 5424.258535] amdgpu 0000:2f:00.0: amdgpu:      Faulty UTCL2 client ID: SQC (data) (0xa)
[ 5424.258537] amdgpu 0000:2f:00.0: amdgpu:      MORE_FAULTS: 0x0
[ 5424.258538] amdgpu 0000:2f:00.0: amdgpu:      WALKER_ERROR: 0x0
[ 5424.258539] amdgpu 0000:2f:00.0: amdgpu:      PERMISSION_FAULTS: 0x3
[ 5424.258540] amdgpu 0000:2f:00.0: amdgpu:      MAPPING_ERROR: 0x0
[ 5424.258542] amdgpu 0000:2f:00.0: amdgpu:      RW: 0x0
[ 5434.356531] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx_0.0.0 timeout, signaled seq=1808632, emitted seq=1808634
[ 5434.356746] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* Process information: process HogwartsLegacy. pid 30774 thread HogwartsLe:cs0 pid 30937
[ 5434.356929] amdgpu 0000:2f:00.0: amdgpu: GPU reset begin!
[ 5434.600010] amdgpu 0000:2f:00.0: amdgpu: MODE1 reset
[ 5434.600014] amdgpu 0000:2f:00.0: amdgpu: GPU mode1 reset
[ 5434.600077] amdgpu 0000:2f:00.0: amdgpu: GPU smu mode1 reset
[ 5435.119945] amdgpu 0000:2f:00.0: amdgpu: GPU reset succeeded, trying to resume

gpu crash, had to reboot system. Recovery wasn't very clean. Got a lot of segfaults in other apps after it.

Specs

In short: Arch linux, wayland, RX6900, Ryzen 5950X, 64GiB Memory

Steam system info ``` Computer Information: Manufacturer: Micro-Star International Co., Ltd. Model: X570-A PRO (MS-7C37) Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 9 5950X 16-Core Processor CPU Family: 0x19 CPU Model: 0x21 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 5084 MHz 32 logical processors 16 physical processors Hyper-threading: Supported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Supported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Supported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: "Arch Linux" (64 bit) Kernel Name: Linux Kernel Version: 6.5.5-arch1-1 X Server Vendor: The X.Org Foundation X Server Release: 12302001 X Window Manager: GNOME Shell Steam Runtime Version: Video Card: Driver: AMD AMD Radeon RX 6900 XT (navi21, LLVM 16.0.6, DRM 3.54, 6.5.5-arch1-1) Driver Version: 4.6 (Compatibility Profile) Mesa 23.2.1-arch1.2 OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 59 Hz VendorID: 0x1002 DeviceID: 0x73bf Revision Not Detected Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 3840 x 2160 Desktop Resolution: 3840 x 2160 Primary Display Size: 24.02" x 13.78" (27.68" diag), 61.0cm x 35.0cm (70.3cm diag) Primary VRAM: 16384 MB Sound card: Audio device: USB Mixer Memory: RAM: 64222 Mb VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 938195 MB Largest Free Hard Disk Block: 20791 MB Storage: Number of SSDs: 4 SSD sizes: 1000G,1000G,1000G,240G Number of HDDs: 0 Number of removable drives: 0 ```