Failed to connect (host: localhost, pid: 154893). The target may already have exited.
From the terminal, this appears to be the error:
01glfw: …/…/vendor/volcano/vendor/vulkan-loader/loader/loader.h:404: loader_init_dispatch: Assertion `valid_loader_magic_value(obj) && "Incompatible ICD, first dword must be initialized to " “ICD_LOADER_MAGIC. See loader/README.md for details.”’ failed.
The problem appears to be that recent versions of the Vulkan Loader are incompatible with NVIDIA Nsight Graphics. New Vulkan loaders check ICD_LOADER_MAGIC.
I Layer “VK_LAYER_RENDERDOC_Capture” using deprecated ‘vkGetInstanceProcAddr’ tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag.
I Layer “VK_LAYER_RENDERDOC_Capture” using deprecated ‘vkGetDeviceProcAddr’ tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag.
I Layer “VK_LAYER_NV_nomad” using deprecated ‘vkGetInstanceProcAddr’ tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag.
I Layer “VK_LAYER_NV_nomad” using deprecated ‘vkGetDeviceProcAddr’ tag which was deprecated starting with JSON file version 1.1.0. The new vkNegotiateLayerInterfaceVersion function is preferred, though for compatibility reasons it may be desirable to continue using the deprecated tag.
linkmap: l_name=/usr/lib/x86_64-linux-gnu/libGL.so.1
I Insert instance layer VK_LAYER_NV_nomad (libNvda.Graphics.Interception.so)
01glfw: …/…/vendor/volcano/vendor/vulkan-loader/loader/loader.h:404: loader_init_dispatch: Assertion `valid_loader_magic_value(obj) && "Incompatible ICD, first dword must be initialized to " “ICD_LOADER_MAGIC. See loader/README.md for details.”’ failed.
This fixed an issue where vkCreateInstance failed with -9 (VK_ERROR_INCOMPATIBLE_DRIVER). The console also reported “loader_scanned_icd_add: Attempt to retrieve either ‘vkGetInstanceProcAddr’ or ‘vk_icdGetInstanceProcAddr’ from ICD libGL.so.1 failed.”
NVIDIA Nsight reported “Failed to connect (host: localhost, pid: 154893). The target may already have exited.” This is correct: the process aborted after vkCreateInstance failed.
I modified the symbolic link /sbin/modinfo. It pointed to /bin/kmod, but I pointed it to /usr/local/bin/fix-modinfo-nvidia which was a quick shell script I created:
#!/bin/bash
if [ "$" == “nvidia” ]; then
exec /usr/local/bin/fix/modinfo nvidia_current
else
exec /usr/local/bin/fix/modinfo $
fi
The file /usr/local/bin/fix/modinfo is a symbolic link to /bin/kmod. This fixed the following error I was seeing in the console:
modinfo: ERROR: Module nvidia not found.
Using “modinfo nvidia” produces that error, while “modinfo nvidia_current” correctly shows the output. I tried “modprobe --resolve-alias nvidia” to see if the alias was correctly set up, and it is not. (modprobe --resolve-alias nvidia outputs “nvidia” where it should output “nvidia_current”)
I didn’t want to go too far down the rabbit hole on module aliases and driver setup so I just inserted that bash script to make “modinfo nvidia” work.
Wanted to let you know that this issue has been fixed in our hot patch we released late last week! Please download Nsight Graphics again and let me know if you run into any other issues.