2.5 Build 301 throws exception on launch

When launching VS for the first time after installing R#, VS hangs for a really long time while doing the full menu initialization. Eventually it threw the following exception:

JetBrains.ReSharper.Util.InternalErrorException: An exception has been thrown during component initialization
An exception has occurred ---> JetBrains.ReSharper.Util.InternalErrorException: An exception has been thrown during component initialization ---> System.NullReferenceException: Object reference not set to an instance of an object.
at JetBrains.VSAddin.ActionManagement.VSShortcutsManager.GetShortcutsFilePath() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSShortcutsManager.cs:line 38
at JetBrains.VSAddin.ActionManagement.VSShortcutsManager.Save() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSShortcutsManager.cs:line 218
at JetBrains.VSAddin.ActionManagement.VSActionManager.SetupShortcuts(IProgressIndicator progressIndicator) in c:\Agent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSActionManager.cs:line 1794
at JetBrains.VSAddin.ActionManagement.VSActionManager.Init() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\ActionManagement\VSActionManager.cs:line 216
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponent(IComponent component, XmlElement configurationElement) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 183
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponentIfNeeded(IComponent component) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 141
--- End of inner exception stack trace ---

at JetBrains.ReSharper.Util.InternalErrorException..ctor(String, Exception) in c:\Agent\work\ReSharper-Main\src\Util\src\InternalErrorException.cs:line 28 column 7
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponentIfNeeded(IComponent) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 145 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponent(Type) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 336 column 9
at JetBrains.ReSharper.ActionManagement.ActionManager.get_Instance() in c:\Agent\work\ReSharper-Main\src\ActionManagement\src\ActionManager.cs:line 12 column 50
at JetBrains.ReSharper.BuildScriptSupport.Psi.Impl.MSBuild.MSBuildLanguageService.Init() in c:\Agent\work\ReSharper-Main\src\BuildScriptSupport\src\Psi\Impl\MSBuild\MSBuildLanguageService.cs:line 156 column 6
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponent(IComponent, XmlElement) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 184 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponentIfNeeded(IComponent) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 141 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponent(Type) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 336 column 9
at JetBrains.ReSharper.Psi.LanguageServiceManager.TypesLoaded(ICollection`1, ICollection`1) in c:\Agent\work\ReSharper-Main\src\Psi\src\LanguageServiceManager.cs:line 71 column 9
at JetBrains.ReSharper.Shell.AssemblyManager.DispatchLoadAssembliesToHandler(ICollection`1, ITypeLoadingHandler) in c:\Agent\work\ReSharper-Main\src\Shell\src\AssemblyManager.cs:line 102 column 5
at JetBrains.ReSharper.Shell.ShellBase.RegisterTypeLoadingHandler(ITypeLoadingHandler) in c:\Agent\work\ReSharper-Main\src\Shell\src\ShellBase.cs:line 70 column 5
at JetBrains.ReSharper.Psi.LanguageServiceManager.Init() in c:\Agent\work\ReSharper-Main\src\Psi\src\LanguageServiceManager.cs:line 35 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponent(IComponent, XmlElement) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 184 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponentIfNeeded(IComponent) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 141 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponentByImplType(Type) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 349 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponents() in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 364 column 9
at JetBrains.ReSharper.Component.ComponentContainer.JetBrains.ReSharper.Component.IComponentLoadingHandler.ComponentsLoaded(List`1, Dictionary2`2) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 471 column 7
at JetBrains.ReSharper.Component.ComponentDescriptorsCache.RegisterHandler(Type, Type, Assembly, IComponentLoadingHandler) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentDescriptorsCache.cs:line 56 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponents() in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 212 column 5
at JetBrains.ReSharper.Shell.UIApplicationShell.InitializeComponents() in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 773 column 9
at JetBrains.ReSharper.Shell.VSIntegration.VSShell.InitializeComponents() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Shell\VSShell.cs:line 451 column 7
at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 105 column 9
at JetBrains.ReSharper.Shell.VSIntegration.VSShell.<.ctor>b__2() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Shell\VSShell.cs:line 273 column 33
at JetBrains.ReSharper.Shell.UIApplicationShell.InvokePendingActions() in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 687 column 13
at JetBrains.ReSharper.Shell.UIApplicationShell.InvokeReentrantSafe(Action) in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 674 column 5
at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE, AddIn) in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Shell\VSShell.cs:line 271 column 9
at JetBrains.VSAddin.AbstractAddIn.Startup() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 43 column 9
at JetBrains.VSAddin.AbstractAddIn.OnStartupComplete(Array&) in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 227 column 9


--- End of inner exception stack trace ---

at JetBrains.ReSharper.Util.Logger.LogExceptionEx(Exception, String, Boolean) in c:\Agent\work\ReSharper-Main\src\Util\src\Logger.cs:line 350 column 9
at JetBrains.ReSharper.Util.Logger.LogException(Exception) in c:\Agent\work\ReSharper-Main\src\Util\src\Logger.cs:line 362 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponentIfNeeded(IComponent) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 145 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponent(Type) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 336 column 9
at JetBrains.ReSharper.ActionManagement.ActionManager.get_Instance() in c:\Agent\work\ReSharper-Main\src\ActionManagement\src\ActionManager.cs:line 12 column 50
at JetBrains.ReSharper.BuildScriptSupport.Psi.Impl.MSBuild.MSBuildLanguageService.Init() in c:\Agent\work\ReSharper-Main\src\BuildScriptSupport\src\Psi\Impl\MSBuild\MSBuildLanguageService.cs:line 156 column 6
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponent(IComponent, XmlElement) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 184 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponentIfNeeded(IComponent) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 141 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponent(Type) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 336 column 9
at JetBrains.ReSharper.Psi.LanguageServiceManager.TypesLoaded(ICollection`1, ICollection`1) in c:\Agent\work\ReSharper-Main\src\Psi\src\LanguageServiceManager.cs:line 71 column 9
at JetBrains.ReSharper.Shell.AssemblyManager.DispatchLoadAssembliesToHandler(ICollection`1, ITypeLoadingHandler) in c:\Agent\work\ReSharper-Main\src\Shell\src\AssemblyManager.cs:line 102 column 5
at JetBrains.ReSharper.Shell.ShellBase.RegisterTypeLoadingHandler(ITypeLoadingHandler) in c:\Agent\work\ReSharper-Main\src\Shell\src\ShellBase.cs:line 70 column 5
at JetBrains.ReSharper.Psi.LanguageServiceManager.Init() in c:\Agent\work\ReSharper-Main\src\Psi\src\LanguageServiceManager.cs:line 35 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponent(IComponent, XmlElement) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 184 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponentIfNeeded(IComponent) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 141 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponentByImplType(Type) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 349 column 9
at JetBrains.ReSharper.Component.ComponentContainer.GetComponents() in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 364 column 9
at JetBrains.ReSharper.Component.ComponentContainer.JetBrains.ReSharper.Component.IComponentLoadingHandler.ComponentsLoaded(List`1, Dictionary2`2) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 471 column 7
at JetBrains.ReSharper.Component.ComponentDescriptorsCache.RegisterHandler(Type, Type, Assembly, IComponentLoadingHandler) in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentDescriptorsCache.cs:line 56 column 5
at JetBrains.ReSharper.Component.ComponentContainer.InitializeComponents() in c:\Agent\work\ReSharper-Main\src\Shell\src\ComponentContainer.cs:line 212 column 5
at JetBrains.ReSharper.Shell.UIApplicationShell.InitializeComponents() in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 773 column 9
at JetBrains.ReSharper.Shell.VSIntegration.VSShell.InitializeComponents() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Shell\VSShell.cs:line 451 column 7
at JetBrains.ReSharper.Shell.UIApplicationShell.Init() in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 105 column 9
at JetBrains.ReSharper.Shell.VSIntegration.VSShell.<.ctor>b__2() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Shell\VSShell.cs:line 273 column 33
at JetBrains.ReSharper.Shell.UIApplicationShell.InvokePendingActions() in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 687 column 13
at JetBrains.ReSharper.Shell.UIApplicationShell.InvokeReentrantSafe(Action) in c:\Agent\work\ReSharper-Main\src\Shell\src\UIApplicationShell.cs:line 674 column 5
at JetBrains.ReSharper.Shell.VSIntegration.VSShell..ctor(DTE, AddIn) in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Shell\VSShell.cs:line 271 column 9
at JetBrains.VSAddin.AbstractAddIn.Startup() in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 43 column 9
at JetBrains.VSAddin.AbstractAddIn.OnStartupComplete(Array&) in c:\Agent\work\ReSharper-Main\src\VSAddin\src\Connect.cs:line 227 column 9

1 comment
Comment actions Permalink

Hello,

We appreciate your feedback.

The corresponding JIRA request has been created, and you are welcome to monitor
its status at http://www.jetbrains.net/jira/browse/RSRP-32031.

Best regards,
- Development Team.


0

Please sign in to leave a comment.