Visual Studio 2013 Profiler 崩溃,系统重启/重启

Wol*_*ich 5 windows-7 crash 64-bit visual-studio-2013

我有一个 HP Z440 工作站(E5-1680v4 和 128 GB RAM,BIOS 2.39 Rev.A)并且我使用的是 Visual Studio Professional 2013(更新 5)。操作系统为 Windows 7 64 位。

例如,当我在 C# 项目中使用 Visual Studio 中的 Profiler 时,它会崩溃并重新启动/重新启动我的 PC。

以下步骤重现该问题:

  1. 启动PC并打开Visual Studio
  2. 创建 C# 控制台应用程序 (.NET 4.0)
  3. 添加Console.WritLine("Hello World :-(");到主方法。
  4. 菜单/分析/性能和诊断。
  5. CPU 采样。
  6. HelloWorld例如选择项目。
  7. 已收集创建性能会话所需的所有信息。
  8. 单击FinishLunch profiling after the wizard finishes选中)。
  9. 单击是的以下对话框。 在此处输入图片说明
  10. Windows 要求提供我可以提供给他的管理员凭据。 在此处输入图片说明
  11. 我可以看到第二个标签页 (*.vsp) 显示Start the profiler. 之后,PC 崩溃并重新启动/重新启动

重新启动后,我可以在系统日志中看到一个严重错误:

系统已重新启动,而没有先彻底关闭。如果系统停止响应、崩溃或意外断电,可能会导致此错误。

任何想法会发生什么?去年(2017 年)我能够在同一台 PC 上使用 Visual Studio 2013 的 Profiler。唯一改变的是 Windows 更新和 BIOS(做 Meltdown 和 Spectre)。

我该怎么做才能再次分析我的代码?

小智 5

最近 MS 提供了注册表设置来禁用 Spectre/Meltdown 补丁。如果您的开发环境的安全配置文件可以禁用这些补丁,那么这些设置将允许分析器再次运行:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverride /t REG_DWORD /d 3 /f

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v FeatureSettingsOverrideMask /t REG_DWORD /d 3 /f
Run Code Online (Sandbox Code Playgroud)

重新启动,探查器应该会再次工作。

来源:https : //support.microsoft.com/en-us/help/4073119/protect-against-speculative-execution-side-channel-vulnerabilities-in