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>
11 comments
Comment actions Permalink

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.

0
Comment actions Permalink

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:

<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2020-10-23T07:01:44.057263900Z" />
<EventRecordID>77186</EventRecordID>
<Channel>Application</Channel>
<Computer>...</Computer>
<Security />
</System>
<EventData>
<Data>devenv.exe</Data>
<Data>16.7.30611.23</Data>
<Data>5f83d64a</Data>
<Data>KERNELBASE.dll</Data>
<Data>10.0.17763.1518</Data>
<Data>c4258670</Data>
<Data>e0434352</Data>
<Data>001225f2</Data>
<Data>2ce8</Data>
<Data>01d6a8694bd63014</Data>
<Data>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.exe</Data>
<Data>C:\WINDOWS\System32\KERNELBASE.dll</Data>
<Data>a6a09f35-1ef0-4197-9e5f-482f06ca5b5d</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>
0
Comment actions Permalink

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

0
Comment actions Permalink

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/

0
Comment actions Permalink

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)

0
Comment actions Permalink

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?

0
Comment actions Permalink

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)

 

0
Comment actions Permalink

Hi Simon,

Thank you for the screenshots. 

Please keep tracking the issue status at RSRP-479580.

 

0
Comment actions Permalink

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:

  • I try to close VisualStudio
  • I try to close a solution
  • I switch branches with changes of csproj files

Each of the above mentioned task take approximately:

  • 10~15 seconds to wait for the first crash
  • manually close the OS error dialog
  • 10~15 seconds to wait for the second crash
  • manually close the OS error dialog
  • ~10 seconds to wait for VisualStudio to die
  • 2~4 minutes to manually reopen VisualStudio and wait for it to be responsive (ReSharper currently slows down VisualStudio startup by a lot)

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

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 

0

Please sign in to leave a comment.