Reshade doesn't work after Windows 1909

  • Posts: 2
1 month 3 days ago #1 by criscore98
My computer recently updated to Windows 1909. When I started Assetto Corsa, reshade won't start with the game. Already tried injecting the DLL to no avail.

Here's Reshade's log:
22:51:02:930 [16996] | INFO  | Initializing crosire's ReShade version '4.6.1.827' (64-bit) built on '2020-04-14 19:10:10' loaded from "C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\d3d11.dll" into "C:\Program Files (x86)\Steam\steamapps\common\assettocorsa\acs.exe" ...
22:51:03:058 [16996] | INFO  | Registering hooks for "user32.dll" ...
22:51:03:058 [16996] | INFO  | > Libraries loaded.
22:51:03:058 [16996] | INFO  | > Found 13 match(es). Installing ...
22:51:03:090 [16996] | INFO  | Registering hooks for "ws2_32.dll" ...
22:51:03:091 [16996] | INFO  | > Libraries loaded.
22:51:03:091 [16996] | INFO  | > Found 8 match(es). Installing ...
22:51:03:124 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\d2d1.dll" ...
22:51:03:135 [16996] | INFO  | > Delayed.
22:51:03:135 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d9.dll" ...
22:51:03:135 [16996] | INFO  | > Delayed.
22:51:03:135 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d10.dll" ...
22:51:03:135 [16996] | INFO  | > Delayed.
22:51:03:135 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d10_1.dll" ...
22:51:03:136 [16996] | INFO  | > Delayed.
22:51:03:136 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d11.dll" ...
22:51:03:136 [16996] | INFO  | > Delayed until first call to an exported function.
22:51:03:136 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\d3d12.dll" ...
22:51:03:136 [16996] | INFO  | > Delayed.
22:51:03:136 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\dxgi.dll" ...
22:51:03:136 [16996] | INFO  | > Libraries loaded.
22:51:03:136 [16996] | INFO  | > Found 8 match(es). Installing ...
22:51:03:167 [16996] | INFO  | Registering hooks for "C:\WINDOWS\system32\opengl32.dll" ...
22:51:03:167 [16996] | INFO  | > Delayed.
22:51:03:167 [16996] | INFO  | Initialized.
22:51:06:642 [16996] | INFO  | Redirecting RegisterClassExW(lpWndClassEx = 000000F00AD3D100 { SteamWinsockInitFakeClass_1 }) ...
22:51:06:642 [16996] | INFO  | > Adding 'CS_OWNDC' window class style flag to 'SteamWinsockInitFakeClass_1'.
22:51:39:469 [16996] | INFO  | Redirecting RegisterClassW(lpWndClass = 000000F00AD3F3B0 { acsW }) ...
22:51:39:481 [16996] | INFO  | Redirecting D3D11CreateDevice(pAdapter = 0000000000000000, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 0000000000000000, FeatureLevels = 0, SDKVersion = 7, ppDevice = 000000F00AD3F1F8, pFeatureLevel = 0000000000000000, ppImmediateContext = 000000F00AD3F1F0) ...
22:51:39:481 [16996] | INFO  | > Passing on to D3D11CreateDeviceAndSwapChain:
22:51:39:481 [16996] | INFO  | Redirecting D3D11CreateDeviceAndSwapChain(pAdapter = 0000000000000000, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 0000000000000000, FeatureLevels = 0, SDKVersion = 7, pSwapChainDesc = 0000000000000000, ppSwapChain = 0000000000000000, ppDevice = 000000F00AD3F1F8, pFeatureLevel = 0000000000000000, ppImmediateContext = 000000F00AD3F1F0) ...
22:51:39:483 [16996] | INFO  | Installing export hooks for "C:\WINDOWS\system32\d3d11.dll" ...
22:51:39:483 [16996] | INFO  | > Found 2 match(es). Installing ...
22:51:39:483 [16996] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0x80000000, riid = {7B7166EC-21C7-44AE-B21A-C9AE321AE369}, ppFactory = 000000F00AD3E848) ...
22:51:39:570 [16996] | INFO  | > Using feature level 0xb000.
22:51:39:570 [16996] | INFO  | Redirecting IDXGIFactory2::CreateSwapChainForHwnd(this = 000002B03CB53220, pDevice = 000002B03837E4D0, hWnd = 00000000001F0982, pDesc = 000000F00AD3F200, pFullscreenDesc = 0000000000000000, pRestrictToOutput = 0000000000000000, ppSwapChain = 00007FFF31713428) ...
22:51:39:570 [16996] | INFO  | > Dumping swap chain description:
22:51:39:570 [16996] | INFO  |   +-----------------------------------------+-----------------------------------------+
22:51:39:570 [16996] | INFO  |   | Parameter                               | Value                                   |
22:51:39:570 [16996] | INFO  |   +-----------------------------------------+-----------------------------------------+
22:51:39:570 [16996] | INFO  |   | Width                                   | 0                                       |
22:51:39:570 [16996] | INFO  |   | Height                                  | 0                                       |
22:51:39:570 [16996] | INFO  |   | Format                                  | 28                                      |
22:51:39:570 [16996] | INFO  |   | Stereo                                  | FALSE                                   |
22:51:39:570 [16996] | INFO  |   | SampleCount                             | 1                                       |
22:51:39:570 [16996] | INFO  |   | SampleQuality                           | 0                                       |
22:51:39:570 [16996] | INFO  |   | BufferUsage                             | 32                                      |
22:51:39:570 [16996] | INFO  |   | BufferCount                             | 2                                       |
22:51:39:570 [16996] | INFO  |   | Scaling                                 | 0                                       |
22:51:39:570 [16996] | INFO  |   | SwapEffect                              | 4                                       |
22:51:39:570 [16996] | INFO  |   | AlphaMode                               | 0                                       |
22:51:39:570 [16996] | INFO  |   | Flags                                   | 0x800                                   |
22:51:39:570 [16996] | INFO  |   +-----------------------------------------+-----------------------------------------+
22:51:39:918 [16996] | INFO  | Recreated runtime environment on runtime 000002B03C7557A0.
22:51:39:919 [16996] | INFO  | Redirecting IDXGISwapChain::SetFullscreenState(this = 000002B03C76F360, Fullscreen = TRUE, pTarget = 0000000000000000) ...
22:51:39:919 [16996] | INFO  | Redirecting IDXGISwapChain::ResizeBuffers(this = 000002B03C76F360, BufferCount = 0, Width = 0, Height = 0, NewFormat = 28, SwapChainFlags = 0x2) ...
22:51:39:919 [16996] | INFO  | Destroyed runtime environment on runtime 000002B03C7557A0.
22:51:39:919 [16996] | ERROR | IDXGISwapChain::ResizeBuffers failed with error code E_INVALIDARG!
22:52:12:462 [16996] | INFO  | Redirecting IDXGISwapChain::SetFullscreenState(this = 000002B03C76F360, Fullscreen = FALSE, pTarget = 0000000000000000) ...
22:52:12:513 [16996] | INFO  | Exiting ...
22:52:12:513 [16996] | INFO  | Uninstalling 39 hook(s) ...
22:52:12:550 [16996] | INFO  | Finished exiting.

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

  • Posts: 453
1 month 2 days ago #2 by Martigen
This sounds like a similar issue as Prey that occurred only after updating to 1909:

reshade.me/forum/troubleshooting/5777-pr...orking-anymore#38086

Crosire wasn't able to reproduce it though (and so can't debug it). Maybe he can with Asseto if it's the same issue?

Note there's a workaround in that Prey thread, if it happens to use the same engine.
The following user(s) said Thank You: criscore98

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

  • Posts: 2
1 month 2 days ago - 1 month 2 days ago #3 by criscore98
So I looked into Assetto Corsa's log files and found an error:
***** GOING FULLSCREEN ***
kglResizeBuffers : 1920 x 1080
ERROR: swapChain->ResizeBuffers FAILED

This error is similar with the Reshade error from the log file I posted:
22:51:39:919 [16996] | ERROR | IDXGISwapChain::ResizeBuffers failed with error code E_INVALIDARG!

So I restarted the game but this time, not in fullscreen mode, and it worked!

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

  • Posts: 453
1 month 2 days ago #4 by Martigen
Good find!

I wonder if this is something @Crosire can fix, as fullscreen (if it's exclusive) tends to provide slightly better performance and is needed for features like DSR.

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

  • Posts: 3727
1 month 1 day ago #5 by crosire
Once again cannot reproduce the problem. I'm on Windows 10 1909 (Build 18363.778). Assetto Corsa launches correctly, ReShade is applied and I can drive around without issues. Log does not indicate a failure during ResizeBuffers. It does however take a different path:
Instead of calling the new "IDXGIFactory2::CreateSwapChainForHwnd" API like in your case, the game still uses "IDXGIFactory::CreateSwapChain" for me. Not sure why. Are you on a laptop? Could you run dxdiag and attach the result (so I can see if there is something special about the system configuration).

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