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.