Visual Studio crashes with activated resharper during unloading of solutions
Completed
Hello,
i'm currently having problems with VS 2019 Enterprise (16.7.6) and ReSharper 2020.2.4 Build 202.0.20200925.65451.
When the ReSharper Extension is enabled, VS crashes when i'm trying to close a solution or when i'm closing VS. VS will not crash after deleting all bin and obj folders and even after rebuilding VS may close without any errors for a few times but at some point it will start crashing again.
Does anyone have or had this problem before or can someone can tell me where i can get help resolving this problem?
I would be very pleased for any help and thanks in advance for any help :)
The eventlog reports the follwing error:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-10-23T07:01:40.614436300Z" />
<EventRecordID>77185</EventRecordID>
<Channel>Application</Channel>
<Computer>...</Computer>
<Security />
</System>
<EventData>
<Data>Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentOutOfRangeException
at System.Collections.ArrayList.get_Item(Int32)
at System.Windows.Forms.Layout.ArrangedElementCollection.get_Item(Int32)
at System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(System.Windows.Forms.Layout.IArrangedElement, Boolean)
at System.Windows.Forms.Layout.DefaultLayout.xLayout(System.Windows.Forms.Layout.IArrangedElement, Boolean, System.Drawing.Size ByRef)
at System.Windows.Forms.Layout.DefaultLayout.LayoutCore(System.Windows.Forms.Layout.IArrangedElement, System.Windows.Forms.LayoutEventArgs)
at System.Windows.Forms.Layout.LayoutEngine.Layout(System.Object, System.Windows.Forms.LayoutEventArgs)
at System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs)
at System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs)
at System.Windows.Forms.ContainerControl.OnLayout(System.Windows.Forms.LayoutEventArgs)
at System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.LayoutEventArgs)
at System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(System.Windows.Forms.Layout.IArrangedElement, System.String)
at System.Windows.Forms.ScrollableControl.OnVisibleChanged(System.EventArgs)
at System.Windows.Forms.Control.OnParentVisibleChanged(System.EventArgs)
at System.Windows.Forms.Control.OnVisibleChanged(System.EventArgs)
at System.Windows.Forms.ScrollableControl.OnVisibleChanged(System.EventArgs)
at System.Windows.Forms.Control.WmShowWindow(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.ContainerControl.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
</Data>
</EventData>
</Event>
Please sign in to leave a comment.
Hello Simon,
Could you please describe the crash itself? Is it only a pop-up window? Or Visual Studio gets closed as well?
In addition, please run Visual Studio with the following command line: 'devenv /ReSharper.LogFile C:\log\resharper_log.txt /ReSharper.LogLevel Verbose'.
Try to reproduce the issue and upload the resulted 'resharper_log.txt' file to https://uploads.jetbrains.com/
Notice the Upload ID and share it with us.
a small popup dialog opens ("unloading projects") with a progress bar project 0 of x.
I'll try to recreated the error and upload the log file asap
VS freezes and the generic "Application crashed would you like to debug" dialog pops up. This popup shows up in event log as:
I uploaded the requested log.
Upload id: 2020_10_23_QM6NbD6YkBynWaJF (file: resharper_log.txt)
and i made a screenshot of the dialog that pops up right before VS freezes
Hi Simon,
Thank you for the logs! I have reproduced the same exception in logs, however, it did not cause Visual Studio freeze or fail. Could you please get the CaptureTraces dump for the hang?
Please share the resulted archive in the same manner via https://uploads.jetbrains.com/
Hi Alexander,
Thank you for your help. I collected the traces and i hope you can find the missing information.
You can find the resulting text files here:
Upload id: 2020_10_26_6kfsAXh7Cxjos49K (file: output.zip)
Hi Simon,
Thank you for your cooperation!
It was investigated, that the issue may relate to bug RSRP-479580.
Most probably it is caused by some improperly terminated tool-window.
Could you please notice all the opened tool-windows at the moment of freeze, or even make a screenshot?
Hi Alex,
i made some screenshots of my VS UI layout while coding, debugging and after VS crashed. I uploaded the images to:
Upload id: 2020_10_30_Pq3fnuoCfh9khenp (files: tools-window-debug.png and 5 more)
Hi Simon,
Thank you for the screenshots.
Please keep tracking the issue status at RSRP-479580.
This problem is still unsolved.
Currently with ReSharper version 2020.3.3 and VisualStudio 16.8.6 it is as bad as i could get. VisualStudio will crash two times every time:
Each of the above mentioned task take approximately:
This is really annoying and following the issue you mentioned lets me think that any development or investigation on this issue is stopped for now.
Hi Simon,
The issue is already fixed and going to be available in one of the next releases.
I will additionally notify you when the corresponding version released.
The bugfix has been released! The issue has been fixed in the scope of RSRP-479580.
Check out the new version ReSharper 2020.1.2