ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Sorry we crashed while walking on references

Open greenozon opened this issue 1 year ago • 4 comments

Steps to reproduce

  1. Just walk thrugh the references deeply as on pic below

Error message shown

image

Details

  • ILSpy version 9.0.0.7777-preview2+bf2cf936e143384221d3277ac2a2960c7e2f0005 .NET version 8.0.8+08338fcaa5c9b9a8190abb99222fed12aaba956c

greenozon avatar Sep 26 '24 17:09 greenozon

Can this still be reproduced using the latest master version? I am unable to reproduce it.

siegfriedpammer avatar Oct 06 '24 08:10 siegfriedpammer

will test locally & report back shortly

greenozon avatar Oct 06 '24 08:10 greenozon

Not able to catch it again on latest master (ILSpy version 9.0.0.7810-preview2+280d17332f81916e9f18a363fc3264df32e59b98)

thanks! closing

greenozon avatar Oct 06 '24 18:10 greenozon

well, having some time and desire and ... was able to reproduce it... steps: just walking on assemblies references deep diving into lower levels,etc:

image

Maybe stack tracke will help to understand how it happens?

---------------------------
Sorry, we crashed
---------------------------
System.NullReferenceException: Object reference not set to an instance of an object.

   at ICSharpCode.ILSpyX.TreeView.SharpTreeNode.GetNodeByVisibleIndex(SharpTreeNode root, Int32 index) in /_/ICSharpCode.ILSpyX/TreeView/FlatListTreeNode.cs:line 112

   at ICSharpCode.ILSpyX.TreeView.TreeFlattener.get_Item(Int32 index) in /_/ICSharpCode.ILSpyX/TreeView/TreeFlattener.cs:line 85

   at System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl(Size constraint, Nullable`1& lastPageSafeOffset, List`1& previouslyMeasuredOffsets, Nullable`1& lastPagePixelSize, Boolean remeasure)

   at System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint)

   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)

   at System.Windows.UIElement.Measure(Size availableSize)

   at System.Windows.ContextLayoutManager.UpdateLayout()

   at System.Windows.Controls.VirtualizingStackPanel.<>c__DisplayClass94_0.<InitializeViewport>b__0()

   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)

   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---------------------------
OK   
---------------------------

version:

ILSpy version 9.0.0.7810-preview2+280d17332f81916e9f18a363fc3264df32e59b98 .NET version 8.0.8+08338fcaa5c9b9a8190abb99222fed12aaba956c

greenozon avatar Oct 08 '24 09:10 greenozon