无法启动Visual Studio 2019的并发可视化器



这与Visual Studio 2012中的Cannot start Concurrency Visualizer非常相似。收到错误"无法启动ETW收集";但误差是不同的。如果我从VS2019启动并发可视化器,它会显示错误"无法启动ETW收集",但如果我从命令行CVCollectionCmd.exe /Launch exe_path运行它,错误是

A fatal error happened while running the application: Failed to start the "NT Kernel Session"和堆栈跟踪

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)

如果我启动CVCollectionCmd.exe /Query,它报告Not collecting, ready to start.

此问题可能类似于PerfView问题https://github.com/microsoft/perfview/issues/1723。尝试禁用防御器实时保护。

最新更新