R# very slow and lots of exceptions in log (Visual Studio 2019)
Hi
VS reports resharper extension causing continual 'Visual Studio stopped responding' messages.
I've checked the R# logs and it appears to be constantly throwing exceptions such as:
10:27:52.083 |E| | JetPool(S) #5:67 | Destination array is not long enough to copy all the items in the collection. Check array index and length.
--- EXCEPTION #1/2 [ArgumentException]
Message = “Destination array is not long enough to copy all the items in the collection. Check array index and length.”
ExceptionPath = Root.InnerException
ClassName = System.ArgumentException
HResult = E_INVALIDARG=COR_E_ARGUMENT=WIN32_ERROR_INVALID_PARAMETER=80070057
Source = mscorlib
StackTraceString = “
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.ValueCollection.CopyTo(TValue[] array, Int32 index)
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptGraph.get_Nodes()
at JetBrains.ReSharper.Psi.BuildScripts.ReferenceManager.BuildDeclaredElements(BuildScriptGraph graph)
at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.ForceGraphLoad()
at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.CheckBuildScriptGraph()
at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.BuildStateForFile(IPsiSourceFile psiSourceFile, Boolean isStartup)
at JetBrains.ReSharper.Psi.BuildScripts.InclusionEngine.BuildScriptCache.Build(IPsiSourceFile sourceFile, Boolean isStartup)
at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass15_0.<BuildSourceFile>b__0()
”
--- Outer ---
--- EXCEPTION #2/2 [LoggerException]
Message = “Destination array is not long enough to copy all the items in the collection. Check array index and length.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = “JetPool(S) #5”
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass15_0.<BuildSourceFile>b__0()
at JetBrains.Util.Logging.ILoggerStructuredEx.DoCalculation[T](LoggerWithSeverity logger, String key, String message, Func`1 action, Func`2 report)
at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.BuildSourceFile(IPsiSourceFile sourceFile, IDocument doc)
at JetBrains.ReSharper.Psi.Caches.Jobs.JobUpdateProjectFiles.<>c__DisplayClass14_1.<ExecuteUpdate>b__1(IPsiSourceFile file, IDocument doc)
at JetBrains.ReSharper.Psi.Caches.Jobs.CacheJobService2.<>c__DisplayClass37_0`2.<WrappedJob>b__0()
at JetBrains.ReSharper.Psi.Caches.Jobs.CacheJobService2.<>c__DisplayClass35_0`2.<ExecuteWithPrerocessAndInterrupt>b__1(T x, TPreprocessResult y)
at JetBrains.Application.Threading.Tasks.TaskHostEx.<>c__DisplayClass5_1`2.<PreprocessSingleThreadedAndParallelize>b__1()
at JetBrains.Application.Threading.Tasks.TaskHost.AccessViolationCatcher(Action action)
at JetBrains.Application.Threading.Tasks.TaskHost.<>c__DisplayClass36_0.<Create>b__1(Object state)
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
at System.Threading.Tasks.TaskScheduler.TryExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.Scheduler.JetScheduler.ExecuteTask(Task task)
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.EnqueueNextTask()
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.ThreadPoolProc()
at ANNOTATED: JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread #2.JetPool(S) #5(Action )
at JetBrains.Util.Reflection.CallStackAnnotation.InvokeAnnotated(String classNameOfNewFrame, String methodNameOfNewFrame, Action actionToAnnotate)
at JetBrains.Util.Reflection.CallStackAnnotation.CatchAnnotatedInvocation[TClassOfNewFrame](String methodNameOfNewFrame, Action actionToAnnotate)
at JetBrains.Application.Threading.Tasks.Scheduler.JetSchedulerThread.<>c__DisplayClass6_0.<.ctor>b__0()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
”
Any help would be appreciated. Its unusably slow/freezing currently. I'm using 2019.3.4 193.0.20200227 (updated last night although it was like this before the update).
Please sign in to leave a comment.
Hello Adam,
thank you for the feedback.
Could you please provide us a full log file? You can share it using "Submit a request" form at the top of the page.
Thank you.
The same issue has happened for me.
What I have done:
Nothing helps. I am glad to share the full logs, but the message is too long for this form.
Versions of installed stuff:
Microsoft Visual Studio Professional 2019
Version 16.7.7
VisualStudio.16.Release/16.7.7+30621.155
Microsoft .NET Framework
Version 4.8.03752
Installed Version: Professional
Visual C++ 2019 00435-60000-00000-AA819
Microsoft Visual C++ 2019
ASP.NET and Web Tools 2019 16.7.532.28833
ASP.NET and Web Tools 2019
ASP.NET Core Razor Language Services 16.1.0.2035807+72d099b977d3a85e65fa3b0614ca8cfc803fef02
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2019 16.7.532.28833
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 16.7.532.28833
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 16.7.532.28833
Azure Functions and Web Jobs Tools
C# Tools 3.7.0-6.20514.1+600c0dadd199296df3ed07dfabdc014563a77f7c
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info
JetBrains ReSharper 2020.2.4 Build 202.0.20200925.65451
JetBrains ReSharper package for Microsoft Visual Studio. For more information about ReSharper, visit http://www.jetbrains.com/resharper. Copyright © 2020 JetBrains, Inc.
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.30701.1
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 2.1.79+ge3567815aa.RR
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
NuGet Package Manager 5.7.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Office Developer Tools for Visual Studio 16.0.30215.00
Microsoft Office Developer Tools for Visual Studio
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
SQL Server Data Tools 16.0.62008.03130
Microsoft SQL Server Data Tools
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 16.0.20702.2001
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 3.7.0-6.20514.1+600c0dadd199296df3ed07dfabdc014563a77f7c
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual C++ for Linux Development 1.0.9.30523
Visual C++ for Linux Development
Visual F# Tools 10.10.0.0 for F# 4.7 16.7.0-beta.20361.3+3ef6f0b514198c0bfa6c2c09fefe41a740b024d5
Microsoft Visual F# Tools 10.10.0.0 for F# 4.7
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Container Tools Extensions (Preview) 1.0
View, manage, and diagnose containers within Visual Studio.
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
WiX Toolset Visual Studio Extension 1.0.0.4
WiX Toolset Visual Studio Extension version 1.0.0.4
Copyright (c) .NET Foundation and contributors. All rights reserved.
Workflow Manager Tools 1.0 1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.
Hello Anzhelika Deryabina
Please use "Submit a request" form at the top of this page and attach log files to the request.
Thanks in advance.