It is very simalar to Cannot start Concurrency Visualizer in Visual Studio 2012. Got error "Unable to start the ETW collection" but the error differents.
If I start Concurrency Visualizer from VS2019 it showes the error "Unable to start the ETW collection", but if I run it from command line CVCollectionCmd.exe /Launch exe_path
the error is
A fatal error happened while running the application: Failed to start the "NT Kernel Session"
and stack trace
Exception 'System.ServiceModel.FaultException`1[Microsoft.ConcurrencyVisualizer.Common.CollectionFault]', trace:
Server stack trace:
в System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
в System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
в System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
в System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
в System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
в System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
в Microsoft.ConcurrencyVisualizer.Common.ICollectionService.StartTracing(TraceProviders providers, String tracingDir, String traceFileNamePrefix, EtwBufferSettings kernelBufferSettings, EtwBufferSettings userBufferSettings)
в Microsoft.ConcurrencyVisualizer.CommandLine.CollectionServiceManager.StartCollectionForTarget(LocalConfig config, TargetBase target)
в Microsoft.ConcurrencyVisualizer.CommandLine.LaunchCommand.Execute(CollectionCmdReader reader)
в Microsoft.ConcurrencyVisualizer.CommandLine.CollectionCmdApp.Main(String[] args)
If I start CVCollectionCmd.exe /Query
it reportes Not collecting, ready to start.