Nsight fails to launch application with Injecting failed error


I was happily using Nsight (2020.1.0 and recently 2020.1.1) and “all of a sudden”, I systematically get this error:

I could not find any references to this type of error and there is no log or information about the cause.
I tried to reinstall Nsight and the Vulkan SDK without success.

It fails really fast so at this time I am not suspecting changes in my app.
Am I correct in this assumption?

Nsight works well with the vkcube.exe that comes with the Vulkan SDK.
So the issue is on my side…

Nsight works well when I switch to the debug build of my app (it is a Rust app).

Sorry you ran into the initial issue where Nsight Graphics was failing to launch your application. Sounds like it is working with other Vulkan apps though and you confirm that the issue is on your side.
As always thank you for using Nsight Graphics and continuing to provided feedback on our tool.

What are possible causes of the “Launch failure: Injecting failed” error ?

And now the release build works again when running under Nsight.
Looks like a full rebuild helped…

I have a lot of moving parts in my app. Got to be more careful when upgrading parts.

Thanks for the update. Sounds like you have a path forward now. Let me know if that is not the case.

So I’ve been having these “Launch failure: Injecting failed” errors on and off since last posting here.
I am still getting them with the latest Nsight version (2021.2.1).

Good news is that I am now able to reproduce them at will by putting my application in a given state.

My application optionally uses ray tracing features and the “Injecting failed” error will happen when turning off these features. When these features are turned off then ray tracing extensions are not enabled, etc.

Once the error happens, I can work around it by :

  • enabling just the VK_KHR_acceleration_structure device extension,
  • and, it gets crazy here, calling a NOP function that only prints a message to the log.

I am pretty sure my code is not very clean when it comes to disabling the features that need RT.

Would be great if Nsight could give some indications as to why injection failed. AFAIK there is no such indications.

Also, if you think that the injection failures are not supposed to happen then I can provide more details on my repro case.

Thank you for your feedback on Nsight Graphics and I’m sorry you ran into this issue. From brief discussions with the engineering manager this may be tough to resolve without access to the app you used. Let’s discuss via email. My email address is dwoods@nvidia.com