doitsujin / dxvk

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

DXVK suddenly causing game to be run as background process rather than app. #3858

Closed 909990999900 closed 8 months ago

909990999900 commented 8 months ago

I'm new to this whole submitting issues thing so sorry if I do it wrong but basically I've never had a problem using DXVK before with this game, although the other day there was a small windows update(windows 11)and now whenever I launch this game it will not actually fully open and instead it will launch as a background process. If I take out the DXVK 2.2 dll files it will launch as intended.

Vulkan will works fine on my system as I can plays emulators that use the backend no problem but for whatever reason reason I just can't get this game to launch with any version of DXVK I have for some reason. Any advice would be greatly appreciated

I also know for a fact it's not my gfx driver as the game and DXVK already worked on it a few days ago it stopped working after some windows update. I even rolled back my gfx version just to check and nothing

Software information

Game is. WWE 2k19 720P

System information

WWE2K19_x64_d3d11.log

K0bin commented 8 months ago

info: D3D11On12CreateDevice: Chosen feature level: D3D_FEATURE_LEVEL_12_1 err: D3D11On12CreateDevice: Device not a vkd3d-proton device.

The game is trying to use D3D11On12 which only works together with VKD3D-Proton. It also probably doesn't work on Windows.

909990999900 commented 8 months ago

info: D3D11On12CreateDevice: Chosen feature level: D3D_FEATURE_LEVEL_12_1

err: D3D11On12CreateDevice: Device not a vkd3d-proton device.

The game is trying to use D3D11On12 which only works together with VKD3D-Proton.

It also probably doesn't work on Windows.

So what does that mean? Or what can I do about it? Again the game ran completely fine on Monday with the same gfx driver.

K0bin commented 8 months ago

Either try throwing in D3D12.dll from vkd3d-Proton and hope that works. If it doesn't, either play it without DXVK or install Linux.

909990999900 commented 8 months ago

Either try throwing in D3D12.dll from vkd3d-Proton and hope that works. If it doesn't, either play it without DXVK or install Linux.

Ok thanks I'll try and give that a shot. I just wonder why it would stop working all of a sudden. It's an older game that used dx11. Is it trying to run it in dx12 now or something?

Also I read somewhere that I didn't need dxgi and just the d3d11.dll

This caused the app to actually launch but it crashed before it could fully open.

Also the dxgi. DLL log if I delete my old existing ones is completely blank when you launch again so it's specifically that DLL that's causing the issue I think.

And thanks for the help I really appreciate it

K0bin commented 8 months ago

Also I read somewhere that I didn't need dxgi and just the d3d11.dll

That's wrong. D3D11 (and 12) always needs DXGI and DXVK does not work with the DXGI provided by Windows itself.

909990999900 commented 8 months ago

Also I read somewhere that I didn't need dxgi and just the d3d11.dll

That's wrong. D3D11 (and 12) always needs DXGI and DXVK does not work with the DXGI provided by Windows itself.

So was there something in the log showing why dxgi is causing it to run as a background process then?

Just for clarity I wanna reference some tests I just did.

D3d11 and dxgi cause the game to run in the background as a process

D3d11 alone let it launch (splash screen) but then it would crash before actually launching

I just downloaded what you said and put d3d12 in the folder with dxgi (2.3) and still it ran in the background as a process

Last I removed dxgi all together and put the d3d12 and d3d12 core both from the proton download and the game now launches, tho I'm not sure dxgi is actually working?

I mean having the other dlls wouldn't allow a launch but d3d12 is letting it launch so I'm just wondering what the difference is.

Also is it common for a game to just stop working with DXVK? Like literally nothing has changed it shouldnt be doing this. I've been searching for a solution for like 2 days now haha

Blisto91 commented 8 months ago

Make sure you don't have this installed on your system https://github.com/doitsujin/dxvk/wiki/Windows#dozen

K0bin commented 8 months ago

So was there something in the log showing why dxgi is causing it to run as a background process then?

It's not running in the background, it's basically not running at all. The game is trying to use D3D11on12 which, like I told you, doesn't work with DXVK unless you also install VKD3D-Proton.

Last I removed dxgi all together and put the d3d12 and d3d12 core both from the proton download and the game now launches, tho I'm not sure dxgi is actually working?

Post some logs I guess. It's possible that the game is hardcoded to load D3D12.dll from C:\Windows\System32. That's a very common problem when trying to use DXVK on Windows.

Also is it common for a game to just stop working with DXVK? Like literally nothing has changed it shouldnt be doing this. I've been searching for a solution for like 2 days now haha

It's possible that some other component on your system injects itself into the game and makes it use 11on12. Some kind of overlay for example. No idea what though.

It's kinda common for games to randomly stop working with DXVK on Windows. It's not at all common on Linux. We don't really support Windows because there are a lot of issues outside of our control that break DXVK. (Like this one)

909990999900 commented 8 months ago

Make sure you don't have this installed on your system https://github.com/doitsujin/dxvk/wiki/Windows#dozen

thanks ill look into it, how would I even be able to tell?

K0bin commented 8 months ago

Search for the OpenCL™, OpenGL®, and Vulkan® Compatibility Pack in the Windows store and if it says "Installed" uninstall it.

909990999900 commented 8 months ago

Search for the OpenCL™, OpenGL®, and Vulkan® Compatibility Pack in the Windows store and if it says "Installed" uninstall it.

It works now!! That was what was causing all this fucking bullshit.

909990999900 commented 8 months ago

Make sure you don't have this installed on your system https://github.com/doitsujin/dxvk/wiki/Windows#dozen

That is what was causing the issue. Thank you so much man I just wasted 2 days trying to figure this out so your a fucking hero