d3d11.dll crash on start since interruption of compiling shaders (& workaround)

  • deton244
  • Topic Author
More
1 year 6 months ago - 1 year 6 months ago #1 by deton244 d3d11.dll crash on start since interruption of compiling shaders (& workaround) was created by deton244
Workaround: rename dxgi.dll to d3d11.dll or use dxvk with Reshade installed as Vulkan
(probably won't work for all games)

Game: Metro Last Light Redux (DX11, x64)

How it started: I accidentaly caused the game crash during loading a level by not placing all game archives in place, while shaders were still compiling (there were lots of them – but everything worked before in this stare).
Once the crash of the game related to game files occurred (MSVCR110.dll in Event log), I restored all the files in their proper places and launched the game, but now it always crashes with d3d11.dll (from Windows location) and 0xc0000005 in Event Log (once with ntdll.dll). Before it shows only small black game window – it’s just before going to fullscreen. So I ended up renaming dxgi.dll to d3d11.dll and it works. Also vanilla game works.

Tried out:
* Cleaning out Temp location where I think compiled shaders are located (found lots of this H files and names related to shaders)
* Cleaning C:\ProgramData\Reshade
* Updating Reshade to the newest 5.4.2
* Reinstalling Reshade without additional shaders choosing only preset, or not choosing any after previous uninstall (with default shaders)
* Forcing windowed or force fullscreen in <gamedir>\Reshade.ini
* Game’s safe mode
* Decreasing game resolution also to 800x600
* Running as admin

Logs:
10:09:56:759 [07856] | INFO  | Initializing crosire's ReShade version '5.4.2.1604' (64-bit) loaded from "X:\Metro Last Light Redux\dxgi.dll" into "X:\Metro Last Light Redux\metro.exe" ...
10:09:56:761 [07856] | INFO  | Registering hooks for "user32.dll" ...
10:09:56:761 [07856] | INFO  | > Libraries loaded.
10:09:56:762 [07856] | INFO  | > Found 14 match(es). Installing ...
10:09:56:797 [07856] | INFO  | Registering hooks for "ws2_32.dll" ...
10:09:56:798 [07856] | INFO  | > Libraries loaded.
10:09:56:798 [07856] | INFO  | > Found 8 match(es). Installing ...
10:09:56:833 [07856] | INFO  | Registering hooks for "C:\Windows\system32\d2d1.dll" ...
10:09:56:834 [07856] | INFO  | > Delayed.
10:09:56:834 [07856] | INFO  | Registering hooks for "C:\Windows\system32\d3d9.dll" ...
10:09:56:834 [07856] | INFO  | > Delayed.
10:09:56:835 [07856] | INFO  | Registering hooks for "C:\Windows\system32\d3d10.dll" ...
10:09:56:835 [07856] | INFO  | > Delayed.
10:09:56:835 [07856] | INFO  | Registering hooks for "C:\Windows\system32\d3d10_1.dll" ...
10:09:56:836 [07856] | INFO  | > Delayed.
10:09:56:836 [07856] | INFO  | Registering hooks for "C:\Windows\system32\d3d11.dll" ...
10:09:56:837 [07856] | INFO  | > Delayed.
10:09:56:837 [07856] | INFO  | Registering hooks for "C:\Windows\system32\d3d12.dll" ...
10:09:56:837 [07856] | INFO  | > Delayed.
10:09:56:837 [07856] | INFO  | Registering hooks for "C:\Windows\system32\dxgi.dll" ...
10:09:56:838 [07856] | INFO  | > Delayed until first call to an exported function.
10:09:56:838 [07856] | INFO  | Registering hooks for "vrclient_x64.dll" ...
10:09:56:838 [07856] | INFO  | > Delayed.
10:09:56:838 [07856] | INFO  | Registering hooks for "C:\Windows\system32\dinput.dll" ...
10:09:56:839 [07856] | INFO  | > Delayed.
10:09:56:839 [07856] | INFO  | Initialized.
10:09:56:841 [07856] | INFO  | Installing delayed hooks for "C:\Windows\system32\d3d11.dll" (Just loaded via LoadLibrary("C:\Windows\SYSTEM32\d3d11.dll")) ...
10:09:56:841 [07856] | INFO  | > Found 3 match(es). Installing ...
10:09:58:282 [07856] | INFO  | Redirecting CreateDXGIFactory1(riid = {7B7166EC-21C7-44AE-B21A-C9AE321AE369}, ppFactory = 00000000007FB6F8) ...
10:09:58:284 [07856] | INFO  | Installing export hooks for "C:\Windows\system32\dxgi.dll" ...
10:09:58:284 [07856] | INFO  | > Found 4 match(es). Installing ...
10:09:58:292 [07856] | INFO  | Redirecting D3D11CreateDevice(pAdapter = 000000004775DDA0, DriverType = 0, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000000007FB638, FeatureLevels = 3, SDKVersion = 7, ppDevice = 00000000007FB630, pFeatureLevel = 00000000007FB6E0, ppImmediateContext = 00000000007FB6F0) ...
10:09:58:293 [07856] | INFO  | > Passing on to D3D11CreateDeviceAndSwapChain:
10:09:58:293 [07856] | INFO  | Redirecting D3D11CreateDeviceAndSwapChain(pAdapter = 000000004775DDA0, DriverType = 0, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000000007FB638, FeatureLevels = 3, SDKVersion = 7, pSwapChainDesc = 0000000000000000, ppSwapChain = 0000000000000000, ppDevice = 00000000007FB630, pFeatureLevel = 00000000007FB6E0, ppImmediateContext = 00000000007FB6F0) ...
10:09:58:371 [07856] | INFO  | Using feature level 0xb000.
10:09:59:663 [07856] | INFO  | Redirecting RegisterClassA(lpWndClass = 00000000007FFE50 { "_uengine_", style = 0 }) ...
10:10:00:189 [07856] | INFO  | Redirecting CreateDXGIFactory1(riid = {7B7166EC-21C7-44AE-B21A-C9AE321AE369}, ppFactory = 00007FF6B37974E0) ...
10:10:00:191 [07856] | INFO  | Redirecting D3D11CreateDevice(pAdapter = 000000004824A440, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000000007FFB80, FeatureLevels = 3, SDKVersion = 7, ppDevice = 00007FF6B37974D0, pFeatureLevel = 00000000007FFB50, ppImmediateContext = 00007FF6B37974D8) ...
10:10:00:191 [07856] | INFO  | > Passing on to D3D11CreateDeviceAndSwapChain:
10:10:00:191 [07856] | INFO  | Redirecting D3D11CreateDeviceAndSwapChain(pAdapter = 000000004824A440, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000000007FFB80, FeatureLevels = 3, SDKVersion = 7, pSwapChainDesc = 0000000000000000, ppSwapChain = 0000000000000000, ppDevice = 00007FF6B37974D0, pFeatureLevel = 00000000007FFB50, ppImmediateContext = 00007FF6B37974D8) ...
Last edit: 1 year 6 months ago by deton244.

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.