protonscr

[D3D9] Silent Hill 2 crash to desktop

dxvkclosed needs feedbackd3d9can't reproduce
doitsujin/dxvk#1422 · opened 2020-02-09 by KuraiShidosha · updated 2026-04-16 · 16 comments · github
KKuraiShidosha 2020-02-09 github

In a specific room in Silent Hill 2, pausing the game triggers a crash to desktop with DXVK, presumably because of a specific shader only present in this room. The rest of the game can be played fine with DXVK without issue.

System information

  • GPU: GTX 1080 Ti
  • Driver: 442.19
  • DXVK version: v1.5.4-5-g4291bc9

Apitrace file(s)

http://www.mediafire.com/file/mfe0lvah08md7vg/sh2pc.zip/file

Log files

Mmisyltoad 2020-02-09 github

I can't replicate the crash on AMD or NV using that trace. Can you provide a save file at all?

KKuraiShidosha 2020-02-09 github

Sure here's the save (structure is ".\Silent Hill 2\data\save" and in case you have your own saves move your Folder01 to desktop temporarily: https://www.mediafire.com/file/x26n64wcllwx2v4/save.rar/file

I doubt it's relevant since apitrace should have covered the bases but this is SH2 using the enhanced edition comminity fixes, not a native and vanilla install of the game. I am pretty sure that should be irrelevant since apitrace d3d9.dll is not conflicting with any mods so the game ran as expected when saving that trace.

KKuraiShidosha 2020-02-16 github

Update:
Crash does not occur when the game is running in windowed mode. Only in exclusive fullscreen.

KKuraiShidosha 2021-06-27 github

Now Silent Hill 2 crashes if DXVK is installed at all. Here's the log file: https://drive.google.com/file/d/1UNipf8l4c313EafRacF5JsgPJmSp877G/view?usp=sharing

The final line seems to be of importance:
warn: D3D9DeviceEx::SetRenderState: Unhandled render state D3DRS_ADAPTIVETESS_Y

KK0bin maintainer 2021-06-27 github

Seems to miss format converter support for D3DFMT_W11V11U10 = 65, which is missing for the docs here: https://docs.microsoft.com/en-us/windows/win32/direct3d9/d3dformat
but listed in the Win CE one: https://docs.microsoft.com/en-us/previous-versions/ms886236(v=msdn.10)

KK0bin maintainer 2022-08-31 github

I've installed the game, the enhanced edition mod and your save game. Which room is it thats supposed to crash?

The only thing that's noticable to me is the extremely overdone film grain and the utterly terrible performance.

KKuraiShidosha 2022-08-31 github

Are you sure you configured the game to run in exclusive fullscreen instead of borderless windowed mode? If you're on Linux, it's possible that Linux doesn't have such a mode so it doesn't make a difference.

KK0bin maintainer 2022-08-31 github

There isn't even a fullscreen option:

image

KKuraiShidosha 2022-08-31 github

It's in the d3d8.ini that comes with Enhanced Edition.

Regardless of that setting (borderless windowed or exclusive fullscreen) the game crashes on bootup for me so that option doesn't even matter anymore. I just tested it and it crashes with the same error log as before about this:

warn: ConvertFormat: Unknown format encountered: 65
warn: ConvertFormat: Unknown format encountered: 65
warn: ConvertFormat: Unknown format encountered: 65
warn: ConvertFormat: Unknown format encountered: 65
warn: D3D9DeviceEx::SetRenderState: Unhandled render state 181

To be clear I'm on Windows. It looks like you're testing on Linux.

KK0bin maintainer 2022-08-31 github

If it crashes on Windows but works on Linux, the issue is most likely out of our control anyway.

The game seems to work fine without support for that specific texture format and render state 181 is pretty meaningless.

AAlpyneDreams 2023-02-01 github

For what it's worth, render state 181 (t. D3DRS_ADAPTIVETESS_Y): sh2ee appears to be trying to disable or enable transparency SSAA.

Not sure if NVIDIA drivers actually respond to this as I would not expect it to be done this way.

Mmirh 2023-02-21 github

That comes from https://github.com/elishacloud/Silent-Hill-2-Enhancements/commit/79357608c84b83b4b3f0ab081b02d5f6c8356449.
And from the wording it seems like they are "accommodating to SSAA being enabled", as opposed to enabling themselves the effect in the first place (in turn, presumably to fix https://github.com/elishacloud/Silent-Hill-2-Enhancements/issues/227).

BBlisto91 2025-06-24 github

@KuraiShidosha What is the status of this issue today?

KKuraiShidosha 2025-06-24 github

Unable to test at this very moment (PC is in pieces, never get into water cooling) but as soon as I get it up and running I will try again. I'll also have to rollback my drivers as all 32 bit games crash with DXVK on Nvidia 50 series using driver branch 576.

KK0bin maintainer 2025-06-24 github

The 32bit crash is already fixed or at least it should be fixed by the time your PC is back up running. Nvidia has acknowledged the issue and is working on it.

KKuraiShidosha 2026-04-16 github

I apologize for the long delay but I just remembered this issue and tested it. The crash no longer occurs anymore. This issue can be closed.

I'm guessing it was some quirk at the time of SH2EE and DXVK that was corrected on one side or the other over the long period of time between when this issue was created to today.

DLLs