After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 552854 - System.InvalidCastException in new editor when editing track artist
System.InvalidCastException in new editor when editing track artist
Status: RESOLVED NOTGNOME
Product: banshee
Classification: Other
Component: general
git master
Other Linux
: Normal major
: 1.4
Assigned To: Banshee Maintainers
Banshee Maintainers
: 555335 555537 561201 561475 562456 563084 564050 564970 568296 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-19 02:50 UTC by Gabriel Burt
Modified: 2009-01-19 20:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gabriel Burt 2008-09-19 02:50: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
Comment 1 Gabriel Burt 2008-09-19 03:58:22 UTC
This is possibly a bug in Mono/Gtk# - https://bugzilla.novell.com/show_bug.cgi?id=427588
Comment 2 Gabriel Burt 2008-09-24 20:33:15 UTC
This is a bug in Mono.
Comment 3 Gabriel Burt 2008-10-09 18:24:36 UTC
*** Bug 555335 has been marked as a duplicate of this bug. ***
Comment 4 Bertrand Lorentz 2008-11-10 22:47:41 UTC
*** Bug 555537 has been marked as a duplicate of this bug. ***
Comment 5 Bertrand Lorentz 2008-11-17 19:21:30 UTC
*** Bug 561201 has been marked as a duplicate of this bug. ***
Comment 6 Bertrand Lorentz 2008-11-19 18:23:56 UTC
*** Bug 561475 has been marked as a duplicate of this bug. ***
Comment 7 Bertrand Lorentz 2008-11-28 16:18:30 UTC
*** Bug 562456 has been marked as a duplicate of this bug. ***
Comment 8 Bertrand Lorentz 2008-12-03 20:03:14 UTC
*** Bug 563084 has been marked as a duplicate of this bug. ***
Comment 9 Bertrand Lorentz 2008-12-11 18:20:24 UTC
*** Bug 564050 has been marked as a duplicate of this bug. ***
Comment 10 Bertrand Lorentz 2008-12-18 22:11:45 UTC
*** Bug 564970 has been marked as a duplicate of this bug. ***
Comment 11 Benjamín Valero Espinosa 2008-12-28 10:05:12 UTC
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?
Comment 12 Bertrand Lorentz 2009-01-19 20:29:38 UTC
*** Bug 568296 has been marked as a duplicate of this bug. ***