protonscr

[d3d8] Shadow Of Destiny/Memories crashes with dxvk

dxvkclosed d3d8
doitsujin/dxvk#4308 · opened 2024-09-30 by Blisto91 · updated 2024-10-08 · 7 comments · github
1 matching comments, n / p to jump
BBlisto91 2024-09-30 github

Note: The US version is named Shadow Of Destiny while the European version is named Shadow Of Memories

Game crashes with dxvk but not with wined3d. Game can be seen just starting to render (hud shows) before it happens.
A demo can be downloaded here https://www.gamepressure.com/download/shadow-of-memories-demo/z8897

Software information

Shadow Of Destiny

System information

  • GPU: RTX 4080
  • Driver: 550.40.71
  • Wine version: Wine 9.18 & Windows
  • DXVK version: master

Apitrace file(s)

https://drive.proton.me/urls/CAS1J72EBG#ckxEErAnquRj
Traces from Windows with and without dxvk

Log files

TBD if even useful

WWinterSnowfall 2024-09-30 github

The game crashes with dxvk after the first call to IDirect3DDevice8::CreateVertexShader(). In the native trace one can observe it's supposed to do a set of 4, however with dxvk it crashes in game code right after the first.

Haven't spotted anything odd yet, except maybe that we're returning a different handle than native. We return 1, whereas native returns 3. I've adjusted this for testing purposes and it still hasn't fixed the crash, so it's most likely something else.

WWinterSnowfall 2024-10-08 github

Fortunately this isn't a case of use after free. The game simply expects d3d8.dll to expose ValidatePixelShader and ValidateVertexShader. I've stubbed both of these recently and the game started to work. Currently fixed on master by 1689cacc.

I can fix this in classic d3d8to9 as well at some point. I should probably look into making d3d8 apitrace capture these calls as well.

WWinterSnowfall 2024-10-08 github

AF not functioning there, but functioning with NINE, sounds like kind of a DXVK's d3d9 bug too.

d3d9.samplerAnisotropy = 16 should work, as it does in other d3d8 games. I can't really play the original Mafia without it, otherwise it feels like someone smeared all the textures on my screen, so I get where you're coming from. Note that IIRC dxvk only applies it on textures which are filtered in the first place, so if the game doesn't do that at all... tough luck.

BBlisto91 2024-10-08 github

Closing issue as the original crash have been fixed.
For anything else a new one should be made.

BBlisto91 2024-10-08 github

Again. Never said anyone should delete comments.

Edit: Referring to a deleted comment

BBlisto91 2024-10-08 github

Please don't get personal. There is no need for that.

I want separate issues for separate problems so things are easier to follow.

WWinterSnowfall 2024-10-08 github

Why in the hell you want another bug for the same game

Because the title of this issue is: "Shadow Of Destiny/Memories crashes with dxvk". The problem has been addressed.

you are one very crazy small boy

I have it on good authority that Blisto is one very crazy big boy, not to mention a valued contributor to dxvk. Please keep civil. You don't go around insulting the hosts while you're on a visit, now do you?

DLLs