Bug 14730 - Failed assertion in code issues pad
Summary: Failed assertion in code issues pad
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Simon Lindgren
URL:
Depends on:
Blocks:
 
Reported: 2013-09-13 16:10 UTC by Mikayla Hutchinson [MSFT]
Modified: 2013-09-24 04:14 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Mikayla Hutchinson [MSFT] 2013-09-13 16:10:27 UTC
When expanding a row:

ERROR [2013-09-13 16:09:08Z]: Failed assertion at MonoDevelop.CodeIssues.CodeIssuePadControl.SetNode(Xwt.TreeNavigator navigator, IIssueTreeNode node) in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:line 265
   at MonoDevelop.CodeIssues.CodeIssuePadControl.SyncNode(Xwt.TreeNavigator navigator, Boolean forceExpansion) in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:line 336
   at MonoDevelop.CodeIssues.CodeIssuePadControl.OnRowExpanding(System.Object sender, Xwt.TreeViewRowEventArgs e) in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:line 401
   at Xwt.TreeView.OnRowExpanding(Xwt.TreeViewRowEventArgs a) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/TreeView.cs:line 456
   at Xwt.TreeView+WidgetBackendHost.OnRowExpanding(TreePosition position) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/TreeView.cs:line 70
   at Xwt.GtkBackend.TreeViewBackend+<HandleTestExpandRow>c__AnonStorey15.<>m__1A() in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.GtkBackend/TreeViewBackend.cs:line 92
   at Xwt.Toolkit.Invoke(System.Action a) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Toolkit.cs:line 260
   at Xwt.Backends.ApplicationContext.InvokeUserCode(System.Action a) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt.Backends/ApplicationContext.cs:line 42
   at Xwt.GtkBackend.TreeViewBackend.HandleTestExpandRow(System.Object o, Gtk.TestExpandRowArgs args) in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.GtkBackend/TreeViewBackend.cs:line 91
   at System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception ByRef )
   at System.Reflection.MonoMethod.Invoke(System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System.Reflection/MonoMethod.cs:line 230
   at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System.Reflection/MethodBase.cs:line 114
   at System.Delegate.DynamicInvokeImpl(System.Object[] args) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System/Delegate.cs:line 424
   at System.MulticastDelegate.DynamicInvokeImpl(System.Object[] args) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System/MulticastDelegate.cs:line 72
   at System.Delegate.DynamicInvoke(System.Object[] args) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System/Delegate.cs:line 398
   at GLib.Signal.ClosureInvokedCB(System.Object o, GLib.ClosureInvokedArgs args) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/glib/Signal.cs:line 195
   at GLib.SignalClosure.Invoke(GLib.ClosureInvokedArgs args) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/glib/SignalClosure.cs:line 118
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/glib/SignalClosure.cs:line 159
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run() in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/gtk-sharp-2-12-branch/gtk/Application.cs:line 135
   at MonoDevelop.Ide.IdeApp.Run() in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:line 387
   at MonoDevelop.Ide.IdeStartup.Run(MonoDevelop.Ide.MonoDevelopOptions options) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 295
   at MonoDevelop.Ide.IdeStartup.Main(System.String[] args) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:line 541
   at MonoDevelop.Startup.MonoDevelopMain.Main(System.String[] args) in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:line 17
ERROR [2013-09-13 16:09:08Z]: An unhandled exception has occured. Terminating MonoDevelop? False
System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[MonoDevelop.CodeIssues.IIssueTreeNode,Xwt.TreePosition].Add (IIssueTreeNode key, TreePosition value) [0x00163] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:450 
  at MonoDevelop.CodeIssues.CodeIssuePadControl.SetNode (Xwt.TreeNavigator navigator, IIssueTreeNode node) [0x00086] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:267 
  at MonoDevelop.CodeIssues.CodeIssuePadControl.SyncNode (Xwt.TreeNavigator navigator, Boolean forceExpansion) [0x000a8] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:336 
  at MonoDevelop.CodeIssues.CodeIssuePadControl.OnRowExpanding (System.Object sender, Xwt.TreeViewRowEventArgs e) [0x00035] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:401 
  at Xwt.TreeView.OnRowExpanding (Xwt.TreeViewRowEventArgs a) [0x00014] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/TreeView.cs:456 
  at Xwt.TreeView+WidgetBackendHost.OnRowExpanding (TreePosition position) [0x0000d] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/TreeView.cs:70 
  at Xwt.GtkBackend.TreeViewBackend+<HandleTestExpandRow>c__AnonStorey15.<>m__1A () [0x00018] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.GtkBackend/TreeViewBackend.cs:92 
  at Xwt.Toolkit.Invoke (System.Action a) [0x00015] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Toolkit.cs:260
Comment 1 Mikayla Hutchinson [MSFT] 2013-09-13 16:13:42 UTC
Also this error looks related:

System.ArgumentException: An element with the same key already exists in the dictionary.
  at System.Collections.Generic.Dictionary`2[MonoDevelop.CodeIssues.IIssueTreeNode,Xwt.TreePosition].Add (IIssueTreeNode key, TreePosition value) [0x00163] in /Users/michael/Mono/bockbuild/profiles/monodevelop-mac-dev/build-root/mono-None/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:450 
  at MonoDevelop.CodeIssues.CodeIssuePadControl.SetNode (Xwt.TreeNavigator navigator, IIssueTreeNode node) [0x00086] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:267 
  at MonoDevelop.CodeIssues.CodeIssuePadControl.SyncNode (Xwt.TreeNavigator navigator, Boolean forceExpansion) [0x000a8] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:336 
  at MonoDevelop.CodeIssues.CodeIssuePadControl.OnRowExpanding (System.Object sender, Xwt.TreeViewRowEventArgs e) [0x00035] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.CodeIssues/CodeIssuePad.cs:401 
  at Xwt.TreeView.OnRowExpanding (Xwt.TreeViewRowEventArgs a) [0x00014] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/TreeView.cs:456 
  at Xwt.TreeView+WidgetBackendHost.OnRowExpanding (TreePosition position) [0x0000d] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/TreeView.cs:70 
  at Xwt.GtkBackend.TreeViewBackend+<HandleTestExpandRow>c__AnonStorey15.<>m__1A () [0x00018] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt.Gtk/Xwt.GtkBackend/TreeViewBackend.cs:92 
  at Xwt.Toolkit.Invoke (System.Action a) [0x00015] in /Users/michael/Mono/monodevelop/main/external/xwt/Xwt/Xwt/Toolkit.cs:260
Comment 2 Mikayla Hutchinson [MSFT] 2013-09-13 16:20:48 UTC
This was after analyzing one solution, closing it, and analyzing another. The pad did not clear when the first solution was close, maybe it's keeping state that broke it somehow?
Comment 3 Marius Ungureanu 2013-09-24 04:14:01 UTC
This is fixed, but #14946 appeared.