protonscr

Kenshi - Not Launching.

dxvkclosed windowsamd proprietary
doitsujin/dxvk#4127 · opened 2024-07-09 by LordSalahuddin · updated 2024-12-14 · 25 comments · github
1 matching comments, n / p to jump
LLordSalahuddin 2024-07-09 github

Well basically the game isn't launching at all while using DXVK. However, it used to work a couple of months ago, so I'm inclined to believe it might be related to my AMD drivers (which are up-to-date). I added Kenshi's logs as part of the log files, at the very end it's throwing me the following error:
"OGRE EXCEPTION(80004005:RenderingAPIException): Failed to create Direct3D11 device in D3D11RenderSystem::D3D11RenderSystem at ......\RenderSystems\Direct3D11\src\OgreD3D11RenderSystem.cpp (line 265)"
Again, I would like to clarify that this is the first time something like this has happened, Kenshi used to work flawlessly using DXVK, so I really don't really know what happened. In any case, thanks!

Software information

Kenshi

System information

  • GPU: RX 580
  • Driver: 24.3.1
  • Wine version: -
  • DXVK version: 2.3.1 (latest release)

Apitrace file(s)

Log files

kenshi_x64_d3d11.log
kenshi_x64_dxgi.log
kenshi.log

BBlisto91 2024-07-09 github

Try using the latest master build. Can be downloaded here https://github.com/doitsujin/dxvk/actions/runs/9838048395

Else i would try to downgrade the driver.

Edit: Also make sure Dozen isn't installed https://github.com/doitsujin/dxvk/wiki/Windows#dozen

LLordSalahuddin 2024-07-09 github

Alright, checked for Dozen and nope, I don't have it installed (yaay!).
Just tried the latest master build and got the same error in the Kenshi logs, the DXVK logs look the same basically, nothing has changed as far as I've seen.
Anyways, time to downgrade drivers then, or wait until this gets fixed.

Ddoitsujin maintainer 2024-07-09 github

Have you tried any other D3D11 games with DXVK on your setup? This doesn't sound like something that would only break one single game.

Either way, Kenshi still works on Proton.

LLordSalahuddin 2024-07-09 github

To answer your question , I have not. I don't really use DXVK for anything else.
In fact I started using DXVK + Kenshi around December 2023 to fix a very annoying texture flickering bug that only seems to appear if the user has an AMD GPU (which is weird , but it seems to be related to the devs not having AMD GPUs to playtest their game) and yeah , it worked flawlessly !
So I really don't know what could be causing this issue , but I'm quite inclined to believe it's the drivers (or something related to that) , due to them being the only thing that has changed ever since I played Kenshi + DXVK in February.

Edit: Okay searching around I saw this: https://www.nexusmods.com/kenshi/mods/1294?tab=posts. There are recent comments , explaining something similar to the issue I'm having. - Just adding this as some additional info.

BBlisto91 2024-07-09 github

I tried installing 24.3.1 for my iGPU (rdna2) but am able to start the game fine.

I don't think it would do anything but you could try deleting shader cache in your Radeon settings.

LLordSalahuddin 2024-07-09 github

Alright, I ended up testing 2 games using DXVK.
Hearts of Iron 4: Instantly crashed at launch (DX11) - Log files are similar to Kenshi.
Crusader Kings 3: Same as HOI4 (DX11) - Log files are similar to Kenshi.
GTA San Andreas: Working (DX9).

Gonna try deleting the shader cache, if not I'll reinstall the drivers or something.

EDIT: Added CK3 and HOI4 logs.
CK3
ck3_d3d11.log
ck3_dxgi.log
HOI4
hoi4_d3d11.log
hoi4_dxgi.log

LLordSalahuddin 2024-07-09 github

Alright deleted the shader cache, nothing changed.
I DDU'd the current drivers and reinstalled them (clean-new download) and still nothing. Still getting the same logs.

kenshi.log
kenshi_x64_d3d11.log
kenshi_x64_dxgi.log

Ddoitsujin maintainer 2024-07-09 github

Do you have HDR enabled or something? Might just be the AMD driver trying to do something with DXGI and loading ours or something, wouldn't be the first time that happened.

LLordSalahuddin 2024-07-09 github

Nope, I don't have HDR enabled.
Oh btw, added CK3 and HOI4 logs above, don't know if those will help.

Ddoitsujin maintainer 2024-07-09 github

Yeah, don't know what's going on, I don't think this is somerthing we can fix.

LLordSalahuddin 2024-07-09 github

Ah, damn. I might just do what I said before and roll back to a previous driver version and see if that works, hopefully it does but again it's super weird that it isn't at this moment.
Anyways, thanks a lot everyone for your help and time, I appreciate it a lot.

LLordSalahuddin 2024-07-10 github

Okay I found something interesting (I hope).
First of all, I ended up downgrading to 3 different versions, and still got the same error every single time (using different DXVK versions)
After that I thought, "wait the event viewer should be throwing some indication about the issue that the app is having or why it is crashing". Checked it and found out that there's a module that is having an error when running the app (Kenshi): ntdll.dll
Now I am gonna go scan my PC and see if that dll got f'ed or something.

Edit: Welp, just updated Windows, scanned for errors, fixed some of them (none related to this), and still nothing. Lol, I'm going insane over this.

RRGB00255 2024-07-10 · hidden on GitHub github

Not just you, I can't launch any game with DXVK since a Windows and NVIDIA graphics driver update today, I was running these fine yesterday.
image

Edit: I restarted Windows and it seems to work fine, ignore me.

BBlisto91 2024-07-10 github

@LordSalahuddin What happens if you use a older release like 1.10.3

LLordSalahuddin 2024-07-10 github

Mhmm, I'll try that and come back with the results.

LLordSalahuddin 2024-07-10 github

Well, at least something changed, we got new errors.

kenshi_x64_dxgi.log
kenshi_x64_d3d11.log
kenshi.log

BBlisto91 2024-07-10 github

Are you able to check in Windows Event Viewer if there are any interesting errors. Look under Custom Views and then Administrative Events. You can sort by time and double click on a event to get more information.

LLordSalahuddin 2024-07-10 github

Yeah, I'm getting the same error I got yesterday:

Faulting application name: kenshi_x64.exe, version: 0.0.0.0, time stamp: 0x6602d59d

Faulting module name: ntdll.dll, version: 10.0.19041.4522, time stamp: 0x8a1bb6f3

Exception code: 0xc00000fd

Fault offset: 0x000000000002b866

Faulting process id: 0x970

Faulting application start time: 0x01dad2e165d45ceb

Faulting application path: C:\Program Files (x86)\Steam\steamapps\common\Kenshi\kenshi_x64.exe

Faulting module path:: C:\WINDOWS\SYSTEM32\ntdll.dll

Report Id: 25bfa29d-fa82-473f-8274-3a4b28afa200

Faulting package full name:

Faulting package-relative application ID:

BBlisto91 2024-07-10 github

What i can gather a 0xc00000fd is a Stack Overflow Exception

LLordSalahuddin 2024-07-11 github

Well, continued testing DXVK with other games, it seems I can't run DX11 games using DXVK. Tested MGSV GZ, MGSV TPP, and a couple of other games, to no avail.
Something interesting that I found is that MGSV GZ and TPP threw some more info about the error and in the event viewer section I am getting: "Exception Code: 0xc0000005" and "Faulting Module: amdvlk64.dll_unloaded" (amdvlk64.dll).
Don't know if that helps at all, hopefully it does.

MGSV TPP logs:
mgsvtpp_d3d11.log
mgsvtpp_dxgi.log

BBlisto91 2024-12-05 github

@LordSalahuddin Are you still having this issue?

LLordSalahuddin 2024-12-05 github

@Blisto91 Okay that's quite an awesome timing, I reinstalled Kenshi a couple of nights ago and I was about (just now) to test if the issue got finally solved (be it either a Windows issue, a card related issue or whatevs).
I'll be back with a proper answer.

LLordSalahuddin 2024-12-05 github

@Blisto91 Let's GOOO!
It's actually working now!
Was able to launch the game and get in it, will do some further testing in case something else shows up or if something happens

BBlisto91 2024-12-13 github

I assume nothing else came up?

LLordSalahuddin 2024-12-13 github

Yup , I ended up trying DXVK with other games and it's perfectly working now, no crashes, nothing.

I also noticed that it's working much better than before so that's a plus.

DLLs

Error codes