Visual Studio 在加载 UI 库时挂起 [英] Visual Studio Hangs on Loading UI Library

查看:21
本文介绍了Visual Studio 在加载 UI 库时挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难过,我正在考虑格式化我的硬盘并重新开始.我想我会尝试这个作为最后的努力.当我打开 Visual Studio 2012(不是解决方案,只是 VS 本身)时,它通常会挂起几分钟.过去的这段时间(参见下面的 XML)它挂了大约 13 分钟.

I'm stumped and I'm considering formatting my hard disk and starting fresh. I thought I'd try this as a last-ditch effort. When I open Visual Studio 2012 (not a solution, just VS itself), it usually hangs for minutes. This past time (see XML below) it hung for about 13 minutes.

以下是使用 /log 开关启动 VS 时来自 ActivityLog.xml 的片段.我不知道如何处理这些数据.许多谷歌搜索已经向其他人展示了类似但不相同的问题.如果您注意到下面的时间戳,您会发现问题集中在加载 UI 库"上.知道这实际上意味着什么或如何解决吗?

Below is the snippet from ActivityLog.xml when starting VS with the /log switch. I don't know what to make of this data. Much googling has shown others with similar, but not identical problems. If you notice the timestamps below, you'll see that the problem centers around "Loading UI library." Any idea what this actually means or how to fix it?

注意:显示的文件夹中不存在 VsLogUI.dll,所以我不确定它为什么要访问它.我的另一台笔记本电脑上也不存在该文件.路径中有两个斜杠,它在名为 IDE* 的文件夹中查找.好像一团糟.

Note: VsLogUI.dll does not exist in the folder shown, so I'm not sure why it's trying to access it. That file doesn't exist on my other laptop either. And the path has two slashes in it, and it's looking in a folder called IDE*. Just seems all messed-up.

  <entry>
    <record>1054</record>
    <time>2012/12/08 20:30:30.175</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>End package load [Visual Studio Logging Package]</description>
    <guid>{2DC9DAA9-7F2D-11D2-9BFC-00C04F9901D1}</guid>
  </entry>
  <entry>
    <record>1055</record>
    <time>2012/12/08 20:33:51.723</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Loading UI library</description>
    <guid>{2DC9DAA9-7F2D-11D2-9BFC-00C04F9901D1}</guid>
    <path>C:\Program Files (x86)\Microsoft Visual Studio 11.0\\Common7\IDE*\VsLogUI.dll</path>
  </entry>
  <entry>
    <record>1056</record>
    <time>2012/12/08 20:42:28.350</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{F384B236-B4A9-401B-BC58-3106E3ACA3EC}</guid>
  </entry>

编辑 - 我在下面将其作为答案,但没有用.它适用于 VS 的几次启动,但在安装了一些扩展后,延迟再次发生.我被卡住了.

虽然我不知道为什么会发生这种情况,但我似乎找到了解决方法.创建文本文件并将其重命名为 VsLogUI.dll 后,VS 2012 开始快速打开.显然,该文件只需要存在.我把它放在这里:

While I don't know why this happened, I appear to have found a work-around. After creating a text file, and renaming it to VsLogUI.dll, VS 2012 started opening quickly. Apparently that file just needed to exist. I put it here:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\

我打赌这个变通办法也能奏效,虽然我有点害怕尝试它,因为它会改变注册表.我想我可以先备份注册表.无论如何,这出现在注册表中:

I'm betting that this work-around will work as well, although I'm a bit afraid to try it because it's changing the registry. I guess I could back up the registry first. Anyway, this appears in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSDN\8.0\Packages{2DC9DAA9-7F2D-11d2-9BFC-00C04F9901D1}

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MSDN\8.0\Packages{2DC9DAA9-7F2D-11d2-9BFC-00C04F9901D1}

它有一个名为 SatelliteDll 的子文件夹.它有一个名为 DllName 的属性,值为 VsLogUI.dll.我敢打赌,如果我删除该注册表项,问题就会消失.

It has a subfolder called SatelliteDll. That has a property called DllName, with a value of VsLogUI.dll. I bet if I delete that registry entry, the problem would go away.

推荐答案

当我的 Fusion Log 文件夹中有大量数据 (~5 GB) 时,我遇到了这个问题.通过在此处查看注册表来检查是否启用了 Fusion Log:

This issue occured to me when my Fusion Log folder to much data in it (~5 GB). Check to see if Fusion Log is enabled by looking in the registry here:

HKLM\Software\Microsoft\Fusion\ForceLog

HKLM\Software\Microsoft\Fusion\ForceLog

此键告诉您将数据记录到何处:

This key tells you where it's loggin the data to:

HKLM\Software\Microsoft\Fusion\LogPath

HKLM\Software\Microsoft\Fusion\LogPath

转储内容,希望您的加载速度恢复正常.

Dump the contents and hopefully your load speed resumes to normal.

这篇关于Visual Studio 在加载 UI 库时挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆