dxvk icon indicating copy to clipboard operation
dxvk copied to clipboard

Kenshi - Not Launching.

Open LordSalahuddin opened this issue 1 year ago • 20 comments

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

LordSalahuddin avatar Jul 09 '24 08:07 LordSalahuddin

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

Blisto91 avatar Jul 09 '24 08:07 Blisto91

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.

LordSalahuddin avatar Jul 09 '24 11:07 LordSalahuddin

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.

doitsujin avatar Jul 09 '24 12:07 doitsujin

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.

LordSalahuddin avatar Jul 09 '24 13:07 LordSalahuddin

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.

Blisto91 avatar Jul 09 '24 17:07 Blisto91

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

LordSalahuddin avatar Jul 09 '24 18:07 LordSalahuddin

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

LordSalahuddin avatar Jul 09 '24 19:07 LordSalahuddin

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.

doitsujin avatar Jul 09 '24 19:07 doitsujin

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

LordSalahuddin avatar Jul 09 '24 19:07 LordSalahuddin

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

doitsujin avatar Jul 09 '24 19:07 doitsujin

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.

LordSalahuddin avatar Jul 09 '24 19:07 LordSalahuddin

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.

LordSalahuddin avatar Jul 10 '24 04:07 LordSalahuddin

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.

RGB00255 avatar Jul 10 '24 13:07 RGB00255

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

Blisto91 avatar Jul 10 '24 15:07 Blisto91

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

LordSalahuddin avatar Jul 10 '24 15:07 LordSalahuddin

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

kenshi_x64_dxgi.log kenshi_x64_d3d11.log kenshi.log

LordSalahuddin avatar Jul 10 '24 15:07 LordSalahuddin

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.

Blisto91 avatar Jul 10 '24 15:07 Blisto91

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:

LordSalahuddin avatar Jul 10 '24 15:07 LordSalahuddin

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

Blisto91 avatar Jul 10 '24 16:07 Blisto91

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

LordSalahuddin avatar Jul 11 '24 21:07 LordSalahuddin

@LordSalahuddin Are you still having this issue?

Blisto91 avatar Dec 05 '24 19:12 Blisto91

@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.

LordSalahuddin avatar Dec 05 '24 19:12 LordSalahuddin

@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

LordSalahuddin avatar Dec 05 '24 19:12 LordSalahuddin

I assume nothing else came up?

Blisto91 avatar Dec 13 '24 09:12 Blisto91

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.

LordSalahuddin avatar Dec 13 '24 17:12 LordSalahuddin