doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
12.95k stars 832 forks source link

[d3d9, regression] Myst V freeze/crash upon resolution change #4052

Closed Blisto91 closed 2 months ago

Blisto91 commented 4 months ago

When attempting to change resolution in Myst V the game will error "initializing your video card" and then freeze until you restart the game Bisected to start with either 52ac271acba015ddc9bf35604656615f228a67bb, 8f740c53b4be564e1a8857f1e09e41e31dd7a681 or b8d36eeaccdbe1196a0183c8d2bbeb9e9d463e6f. Two commits had to be skipped since the game wouldn't start with them.

d3d9.countLosableResources = False works around the issue.

Software information

Myst V

System information

Apitrace file(s)

https://drive.proton.me/urls/Y3Y418SP34#esWLnSJGvH9E

Log files

steam-208110.log

K0bin commented 3 months ago

This looks like a game bug. Replaying the apitrace with native D3D9 fails the reset call just like DXVK does.

Blisto91 commented 3 months ago

Checking the game on Windows it doesn't crash natively, but it does still crash with dxvk there. It seems like apitrace itself might not like the event where it switches resolution as even a native captured trace will crash in that spot when replayed on Windows

K0bin commented 2 months ago

An apitrace made with the Nvidia D3D9 driver on Windows also fails when replaying it with the very same Nvidia D3D9 driver on Windows. Same issue as DXVK. So I guess we should just disable the losable counting for the game...

Blisto91 commented 2 months ago

Worked around via https://github.com/doitsujin/dxvk/pull/4051