Running generic_depth_addon on the game Asphalt 9 Legends causes it to crash

More
Running SuperDepth3D.fx and generic_depth_addon on the game Asphalt 9 Legends causes it to crash When the configuration file is as follows:
reshade.ini
[DEPTH]
DepthCopyBeforeClears=2
UseAspectRatioHeuristics=0

The error log is as follows: (Device was lost with DXGI_ERROR_DEVICE_REMOVED!)
10:33:41:696 [31136] | INFO  | Initializing crosire's ReShade version '6.2.0.1878' (64-bit) loaded from "C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends\dxgi.dll" into "C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends\Asphalt9_Steam_x64_rtl.exe" (0x98034e4c) ...
10:33:41:718 [31136] | INFO  | Registering hooks for "user32.dll" ...
10:33:41:718 [31136] | INFO  | > Libraries loaded.
10:33:41:719 [31136] | INFO  | > Found 14 match(es). Installing ...
10:33:41:741 [31136] | INFO  | Registering hooks for "C:\Windows\system32\dinput.dll" ...
10:33:41:741 [31136] | INFO  | > Delayed.
10:33:41:741 [31136] | INFO  | Registering hooks for "C:\Windows\system32\d2d1.dll" ...
10:33:41:742 [31136] | INFO  | > Delayed.
10:33:41:742 [31136] | INFO  | Registering hooks for "C:\Windows\system32\d3d9.dll" ...
10:33:41:742 [31136] | INFO  | > Libraries loaded.
10:33:41:742 [31136] | INFO  | > Found 11 match(es). Installing ...
10:33:41:764 [31136] | INFO  | Registering hooks for "C:\Windows\system32\d3d10.dll" ...
10:33:41:764 [31136] | INFO  | > Delayed.
10:33:41:764 [31136] | INFO  | Registering hooks for "C:\Windows\system32\d3d10_1.dll" ...
10:33:41:764 [31136] | INFO  | > Delayed.
10:33:41:764 [31136] | INFO  | Registering hooks for "C:\Windows\system32\d3d11.dll" ...
10:33:41:764 [31136] | INFO  | > Libraries loaded.
10:33:41:764 [31136] | INFO  | > Found 3 match(es). Installing ...
10:33:41:788 [31136] | INFO  | Registering hooks for "C:\Windows\system32\d3d12.dll" ...
10:33:41:788 [31136] | INFO  | > Libraries loaded.
10:33:41:788 [31136] | INFO  | > Found 8 match(es). Installing ...
10:33:41:809 [31136] | INFO  | Registering hooks for "C:\Windows\system32\dxgi.dll" ...
10:33:41:809 [31136] | INFO  | > Delayed until first call to an exported function.
10:33:41:809 [31136] | INFO  | Registering hooks for "vrclient_x64.dll" ...
10:33:41:809 [31136] | INFO  | > Delayed.
10:33:41:809 [31136] | INFO  | Initialized.
10:33:41:893 [31136] | INFO  | Redirecting RegisterClassExW(lpWndClassEx = 00000077C2F2EB90 { "SteamWinsockInitFakeClass_1", style = 0 }) ...
10:33:42:343 [31136] | INFO  | Redirecting D3D11CreateDevice(pAdapter = 0000000000000000, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000077C2F2BF90, FeatureLevels = 9, SDKVersion = 7, ppDevice = 0000000000000000, pFeatureLevel = 00000077C2F2BD80, ppImmediateContext = 0000000000000000) ...
10:33:42:345 [31136] | INFO  | > Passing on to D3D11CreateDeviceAndSwapChain:
10:33:42:345 [31136] | INFO  | Redirecting D3D11CreateDeviceAndSwapChain(pAdapter = 0000000000000000, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000077C2F2BF90, FeatureLevels = 9, SDKVersion = 7, pSwapChainDesc = 0000000000000000, ppSwapChain = 0000000000000000, ppDevice = 0000000000000000, pFeatureLevel = 00000077C2F2BD80, ppImmediateContext = 0000000000000000) ...
10:33:42:345 [31136] | INFO  | Installing export hooks for "C:\Windows\system32\dxgi.dll" ...
10:33:42:346 [31136] | INFO  | > Found 5 match(es). Installing ...
10:33:42:346 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0x80000000, riid = {7B7166EC-21C7-44AE-B21A-C9AE321AE369}, ppFactory = 00000077C2F2B398) ...
10:33:42:907 [31136] | INFO  | Using feature level 0xc100.
10:33:42:912 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2F680) ...
10:33:42:912 [31136] | INFO  | Redirecting D3D12CreateDevice(pAdapter = 00000219E702CA30, MinimumFeatureLevel = 0xb000, riid = {189819F1-1DB6-4B57-BE54-1821339B85F7}, ppDevice = 00000077C2F2F3D8) ...
10:33:42:914 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0x80000000, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2ECA8) ...
10:33:43:012 [31136] | INFO  | Searching for add-ons (*.addon, *.addon64) in "C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends" ...
10:33:43:033 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2F5E8) ...
10:33:43:033 [31136] | INFO  | Redirecting D3D12CreateDevice(pAdapter = 00000219E6E783E0, MinimumFeatureLevel = 0xb000, riid = {189819F1-1DB6-4B57-BE54-1821339B85F7}, ppDevice = 00000077C2F2F328) ...
10:33:43:034 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0x80000000, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2EBF8) ...
10:33:43:109 [31136] | INFO  | Searching for add-ons (*.addon, *.addon64) in "C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends" ...
10:33:43:120 [31136] | INFO  | Redirecting RegisterClassW(lpWndClass = 00000077C2F2F5F0 { "JPalWindow", style = 0x23 }) ...
10:33:43:160 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000219E6FB0530) ...
10:33:43:160 [31136] | INFO  | Redirecting D3D12CreateDevice(pAdapter = 00000219E6F3CF10, MinimumFeatureLevel = 0xb000, riid = {189819F1-1DB6-4B57-BE54-1821339B85F7}, ppDevice = 00000077C2F2F2B0) ...
10:33:43:161 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0x80000000, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2EB88) ...
10:33:43:242 [31136] | INFO  | Searching for add-ons (*.addon, *.addon64) in "C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends" ...
10:33:43:243 [31136] | INFO  | Redirecting ID3D12Device::CreateCommandQueue(this = 00000219E7790A10, pDesc = 00000077C2F2F6B0, riid = {0EC870A6-5D7E-4C22-8CFC-5BAAE07616ED}, ppCommandQueue = 00000219E73263E0) ...
10:33:43:243 [31136] | INFO  | > Dumping command queue description:
10:33:43:244 [31136] | INFO  |   +
+
+
10:33:43:244 [31136] | INFO  |   | Parameter                               | Value                                   |
10:33:43:244 [31136] | INFO  |   +
+
+
10:33:43:244 [31136] | INFO  |   | Type                                    | 0                                       |
10:33:43:244 [31136] | INFO  |   | Priority                                | 0                                       |
10:33:43:244 [31136] | INFO  |   | Flags                                   | 0                                       |
10:33:43:244 [31136] | INFO  |   | NodeMask                                | 0                                       |
10:33:43:244 [31136] | INFO  |   +
+
+
10:33:43:263 [31136] | INFO  | Redirecting ID3D12Device::CreateCommandQueue(this = 00000219E7790A10, pDesc = 00000077C2F2F6B0, riid = {0EC870A6-5D7E-4C22-8CFC-5BAAE07616ED}, ppCommandQueue = 00000219E73263E8) ...
10:33:43:263 [31136] | INFO  | > Dumping command queue description:
10:33:43:263 [31136] | INFO  |   +
+
+
10:33:43:263 [31136] | INFO  |   | Parameter                               | Value                                   |
10:33:43:263 [31136] | INFO  |   +
+
+
10:33:43:263 [31136] | INFO  |   | Type                                    | 2                                       |
10:33:43:263 [31136] | INFO  |   | Priority                                | 0                                       |
10:33:43:263 [31136] | INFO  |   | Flags                                   | 0                                       |
10:33:43:263 [31136] | INFO  |   | NodeMask                                | 0                                       |
10:33:43:263 [31136] | INFO  |   +
+
+
10:33:43:281 [31136] | INFO  | Redirecting IDXGIFactory2::CreateSwapChainForHwnd(this = 00000219E7084D90, pDevice = 00000219DFDC1FF0, hWnd = 000000000039059A, pDesc = 00000077C2F2F590, pFullscreenDesc = 00000077C2F2F5C0, pRestrictToOutput = 0000000000000000, ppSwapChain = 00000077C2F2F568) ...
10:33:43:281 [31136] | INFO  | > Dumping swap chain description:
10:33:43:281 [31136] | INFO  |   +
+
+
10:33:43:281 [31136] | INFO  |   | Parameter                               | Value                                   |
10:33:43:281 [31136] | INFO  |   +
+
+
10:33:43:281 [31136] | INFO  |   | Width                                   | 3200                                    |
10:33:43:281 [31136] | INFO  |   | Height                                  | 2000                                    |
10:33:43:281 [31136] | INFO  |   | RefreshRate                             | 0                   0                   |
10:33:43:281 [31136] | INFO  |   | Format                                  | DXGI_FORMAT_R8G8B8A8_UNORM              |
10:33:43:281 [31136] | INFO  |   | Stereo                                  | FALSE                                   |
10:33:43:282 [31136] | INFO  |   | ScanlineOrdering                        | 0                                       |
10:33:43:282 [31136] | INFO  |   | Scaling                                 | 0                                       |
10:33:43:282 [31136] | INFO  |   | SampleCount                             | 1                                       |
10:33:43:282 [31136] | INFO  |   | SampleQuality                           | 0                                       |
10:33:43:282 [31136] | INFO  |   | BufferUsage                             | 0x20                                    |
10:33:43:282 [31136] | INFO  |   | BufferCount                             | 3                                       |
10:33:43:282 [31136] | INFO  |   | Windowed                                | TRUE                                    |
10:33:43:282 [31136] | INFO  |   | SwapEffect                              | 4                                       |
10:33:43:282 [31136] | INFO  |   | AlphaMode                               | 0                                       |
10:33:43:282 [31136] | INFO  |   | Flags                                   | 0x842                                   |
10:33:43:282 [31136] | INFO  |   +
+
+
10:33:43:288 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2EC98) ...
10:33:43:288 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2EC98) ...
10:33:43:289 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2EC98) ...
10:33:43:289 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2EC98) ...
10:33:43:290 [31136] | INFO  | Running on NVIDIA GeForce RTX 4090 Laptop GPU Driver 546.12.
10:33:43:613 [31136] | INFO  | Recreated runtime environment on runtime 00000219E7B4F880 ("C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends\ReShade.ini").
10:33:43:666 [14608] | INFO  | Redirecting D3D11CreateDevice(pAdapter = 0000000000000000, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000077C37FD170, FeatureLevels = 9, SDKVersion = 7, ppDevice = 0000000000000000, pFeatureLevel = 00000077C37FCF60, ppImmediateContext = 0000000000000000) ...
10:33:43:666 [14608] | INFO  | > Passing on to D3D11CreateDeviceAndSwapChain:
10:33:43:666 [14608] | INFO  | Redirecting D3D11CreateDeviceAndSwapChain(pAdapter = 0000000000000000, DriverType = 1, Software = 0000000000000000, Flags = 0, pFeatureLevels = 00000077C37FD170, FeatureLevels = 9, SDKVersion = 7, pSwapChainDesc = 0000000000000000, ppSwapChain = 0000000000000000, ppDevice = 0000000000000000, pFeatureLevel = 00000077C37FCF60, ppImmediateContext = 0000000000000000) ...
10:33:43:666 [14608] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0x80000000, riid = {7B7166EC-21C7-44AE-B21A-C9AE321AE369}, ppFactory = 00000077C37FC578) ...
10:33:43:674 [14608] | INFO  | Using feature level 0xc100.
10:33:44:792 [31136] | INFO  | Redirecting RegisterClassExA(lpWndClassEx = 00000077C2F2F420 { "CefWebViewWindow", style = 0x20 }) ...
10:33:44:888 [32724] | INFO  | Successfully compiled "C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends\reshade-shaders\Shaders\SR.fx" in 0 s.
10:33:44:898 [14888] | WARN  | Successfully compiled "C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends\reshade-shaders\Shaders\Depth3D\SuperDepth3D.fx" in 0.011 s with warnings:
C:\Program Files (x86)\Steam\steamapps\common\Asphalt 9 Legends\reshade-shaders\Shaders\Depth3D\SuperDepth3D.fx(4822, 1): error X3020: 'V__SuperDepth3D__texLumN': cannot sample from texture that is also used as render target in the same pass

10:33:45:746 [31136] | INFO  | Redirecting CreateDXGIFactory2(Flags = 0x80000000, riid = {1BC6EA02-EF36-464F-BF0C-21CA39E5168A}, ppFactory = 00000077C2F2E350) ...
10:35:44:334 [31136] | ERROR | Device was lost with DXGI_ERROR_DEVICE_REMOVED!
10:35:44:334 [31136] | ERROR | > Device removal reason is DXGI_ERROR_DEVICE_HUNG.


 

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

  • BlueSkyKnight
More
1 year 1 month ago #2 by BlueSkyKnight Replied by BlueSkyKnight on topic Running generic_depth_addon on the game Asphalt 9 Legends causes it to crash
Tested Asphalt Legends Unite. With the updated version of ReShade and SuperDepth3D.

I want unable to replicate this issue.

Here are the setting for the Generic Depth Add-on

[DEPTH]
DepthCopyBeforeClears=1
FilterFormat=5
UseAspectRatioHeuristics=2

Also I updated the Shader to have a profile for this game. Make Sure you update the 3D Shader as well. Do this by re-running the installer. Re-Download the Depth3D Shaders.

github.com/BlueSkyDefender/Depth3D/commi...40561798c7a85c2366a1

Also make sure to reset the shader setting by clicking this button here.
[img

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

More
Thanks,There are no issues with your settings; I have tested them as well. However, there are problems with my settings. Are you unable to replicate the issue on your end? I'd like to find out how to solve the crash problem with my configuration.
[DEPTH]
DepthCopyBeforeClears=2
UseAspectRatioHeuristics=0

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

More
I used the fx file from the URL you provided, and it also crashes with the following configuration (UseAspectRatioHeuristics=0) When entering the car selection screen. Could you please check if you can reproduce the issue and help identify the problem? Thank you!
[DEPTH]
DepthCopyBeforeClears=2
UseAspectRatioHeuristics=0

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