Nsight Graphics (2022.1.1.0) cannot profile vkcube on Ubuntu 18.04

Hi,

I’m trying to profile vkcube, but I can’t do anything in Nsight Graphics.

I tried to launch the frame debugger / frame profiler / GPU trace directly. By using the suggestions from Nsight Graphics 2022.1 fails to launch "vkcube" on Ubuntu 20.04.3 - #4 by dwoods vkcube runs, but it it fails to attach to the process

Preparing to launch...
Launched process: vkcube (pid: 3684)
/usr/bin/vkcube
Attempting to automatically connect...
Searching for attachable processes on localhost:49152-49215...
Attachable process detected: vkcube (pid: 3684)
- Status: Process created
- Uptime: 0.063s
Searching for attachable processes on localhost:49152-49215...
Attachable process updated: vkcube (pid: 3684)
- Status: No supported graphics API detected. GPU Trace supports Vulkan
- Uptime: 3.04s
Searching for attachable processes on localhost:49152-49215...
Attachable process updated: vkcube (pid: 3684)
- Status: Waiting for supported graphics API. GPU Trace supports Vulkan
- Uptime: 6.01s
Searching for attachable processes on localhost:49152-49215...
Searching for attachable processes on localhost:49152-49215...
Searching for attachable processes on localhost:49152-49215...

If I cancel, then attach to vkcube launched with the previous method, Nsight Graphics succeeds in connecting, but I can’t do anything (for example, Capture for Live Analysis, Next Frame and Resume are grayed out when using the frame debugger).

OS: Ubuntu 18.04
GPU: RTX 2080 Ti
Driver : 460.91.03

Hello,
Thank you for your feedback. Can you also try the workaround that was proposed by “user108742” in that other Forum Post you referenced here Nsight Graphics 2022.1 fails to launch "vkcube" on Ubuntu 20.04.3 - #3 by user108742. They suggested the following:

running vkcube with the following Launch/Environment works for Frame Debugging
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop:/home/doritos/tools/Nsight/NVIDIA-Nsight-Graphics-2022.1/target/linux-desktop-nomad-x64/NomadVulkanLayer; *where doritos is my user name.

Please let me know if that fixes your issue.

Regards,

Hi,
Thanks for your reply. Actually I was already using this workaround (without specifying XDG_DATA_DIRS vkcube wouldn’t run at all), but it turns out I made a typo (; instead of :), so this was my fault. Unlike the edit in the other Forum Post, I don’t need to add /home/doritos/tools/Nsight/NVIDIA-Nsight-Graphics-2022.1/target/linux-desktop-nomad-x64/GPUTraceVulkanLayer for profiling to work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.