Reflexil icon indicating copy to clipboard operation
Reflexil copied to clipboard

Sorry we crashed error

Open greenozon opened this issue 2 years ago • 0 comments

used ILSpy 7.2.0.6772-preview3 + latest Reflexil for ILSpy The below issue happens when you click on assemlby in left most treeview

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

   at Mono.Cecil.MetadataSystem.BinaryRangeSearch(TypeDefinition[] types, UInt32 rid, Boolean field)

   at Mono.Cecil.MetadataReader.LookupMethod(UInt32 rid)

   at Mono.Cecil.MetadataReader.ReadEntryPoint()

   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)

   at Mono.Cecil.ModuleDefinition.get_EntryPoint()

   at Reflexil.Editors.AssemblyDefinitionControl.Bind(AssemblyDefinition item)

   at Reflexil.Handlers.MergedAssemblyModuleDefinitionHandler.HandleItem(AssemblyDefinition adef)

   at Reflexil.Forms.ReflexilWindow.HandleItem(Object item)

   at Reflexil.Plugins.BasePackage.ActiveItemChanged(Object sender, EventArgs e)

   at ICSharpCode.ILSpy.MainWindow.TreeView_SelectionChanged(Object sender, SelectionChangedEventArgs e)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.Controls.ListBox.OnSelectionChanged(SelectionChangedEventArgs e)

   at ICSharpCode.TreeView.SharpTreeView.OnSelectionChanged(SelectionChangedEventArgs e)

   at System.Windows.Controls.Primitives.Selector.SelectionChanger.End()

   at System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(ItemInfo info, Boolean assumeInItemsCollection)

   at System.Windows.Controls.ListBox.MakeSingleSelection(ListBoxItem listItem)

   at System.Windows.Controls.ListBoxItem.HandleMouseButtonDown(MouseButton mouseButton)

   at System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)

   at ICSharpCode.TreeView.SharpTreeViewItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)

   at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)

   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)

   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)

   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)

   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)

   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

   at System.Windows.Input.InputManager.ProcessStagingArea()

   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)

   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)

   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)

   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)

   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

   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   
---------------------------

crashing-refelxil.zip

greenozon avatar Dec 05 '21 10:12 greenozon