Nsight Systems Failed to start profiling session

Hello, Nsight system is unable to launch my application neither using the GUI or in the command line.

Here is the full error shown in the GUI

Full error information:
StartAnalysisError (4105) {
RuntimeError (120) {
OriginalExceptionClass: class boost::exception_detail::clone_impl
OriginalFile: C:\BuildAgent\work\20a3cfcd1c25021d\QuadD\Host\Analysis\Clients\AnalysisHelper\AnalysisStatus.cpp
OriginalLine: 80
OriginalFunction: class Nvidia::QuadD::Analysis::Data::AnalysisStatusInfo __cdecl QuadDAnalysis::AnalysisHelper::AnalysisStatus::MakeFromErrorString(enum Nvidia::QuadD::Analysis::Data::AnalysisStatus,enum Nvidia::QuadD::Analysis::Data::AnalysisErrorType::Type,const class std::basic_string<char,struct std::char_traits,class std::allocator > &,const class boost::intrusive_ptr &)
ErrorText: Failed to start analysis.
}
}

and this is output when using the CLI
Dynamic exception type: class LauncherDetail::Exception
std::exception::what: Injecting failed

Here is an extract of the log file.

I16:26:30:577|quadd_gpuinfo_cta| 5244|CudaToolsApi.cpp:77[anonymous-namespace'::GetCudaVisibleDevicesController]: IgnoreCudaVisibleDevices = 1 I16:26:32:154|quadd_agent_controller| 4432|Controller.cpp:532[void_> >::HandleNotification]: Agent state: Configured. I16:26:32:202|quadd_gpuinfo_dta| 5244|DevToolsApi.cpp:21[anonymous-namespace’::CreatePersistenceGuard]: EnableGpuPersistence = 1
I16:26:32:210|drvacc| 5244|:145: Trying to load driver module: ‘nvcuda.dll’: 00007FFB439A0000
I16:26:32:222|quadd_gputraits| 5244|GpuTicksConverter.cpp:160[DiscreteGpuDevice::DiscreteGpuDevice]: GpuTimeInterpolateFromFirstToLast = 1
E16:38:34:013|quadd_agent_api| 5244|LocalAgentAPI.cpp:100[<lambda_7cdbc96ddb3a129fb78707e3325491ae>::operator ()]: Failed to launch process: Dynamic exception type: class LauncherDetail::Exception
std::exception::what: Injecting failed
.
E16:38:34:030|quadd_agent_controller| 4432|Controller.cpp:119[Controller::HandleResponse]: Request 0000013FF01750C0 failed: Dynamic exception type: class LauncherDetail::Exception
std::exception::what: Injecting failed
.
E16:38:34:046|quadd_agent_controller| 4432|Controller.cpp:142[Controller::CompleteStatus]: Dynamic exception type: class LauncherDetail::Exception
std::exception::what: Injecting failed

Dynamic exception type: class LauncherDetail::Exception
std::exception::what: Injecting failed
I16:38:34:060|quadd_pbcomm_proxy| 5244|ClientProxy.cpp:70[ClientProxy::HandleTerminate]: ClientProxy[0000013FF222B460] is t
erminating.
I16:38:34:077|quadd_common_core|16444|AsyncProcessorHolder.h:62[AsyncProcessor>::Terminate]: AsyncProcessorHolder[0000002D6F0FF758]: Stopping
I16:38:34:077|quadd_pbcomm_tcp| 5244|Communicator.cpp:531[CommunicatorCreator::~CommunicatorCreator]: CommunicatorCreator[0000013FF025C060] destroyed.
I16:38:34:087|quadd_common_core|16444|AsyncProcessor.cpp:111[AsyncProcessor::Stop]: 1Comm@AsyncProcessor[0000013FF21B11B0] is stopping.
I16:38:34:106|quadd_common_core|16444|AsyncProcessor.cpp:125[AsyncProcessor::Stop]: 1Comm@AsyncProcessor[0000013FF21B11B0] is waiting for work threads finish.
I16:38:34:106|quadd_common_core| 5244|AsyncProcessor.cpp:80[<lambda_4fb054908e90e563065d366eefedad7c>::operator ()]: Thread[5244] stopped servicing 1Comm@AsyncProcessor.
I16:38:34:106|quadd_pbcomm_proxy|19896|ClientProxy.cpp:60[ClientProxy::~ClientProxy]: ClientProxy[0000013FF222B460] is destroying.
I16:38:34:135|quadd_common_core|19896|AsyncProcessor.cpp:80[<lambda_4fb054908e90e563065d366eefedad7c>::operator ()]: Thread[19896] stopped servicing 1Comm@AsyncProcessor.
I16:38:34:146|quadd_common_core|16444|AsyncProcessor.cpp:133[AsyncProcessor::Stop]: 1Comm@AsyncProcessor[0000013FF21B11B0] stopped.
I16:38:34:154|quadd_common_core|16444|AsyncProcessor.cpp:111[AsyncProcessor::Stop]: 2Worker@AsyncProcessor[0000013FF025C380] is stopping.
I16:38:34:163|quadd_common_core|16444|AsyncProcessor.cpp:125[AsyncProcessor::Stop]: 2Worker@AsyncProcessor[0000013FF025C380] is waiting for work threads finish.
I16:38:34:163|quadd_common_core|17440|AsyncProcessor.cpp:80[<lambda_4fb054908e90e563065d366eefedad7c>::operator ()]: Thread[17440] stopped servicing 2Worker@AsyncProcessor.
I16:38:34:163|quadd_common_core| 4432|AsyncProcessor.cpp:80[<lambda_4fb054908e90e563065d366eefedad7c>::operator ()]: Thread[4432] stopped servicing 2Worker@AsyncProcessor.
I16:38:34:193|quadd_common_core|16444|AsyncProcessor.cpp:133[AsyncProcessor::Stop]: 2Worker@AsyncProcessor[0000013FF025C380] stopped.
I16:38:34:201|quadd_common_core|16444|AsyncProcessorHolder.h:78[AsyncProcessor>::Terminate]: AsyncProcessorHolder[0000002D6F0FF758]: Destroying
I16:38:34:211|quadd_pbcomm_tcp|16444|Communicator.cpp:76[Communicator::~Communicator]: Communicator[0000013FF225CF50] destroyed.

Can you tell me a little more about your application and about what options you are trying to run?

What version of Nsight Systems are you using?

@jyi can you look into this?