baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
9.05k stars 1.35k forks source link

Error replaying D3D11 when using UAV of backbuffer #1104

Closed gegogi closed 6 years ago

gegogi commented 6 years ago

Description

In the game I am developing, RenderDoc fails to play a capture when there are specific UAV bindable resources. When I look at the RenderDoc source code around d3d11_device_wrap.cpp( 921) which diagnostic log is pointing, I found it is related to UAV and disabling some of my code resolved the situation temporarily. It is actually CMAA antialiasing code developed by Intel.

RDOC 026548: [17:07:55] d3d11_device.cpp(1425) - Log - Starting capture, frame 2387 RDOC 026548: [17:07:55] d3d11_device.cpp(1461) - Log - Finished capture, Frame 2388 RDOC 026548: [17:07:55] rdcfile.cpp(1084) - Log - Finishing write to section 1 (renderdoc/internal/framecapture). Compressed from 341674560 bytes to 41134329 RDOC 026548: [17:07:55] core.cpp(1092) - Log - Written to disk: C:/Users/gegogi.TS.000/AppData/Local/Temp/RenderDoc/Pything_2018.09.14_08.07.02_frame2387.rdc RDOC 026548: [17:07:55] rdcfile.cpp( 239) - Log - Opening RDCFile C:/Users/gegogi.TS.000/AppData/Local/Temp/RenderDoc/Pything_2018.09.14_08.07.02_frame2387.rdc RDOC 006880: [17:07:55] target_control.cpp( 673) - Log - Got a new capture: 0 (time 1536912475) 381124 byte thumbnail RDOC 006880: [17:07:57] rdcfile.cpp( 239) - Log - Opening RDCFile C:\Users\gegogi.TS.000\AppData\Local\Temp\RenderDoc\Pything_2018.09.14_08.07.02_frame2387.rdc RDOC 006880: [17:07:57] rdcfile.cpp( 239) - Log - Opening RDCFile C:\Users\gegogi.TS.000\AppData\Local\Temp\RenderDoc\Pything_2018.09.14_08.07.02_frame2387.rdc RDOC 006880: [17:07:57] d3d11_replay.cpp(3626) - Log - Created device. RDOC 006880: [17:07:58] d3d11_replay.cpp( 170) - Log - nVidia GPU detected - trying to initialise nVidia counters RDOC 006880: [17:07:58] nv_counters.cpp( 205) - Warning - NV GPU performance counters could not locate 'NvPmApi.Core.dll' RDOC 006880: [17:07:58] replay_controller.cpp(1869) - Log - Created replay driver. RDOC 006880: [17:07:58] d3d11_device_wrap.cpp( 921) - Error - Failed on resource serialise-creation, HRESULT: E_INVALIDARG RDOC 006880: [17:07:58] d3d11_device.cpp(1016) - Log - Timer chunk initialisation - 22.796 ms RDOC 006880: [17:07:58] replay_controller.cpp( 188) - Log - Shutting down replay renderer

Repro steps

I couldn't reduce the issue to a minimal setup for reproduction.

Environment

RenderDoc 1.1 64 bit Windows 10 D3D11 ( In-house graphics engine ) GeForce 1060

baldurk commented 6 years ago

Hi there, without a repro case or more information it's not possible for me to diagnose this further, as I don't know what the error is or what the UAV was.

gegogi commented 6 years ago
  1. Yes, replayed on the same computer that the capture was made.
  2. I am using CMAA 1.
  3. I will try that within several days. And, I will also make a simplest repro case. Thanks alway for a great tool.
baldurk commented 6 years ago

Thanks for the clarification. I tried testing with the CMAA 1 sample as well but I wasn't able to repro. I'd be interested to know if it crashes for you too. Otherwise yes if you're able to produce a smaller repro that would be great.

gegogi commented 6 years ago

Here is the log with DX debug layer attached on renderdoc side. I have no idea why desc.Format was UNKNOWN. Without renderdoc, it runs well with DX debug layer attached.

'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\qrenderdoc.exe'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\python36.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\Qt5Widgets.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\Qt5Gui.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\combase.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\sechost.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\Qt5Core.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\Qt5Svg.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\fltLib.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\Qt5Network.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\shell32.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\mpr.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\winmm.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\renderdoc.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\winmmbase.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.17134.228_none_f95000f73097dead\comctl32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'. Symbols loaded. RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 1024 in 1128kB: 0000015A14666040 -> 0000015A1477FBD8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 896kB: 0000015A14850080 -> 0000015A14930010 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 4 in 109kB: 0000015A14930090 -> 0000015A14944820 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 131072 in 12288kB: 0000015A1495E040 -> 0000015A1555DFE0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 832kB: 0000015A15560080 -> 0000015A15630018 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 32768 in 3840kB: 0000015A1576A040 -> 0000015A15B29FC8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 16384 in 1664kB: 0000015A15B3F040 -> 0000015A15CDEFD8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A118F7D20 -> 0000015A11977CE0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A15630090 -> 0000015A156B0050 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A156B00A0 -> 0000015A15730060 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A15CF0080 -> 0000015A15D70040 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A15D70090 -> 0000015A15DF0050 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 65535 in 6143kB: 0000015A160FB040 -> 0000015A166FAF80 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 768kB: 0000015A15DF00A0 -> 0000015A15EB0040 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 768kB: 0000015A15EB00B0 -> 0000015A15F70050 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 768kB: 0000015A15F700C0 -> 0000015A16030060 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool<WrappedID3D11Shader> 32768 in 2560kB: 0000015A16707040 -> 0000015A16986FF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool<WrappedID3D11Shader> 32768 in 2560kB: 0000015A16996040 -> 0000015A16C15FF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool<WrappedID3D11Shader> 32768 in 2560kB: 0000015A16C2D040 -> 0000015A16EACFF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool<WrappedID3D11Shader> 32768 in 2560kB: 0000015A16EB8040 -> 0000015A17137FF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool<WrappedID3D11Shader> 32768 in 2560kB: 0000015A1714F040 -> 0000015A173CEFF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool<WrappedID3D11Shader> 32768 in 2560kB: 0000015A173EB040 -> 0000015A1766AFF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A160300D0 -> 0000015A160B0090 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 16384 in 1024kB: 0000015A1767E040 -> 0000015A1777E000 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A17780080 -> 0000015A17800040 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 576kB: 0000015A17800090 -> 0000015A17890048 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A178900A0 -> 0000015A17910060 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 576kB: 0000015A179100B0 -> 0000015A179A0068 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A179A00C0 -> 0000015A17A20080 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\D3DCompiler_47.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded. RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 16 in 21kB: 0000015A15733F70 -> 0000015A15739088 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 1408kB: 0000015A17F84040 -> 0000015A180E3F90 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 4 in 18kB: 0000015A15739600 -> 0000015A1573CE58 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A17A247E0 -> 0000015A17AA47A0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 832kB: 0000015A17AA47F0 -> 0000015A17B74788 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 768kB: 0000015A17B74800 -> 0000015A17C347A0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 576kB: 0000015A17C34810 -> 0000015A17CC47C8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A17CC4820 -> 0000015A17D447E0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 65536 in 5120kB: 0000015A180FC040 -> 0000015A185FBFF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A17D44830 -> 0000015A17DC47F0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 16384 in 1152kB: 0000015A18600040 -> 0000015A1871FFF8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 1024kB: 0000015A18739040 -> 0000015A18838FC0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 512kB: 0000015A17DC4840 -> 0000015A17E44800 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 16384 in 7808kB: 0000015A18848040 -> 0000015A18FE7E58 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 768kB: 0000015A17E44850 -> 0000015A17F047F0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 768kB: 0000015A18FF0080 -> 0000015A190B0020 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 4 in 0kB: 0000015A160B6B40 -> 0000015A160B6C30 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 384kB: 0000015A17F0DF20 -> 0000015A17F6DEF0 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 384kB: 0000015A190B1F80 -> 0000015A19111F50 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 384kB: 0000015A19111F90 -> 0000015A19171F60 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 384kB: 0000015A19171FA0 -> 0000015A191D1F70 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 32768 in 1536kB: 0000015A19FCA040 -> 0000015A1A14A010 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A160B6F50 -> 0000015A160E6F38 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 131072 in 3072kB: 0000015A1A15A040 -> 0000015A1A45A028 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 131072 in 3072kB: 0000015A1A464040 -> 0000015A1A764028 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 131072 in 3072kB: 0000015A1A77B040 -> 0000015A1AA7B028 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A11978FD0 -> 0000015A119A8FB8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A191D1FB0 -> 0000015A19201F98 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A19201FC0 -> 0000015A19231FA8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 131072 in 3072kB: 0000015A1AA87040 -> 0000015A1AD87028 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 131072 in 3072kB: 0000015A1AD9F040 -> 0000015A1B09F028 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 32768 in 768kB: 0000015A19231FD0 -> 0000015A192F1FB8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A192F1FE0 -> 0000015A19321FC8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 32768 in 768kB: 0000015A19321FF0 -> 0000015A193E1FD8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A193E2000 -> 0000015A19411FE8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 32768 in 768kB: 0000015A19412010 -> 0000015A194D1FF8 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 32768 in 768kB: 0000015A194D2020 -> 0000015A19592008 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A19592030 -> 0000015A195C2018 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A195C2040 -> 0000015A195F2028 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 262144 in 6144kB: 0000015A1B0B5040 -> 0000015A1B6B5028 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A195F2050 -> 0000015A19622038 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A19622060 -> 0000015A19652048 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A19652070 -> 0000015A19682058 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A19682080 -> 0000015A196B2068 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A196B2090 -> 0000015A196E2078 RDOC 022136: [16:47:29] wrapped_pool.h( 160) - Debug - WrappingPool 8192 in 192kB: 0000015A196E20A0 -> 0000015A19712088 RDOC 022136: [16:47:29] win32_libentry.cpp( 54) - Debug - Not creating hooks - in replay app 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\dbghelp.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\symsrv.dll'. Symbols loaded. RDOC 022136: [16:47:30] core.cpp( 300) - Log - RenderDoc v1.1 64-bit Development (NO_GIT_COMMIT_HASH_DEFINED_AT_BUILD_TIME) loaded in replay application 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'. Symbols loaded. QTRD 022136: [16:47:30] qrenderdoc.cpp( 88) - Log - QRenderDoc initialising. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\qtplugins\platforms\qwindows.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'D:\Code\renderdoc-1.1\x64\Development\qtplugins\imageformats\qsvg.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'. Symbols loaded. The thread 0x4fb0 has exited with code 0 (0x0). QTRD 022136: [16:47:32] ToolWindowManager.cpp( 817) - Warning - invalid splitter encountered 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\IMGSF50Filter_x64.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\psapi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9415_none_08e0c10ba840a28a\msvcr90.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9415_none_08e0c10ba840a28a\msvcp90.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\DataExchange.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\dxgi.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'. Symbols loaded. RDOC 022136: [16:47:33] win32_process.cpp( 530) - Warning - Process adb could not be loaded. RDOC 022136: [16:47:33] win32_process.cpp( 970) - Warning - Couldn't launch process 'adb' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\WinTypes.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\IME\IMEKR\imkrtip.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\IME\shared\IMETIP.DLL'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\oleacc.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\dui70.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\IME\IMEKR\imkrapi.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\IME\shared\IMJKAPI.DLL'. Symbols loaded. RDOC 022136: [16:47:41] win32_process.cpp( 530) - Warning - Process adb could not be loaded. RDOC 022136: [16:47:41] win32_process.cpp( 970) - Warning - Couldn't launch process 'adb' RDOC 022136: [16:47:42] rdcfile.cpp( 239) - Log - Opening RDCFile D:/Code/nt-src/sources/cap_uav_crash.rdc RDOC 022136: [16:47:42] rdcfile.cpp( 299) - Debug - Opened capture file for read RDOC 022136: [16:47:42] rdcfile.cpp( 239) - Log - Opening RDCFile D:/Code/nt-src/sources/cap_uav_crash.rdc RDOC 022136: [16:47:42] rdcfile.cpp( 299) - Debug - Opened capture file for read RDOC 022136: [16:47:42] d3d11_replay.cpp(3474) - Debug - Creating a D3D11 replay device 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\d3d9.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_485c1c3102021986\nvldumdx.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\wintrust.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\imagehlp.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_485c1c3102021986\nvwgf2umx.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraWhitelisting64.dll'. Cannot find or open the PDB file. The thread 0x2b4c has exited with code 0 (0x0). 'qrenderdoc.exe' (Win32): Unloaded 'C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraWhitelisting64.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\nvspcap64.dll'. Cannot find or open the PDB file. The thread 0x59c4 has exited with code 0 (0x0). 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_485c1c3102021986\nvwgf2umx.dll' 'qrenderdoc.exe' (Win32): Unloaded 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_485c1c3102021986\nvldumdx.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\DXGIDebug.dll'. Symbols loaded. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_485c1c3102021986\nvldumdx.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_485c1c3102021986\nvwgf2umx.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Loaded 'C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraWhitelisting64.dll'. Cannot find or open the PDB file. 'qrenderdoc.exe' (Win32): Unloaded 'C:\Program Files\NVIDIA Corporation\Ansel\Tools\NvCameraWhitelisting64.dll' 'qrenderdoc.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'. Symbols loaded. The thread 0x6500 has exited with code 0 (0x0). RDOC 022136: [16:47:45] shader_cache.h( 139) - Debug - Successfully loaded 20 shaders from shader cache RDOC 022136: [16:47:45] d3d11_replay.cpp(3626) - Log - Created device. RDOC 022136: [16:47:46] d3d11_replay.cpp( 170) - Log - nVidia GPU detected - trying to initialise nVidia counters RDOC 022136: [16:47:46] nv_counters.cpp( 205) - Warning - NV GPU performance counters could not locate 'NvPmApi.Core.dll' RDOC 022136: [16:47:46] replay_controller.cpp(1869) - Log - Created replay driver. D3D11 WARNING: ID3D11Texture2D1::SetPrivateData: Existing private data of same name with different size found! [ STATE_SETTING WARNING #55: SETPRIVATEDATA_CHANGINGPARAMS] D3D11 ERROR: ID3D11Device::CreateUnorderedAccessView: The Format (0, UNKNOWN) is invalid when creating this View; using this format indicates to use the format of the Resource, however the Resource does not have a fully typed format: (0x1b, R8G8B8A8_TYPELESS). [ STATE_CREATION ERROR #2097343: CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT] D3D11 ERROR: ID3D11Device::CreateUnorderedAccessView: The Format (0, UNKNOWN) cannot be used, when creating a View of a Texture2D. [ STATE_CREATION ERROR #2097343: CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT] D3D11 ERROR: ID3D11Device::CreateUnorderedAccessView: The format (0, UNKNOWN) cannot be used with a Typed Unordered Access View. [ STATE_CREATION ERROR #2097343: CREATEUNORDEREDACCESSVIEW_INVALIDFORMAT] Exception thrown at 0x00007FFDFB8BA388 in qrenderdoc.exe: Microsoft C++ exception: _com_error at memory location 0x00000002DDDFE0D0. D3D11 ERROR: ID3D11Device::CreateUnorderedAccessView: Returning E_INVALIDARG, meaning invalid parameters were passed. [ STATE_CREATION ERROR #2097351: CREATEUNORDEREDACCESSVIEW_INVALIDARG_RETURN] RDOC 022136: [16:47:46] d3d11_device_wrap.cpp( 921) - Error - Failed on resource serialise-creation, HRESULT: E_INVALIDARG qrenderdoc.exe has triggered a breakpoint.

image

baldurk commented 6 years ago

Is it possible that this ID3D11UnorderedAccessView is being created for a backbuffer image obtained from an IDXGISwapChain? That might explain the problem and also would be easy to fix.

You can double check if while debugging you look at the pResource pointer, and if it's a WrappedID3D11Texture2D1 expand the members to see if m_RealDescriptor is NULL or a valid descriptor.

gegogi commented 6 years ago

Yes. I am exactly doing it to run CMAA onto back buffer image. I will double check the pResource pointer. Thank you.

baldurk commented 6 years ago

OK I should be able to fix that then, I didn't realise D3D11 allowed UAVs of the backbuffer.

baldurk commented 6 years ago

That commit should now fixup the view descriptor when creating a UAV of the backbuffer. Let me know if you still have trouble loading the capture.