GNOME Bugzilla – Bug 552854
System.InvalidCastException in new editor when editing track artist
Last modified: 2009-01-19 20:29:38 UTC
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Cannot cast from source type to destination type. at Hyena.Gui.EntryUndoAdapter.OnTextInserted (System.Object o, Gtk.TextInsertedArgs args) [0x00000] in /home/gabe/Projects/banshee-1.4/src/Libraries/Hyena.Gui/Hyena.Gui/EntryUndoAdapter.cs:94 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00057] in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:157 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00071] in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:167 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System.Reflection/MethodBase.cs:110 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b4] in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:422 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System/MulticastDelegate.cs:71 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:394 at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0004f] in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/Signal.cs:193 at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/SignalClosure.cs:103 at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x0014e] in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/SignalClosure.cs:144 at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal) in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/ExceptionManager.cs:line 58 at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/SignalClosure.cs:line 158 at Gtk.Dialog.gtk_dialog_run(IntPtr ) at Gtk.Dialog.Run() in /usr/src/packages/BUILD/gtk-sharp-2.12.2/gtk/generated/Dialog.cs:line 221 at Banshee.Gui.TrackEditor.TrackEditorDialog.Run(Banshee.Collection.TrackListModel model, EditorMode mode) in /home/gabe/Projects/banshee-1.4/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs:line 668 at Banshee.Gui.TrackEditor.TrackEditorDialog.RunEdit(Banshee.Collection.TrackListModel model) in /home/gabe/Projects/banshee-1.4/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs:line 592 at Banshee.Gui.TrackActions.OnTrackProperties(System.Object o, System.EventArgs args) in /home/gabe/Projects/banshee-1.4/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs:line 290 at System.Reflection.MonoMethod.InternalInvoke(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 /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System.Reflection/MonoMethod.cs:line 157 at System.Reflection.MethodBase.Invoke(System.Object obj, System.Object[] parameters) in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System.Reflection/MethodBase.cs:line 110 at System.Delegate.DynamicInvokeImpl(System.Object[] args) in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:line 422 at System.MulticastDelegate.DynamicInvokeImpl(System.Object[] args) in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System/MulticastDelegate.cs:line 71 at System.Delegate.DynamicInvoke(System.Object[] args) in /usr/src/packages/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:line 394 at GLib.Signal.ClosureInvokedCB(System.Object o, GLib.ClosureInvokedArgs args) in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/Signal.cs:line 193 at GLib.SignalClosure.Invoke(GLib.ClosureInvokedArgs args) in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/SignalClosure.cs:line 103 at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) in /usr/src/packages/BUILD/gtk-sharp-2.12.2/glib/SignalClosure.cs:line 131 at Gtk.Application.gtk_main() at Gtk.Application.Run() in /usr/src/packages/BUILD/gtk-sharp-2.12.2/gtk/generated/AboutDialog.cs:line 1 at Banshee.Gui.GtkBaseClient.Run() in /home/gabe/Projects/banshee-1.4/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 144 at Banshee.Gui.GtkBaseClient.Startup() in /home/gabe/Projects/banshee-1.4/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 77 at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup) in /home/gabe/Projects/banshee-1.4/src/Libraries/Hyena.Gui/Hyena.Gui/CleanRoomStartup.cs:line 54 at Banshee.Gui.GtkBaseClient.Startup() in /home/gabe/Projects/banshee-1.4/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 72 at Banshee.Gui.GtkBaseClient.Startup(System.String[] args) in /home/gabe/Projects/banshee-1.4/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 62 at Nereid.Client.Main(System.String[] args) in /home/gabe/Projects/banshee-1.4/src/Clients/Nereid/Nereid/Client.cs:line 48
This is possibly a bug in Mono/Gtk# - https://bugzilla.novell.com/show_bug.cgi?id=427588
This is a bug in Mono.
*** Bug 555335 has been marked as a duplicate of this bug. ***
*** Bug 555537 has been marked as a duplicate of this bug. ***
*** Bug 561201 has been marked as a duplicate of this bug. ***
*** Bug 561475 has been marked as a duplicate of this bug. ***
*** Bug 562456 has been marked as a duplicate of this bug. ***
*** Bug 563084 has been marked as a duplicate of this bug. ***
*** Bug 564050 has been marked as a duplicate of this bug. ***
*** Bug 564970 has been marked as a duplicate of this bug. ***
Whilst this Mono bug is solved, why don't change the Comment textarea for a textfield? It is not perfect but at least that will let users edit with no crash. Or at least catch the exception and show a message. What do you think?
*** Bug 568296 has been marked as a duplicate of this bug. ***