Hi!
I am trying to capture a frame in a program that uses Vulkan raytracing. However, the process crashes at some point during the capturing process and the Output Messages tab in Nsight Graphics shows
1,,Host,NVIDIA Nsight Graphics,Project 'simple' updated from version 1.2 to version 1.3.
2,,Target,NVIDIA Nsight Graphics,Graphics interception initialized
3,,Target,NVIDIA Nsight Graphics,"Adding VK_BUFFER_CREATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT to buffer with device address usage. This can be disabled via ""Vulkan > Device Address C++ Support"""
4,,Target,NVIDIA Nsight Graphics,"Adding VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_CAPTURE_REPLAY_BIT to memory allocation with device address support. This can be disabled via ""Vulkan > Device Address C++ Support"""
5,,Target,Nsight Capture Timings,Capture progress checkpoint: Preparing for capture @ 0 s
6,,Target,Nsight Capture Timings,Capture progress checkpoint: Saving initial state @ 0.033 s
7,,Target,Nsight Capture Timings,Capture progress checkpoint: Capturing function stream @ 0.043 s
8,,Target,Nsight Capture Timings,Capture progress checkpoint: Building event database @ 0.525 s
9,,Target,Nsight Capture Timings,Capture progress checkpoint: Processing object mutations @ 0.526 s
10,,Target,Nsight Capture Timings,Capture progress checkpoint: Starting replay @ 0.528 s
11,,Target,NVIDIA Nsight Graphics,Vulkan device lost: Internal error attempting to replay event 117
12,,Target,NVIDIA Nsight Graphics,Failed to replay event 117 due to an internal error (subsequent data will be incorrect)
I am assuming that my program is faulty in a way that makes the frame capture fail. However, the program does not trigger any Vulkan validation layer messages and doesn’t crash when run outside Nsight Graphics. I have yet to spot anything obviously wrong with my code. What can I do to get the crash resolved / work around it?
Gregor