HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.82k stars 190 forks source link

Cyberpunk 2077 Xid 31 #1510

Open valgusk opened 1 year ago

valgusk commented 1 year ago

Before and after #1507 fix was available, game reliably freezes with Xid 31 ACCESS_TYPE_VIRT_READ. Having RT/Esync/Fsync Off can delay the issue, but ultimately the freeze is guaranteed. Before considerably increasing vm.max_map_count it happened much faster, at times instantly after start of gameplay. Now it can survive up to a couple of minutes of gameplay. Also tried older driver version (520.xx), but it only made matters worse.

Software information

Cyberpunk 2077, DLSS Enabled, PT Enabled

System information

Log files

journalctl steam-1091500.log vkd3d.log ulimits sysctl -a Steam system info

noobynoobs73 commented 1 year ago

Got this issue as well, with a RTX 2070. Did you find a workaround soluiton ? Freese appears within seconds of starting playing.

valgusk commented 1 year ago

Got this issue as well, with a RTX 2070. Did you find a workaround soluiton ? Freese appears within seconds of starting playing.

@noobynoobs73
Sorry, but no, as of now the only workaround I know is to use Windows. I finished the game already on the older version, when it worked, but if you didn't, keep in mind that Windows also has at least 2x better performance. In VKD3D-Proton I get sub-10 fps, while on native D3D I get 20-30fps with PT 1080p and DLSS, so mostly playable.

noobynoobs73 commented 1 year ago

Got this issue as well, with a RTX 2070. Did you find a workaround soluiton ? Freese appears within seconds of starting playing.

@noobynoobs73 Sorry, but no, as of now the only workaround I know is to use Windows. I finished the game already on the older version, when it worked, but if you didn't, keep in mind that Windows also has at least 2x better performance. In VKD3D-Proton I get sub-10 fps, while on native D3D I get 20-30fps with PT 1080p and DLSS, so mostly playable.

I already finished the game several times. And I'm not about to come back to windows anytime. I'll say goodbye to johnny and spare the money for the DLC, no issue. Thanks anyway, have fun !

VeilSilence commented 1 year ago

535 beta nvidia fixed some Xid errors.

runar-work commented 1 year ago

When I first looked into it, the freezes happened randomly after a few minutes of playing, as described. Unfortunately, the breadcrumb traces were completely random too, with different shaders and such indicated every time, so no luck there.

Then I did some more testing last week and got consistent freezes when loading autosaves in the nomad mission, after heading out in the car and before reaching Night City. It happens when the loading progress bar reaches around 60%. Same Xid too. The four breadcrumb traces I got are more consistent here, so hopefully a bit more useful than the first case.

NVRM: Xid (PCI:0000:08:00): 31, pid=11922, name=GameThread, Ch 000000ee, intr 00000000. MMU Fault: ENGINE GRAPHICS GPCCLIENT_GCC faulted @ 0x38b0_00000000. Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ

cyberpunk_Xid31_logs.zip cyberpunk_autosave_border_crossing.zip

runar-work commented 1 year ago

Hm, doesn't seem to be entirely the same issue. I tested with 530 and the autosave loads fine, so this is an added regression.

xpander69 commented 1 year ago

with 525.47.27 (vulkan beta) and proton-experimental (and BE) i had both xid31 and xid109 within 10-20 min of playing. switched to 535.54.03 and played 4 hours in a row without any issues. autosaves and stuff load also fine, but i already finished the game starting as nomad with one of the previous patches (1.61) playthrough, so i cant confirm if that side has some issues. Currently on Corpo run. GPU: RTX 3080

edit: played ~9 hours now in total without any issues. So i guess 535.54.03 have fixed the issue?!

chrishewlings commented 1 year ago

Still throws Xid 31 and freezes within ~30 seconds of starting gameplay here with Fedora 37, RTX 2070S, driver version 535.54.03, Proton Experimental.

xpander69 commented 1 year ago

Still throws Xid 31 and freezes within ~30 seconds of starting gameplay here with Fedora 37, RTX 2070S, driver version 535.54.03, Proton Experimental.

Very strange. Im 50 hours in now with zero Xid's . Been working without any problems for me on Arch Linux, RTX 3080, 535.54.03, proton-experimental.

chrishewlings commented 1 year ago

Update: switched back from Proton Experimental -> Proton GE 7.55 and now it seems to have resolved the crash.

Dahipppo1555 commented 1 year ago

Well nothing helped. CP77 ver 1.63 VKD3D 2.9 Nvidia 535-86-05

and still getting Xid 31

HamilcarR commented 1 year ago

Update: switched back from Proton Experimental -> Proton GE 7.55 and now it seems to have resolved the crash.

I did the same and that's what I thought , but if you play longer , there will definitely be a crash. Yesterday I had a very long session of 2 hours , but it still ended up with a crash.

Edit : I think the problem concerns RTX 20xx cards. On protonDB , those who have this issue have a 20xx

kongwak commented 1 year ago

I too have this issue in Cyperpunk 2077 v1.62 and 1.63:

Xid (PCI:0000:01:00): 31, pid=19964, name=GameThread, Ch 0000003e, intr 00000000. MMU Fault: ENGINE GRAPHICS GPCCLIENT_GCC faulted @ 0xffff8570_00000000. Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ

The game always freezes usually with in 10mins, though one it ran for an hour.

The issue persists in all versions of proton from 7.0.6 to 8.0.3 and proton experimental. It also occurs in ge-proton 7.55 and 8.11. It is present with nvidia drivers up to 535.98 and and also 525.125.

I am using Ubuntu 22.04 with an Nvidia RTX2070 super .

I did find this long running thread on the Nvidia forum that pertains to various Xid error including Xid 31.

https://forums.developer.nvidia.com/t/multiple-cuda-rtx-vulkan-application-crashing-with-xid-13-109-errors/235459

and also this which refers back to this thread and gives an internal Nvidia job reference:

https://forums.developer.nvidia.com/t/cyberpunk-2077-1-62-1-63-crashes/260799

StevenPartridge commented 1 year ago

Same issue on Garuda Lixux, 2080 Super, 535.104.05, game version 1.63. Various lengths of time between crashes, and additional issues with smoke rendering very blocky.

The theory that this is effecting 20 series cards seems to hold water.

Blisto91 commented 1 year ago

@StevenPartridge Hi there. If you suspect the blocky smoke rendering might be a vkd3d-proton issue could I get you to open a new issue? Remember to include a screenshot and graphical settings used if important.

HamilcarR commented 1 year ago

The blocky smoke or the display of triangles artifacts like these : cbpk-2077 Screenshot_20230721_015345 Screenshot_20230721_020626

For me was caused by proton version or proton ge versions , and sometimes also by drivers version. I don't know if it has anything to do with the Xid 31 , but for me this problem came at the same time I think .

Blisto91 commented 1 year ago

@HamilcarR does this blocky effect still happen on latest Proton Experimental or GE?

HamilcarR commented 1 year ago

@Blisto91 I havent played the game in a bit , but last time with the latest proton exp , it was gone , then it came back , I updated the driver , and it was gone again.

StevenPartridge commented 1 year ago

@HamilcarR does this blocky effect still happen on latest Proton Experimental or GE?

Not happening on latest Proton Experimental for me. Must be unrelated, thanks for helping to discern that

TarsiSurdi commented 12 months ago

The blocky smoke or the display of triangles artifacts like these : cbpk-2077 Screenshot_20230721_015345 Screenshot_20230721_020626

For me was caused by proton version or proton ge versions , and sometimes also by drivers version. I don't know if it has anything to do with the Xid 31 , but for me this problem came at the same time I think .

I've had these graphical issues in the past, but the latest NVIDIA drivers (535.104.05) or Proton Experimental seemed to have fixed it. However, I still experience the intermittent crashes being discussed in this thread.

System Specs: R5 2600X, RTX 2060 6GB, 16 DDR4-2666 - Fedora Workstation 38

cpw commented 11 months ago

Saw a link to this issue from the nvidia forums. https://github.com/ValveSoftware/Proton/issues/4450#issuecomment-1738013994 - it seems that this is related to DLSS and any driver more recent than 510.108.03. The problem in cyberpunk seems to be related specifically to the on screen call UI element, in my experience - as soon as the game tries to show one, it locks up on any NVIDIA version where DLSS is possible.

extract commented 11 months ago

NVIDIA is looking into this again. Let's hope they find it.

https://forums.developer.nvidia.com/t/cyberpunk-2077-1-62-1-63-crashes/260799/29 (3rd of October)

From my experience the best way to reproduce this is to fast travel a lot. I have no problems regarding any UI elements causing this exact crash though. Seems anecdotal (but so does the fast travel thing I suppose).

If anyone know a persistent method to reproduce it consistently, without any mods etc... then you can add it into the NVIDIA thread linked.

haraldkrischner commented 10 months ago

As I also mentioned here, 545.23.06 seems to have finally fixed that Xid 31 error, at least I am playing for 3 hours straight! 🎉 Also this bug I had is gone! 🎉 🎉