GNOME Bugzilla – Bug 555537
Crash when entering text in track editor
Last modified: 2008-11-10 22:47:41 UTC
Steps to reproduce: 1. select track 2. highlight then remove text in name field 3. press any character to crash banshee Stack trace: Marshaling insert_text signal Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. 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/david/temp/banshee/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 /builddir/build/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 /builddir/build/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 /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System.Reflection/MethodBase.cs:110 at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b4] in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:422 at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/MulticastDelegate.cs:71 at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:394 at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal) at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) at Gtk.Dialog.gtk_dialog_run(IntPtr ) at Gtk.Dialog.Run() at Banshee.Gui.TrackEditor.TrackEditorDialog.Run(Banshee.Collection.TrackListModel model, EditorMode mode) in /home/david/temp/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs:line 672 at Banshee.Gui.TrackEditor.TrackEditorDialog.RunEdit(Banshee.Collection.TrackListModel model) in /home/david/temp/banshee/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs:line 596 at Banshee.Gui.TrackActions.OnTrackEditor(System.Object o, System.EventArgs args) in /home/david/temp/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/TrackActions.cs:line 309 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 /builddir/build/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 /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System.Reflection/MethodBase.cs:line 110 at System.Delegate.DynamicInvokeImpl(System.Object[] args) in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:line 422 at System.MulticastDelegate.DynamicInvokeImpl(System.Object[] args) in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/MulticastDelegate.cs:line 71 at System.Delegate.DynamicInvoke(System.Object[] args) in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/Delegate.cs:line 394 at GLib.Signal.ClosureInvokedCB(System.Object o, GLib.ClosureInvokedArgs args) at GLib.SignalClosure.Invoke(GLib.ClosureInvokedArgs args) at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) at Gtk.Application.gtk_main() at Gtk.Application.Run() at Banshee.Gui.GtkBaseClient.Run() in /home/david/temp/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 144 at Banshee.Gui.GtkBaseClient.Startup() in /home/david/temp/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 77 at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup) in /home/david/temp/banshee/src/Libraries/Hyena.Gui/Hyena.Gui/CleanRoomStartup.cs:line 54 at Banshee.Gui.GtkBaseClient.Startup() in /home/david/temp/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 72 at Banshee.Gui.GtkBaseClient.Startup(System.String[] args) in /home/david/temp/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:line 62 at Nereid.Client.Main(System.String[] args) in /home/david/temp/banshee/src/Clients/Nereid/Nereid/Client.cs:line 48 at System.AppDomain.ExecuteAssembly(System.Reflection.Assembly , System.String[] ) at System.AppDomain.ExecuteAssemblyInternal(System.Reflection.Assembly a, System.String[] args) in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/AppDomain.cs:line 535 at System.AppDomain.ExecuteAssembly(System.String assemblyFile, System.Security.Policy.Evidence assemblySecurity, System.String[] args) in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/AppDomain.cs:line 518 at System.AppDomain.ExecuteAssembly(System.String assemblyFile) in /builddir/build/BUILD/mono-2.0/mcs/class/corlib/System/AppDomain.cs:line 507 at Booter.Booter.BootClient(System.String clientName) in /home/david/temp/banshee/src/Clients/Booter/Booter/Entry.cs:line 106 at Booter.Booter.Main() in /home/david/temp/banshee/src/Clients/Booter/Booter/Entry.cs:line 100 Other information: At revision 4665. x86_64, Fedora 10, da_DK.UTF-8. Test performed using video file, avi container with mp3 and xvid content. Not related to the specific file as this happens with every such file in my collection.
I haven't been able to reproduce the crash. Do you remove the whole content of the field ? With the "Delete" key ? There have been some changes to the track editor since your report. Could you try to reproduce the crash with recent trunk ?
Happens with trunk as of 4692. I generally just highlight the text and type (then boom) or highlight then press backspace, then type (then bang again).
*** Bug 560227 has been marked as a duplicate of this bug. ***
Hi, I also have this bug, using Arch Linux here, and testing with random files also yields this error. I am using the latest svn as of this date, too, namely 4829.
I also confirm this bug, using the 1.4.0.1 package on Arch Linux.
I think this is caused by this gtk# bug : https://bugzilla.novell.com/show_bug.cgi?id=427588 What version do you have ? You might want to try to upgrade or downgrade your gtk#.
You are right. Downgrading gtk# (Arch package gtk-sharp-2) from 2.12.6 to 2.12.5 fixes the issue for me.
I can't reproduce this anymore on Fedora 10.
Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed in gtk#. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of 552854 ***