GNOME Bugzilla – Bug 548912
Deleting Last EQ Preset While Playing Causes Crash
Last modified: 2009-06-05 22:56:33 UTC
I have been able to reproduce this bug several times. To reproduce, create an EQ, begin playback, delete EQ. Banshee will crash.
Created attachment 117156 [details] logfile with crash exception. Attached is the logfile, exception at the bottom.
The crash happens when you try to delete the last equalizer preset from the list. (Repeating here, in case someone like me doesn't read the summary) Here's my stack trace with banshee 1.2.1 : Object reference not set to an instance of an object System.NullReferenceException: Object reference not set to an instance of an object at Banshee.Equalizer.Gui.EqualizerPresetComboBox.RemoveEqualizerSetting (Banshee.Equalizer.EqualizerSetting eq) [0x0002e] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerPresetComboBox.cs:140 at Banshee.Equalizer.Gui.EqualizerPresetComboBox+<>c__CompilerGenerated3.<BuildWidget>c__46 (System.Object o, Banshee.Equalizer.EqualizerSettingEventArgs args) [0x00000] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerPresetComboBox.cs:69 at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EqualizerSettingEventArgs (object,Banshee.Equalizer.EqualizerSettingEventArgs) at Banshee.Equalizer.EqualizerManager.OnEqualizerRemoved (Banshee.Equalizer.EqualizerSetting eq) [0x0000d] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.Services/Banshee.Equalizer/EqualizerManager.cs:246 at Banshee.Equalizer.EqualizerManager.Remove (Banshee.Equalizer.EqualizerSetting eq, Boolean shouldQueueSave) [0x00026] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.Services/Banshee.Equalizer/EqualizerManager.cs:98 at Banshee.Equalizer.EqualizerManager.Remove (Banshee.Equalizer.EqualizerSetting eq) [0x00000] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.Services/Banshee.Equalizer/EqualizerManager.cs:87 at Banshee.Equalizer.Gui.EqualizerWindow.OnDeletePreset (System.Object o, System.EventArgs args) [0x00000] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs:157 at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000] at (wrapper native-to-managed) GLib.Signal:voidObjectCallback (intptr,intptr) at (wrapper managed-to-native) Gtk.Application:gtk_main () at Gtk.Application.Run () [0x00000] at Banshee.Gui.GtkBaseClient.Run () [0x00027] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:114 at Banshee.Gui.GtkBaseClient.Startup () [0x00000] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Core/Banshee.ThickClient/Banshee.Gui/GtkBaseClient.cs:55 at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.StartupInvocationHandler startup) [0x00048] in /var/tmp/portage/media-sound/banshee-1.2.1/work/banshee-1-1.2.1/src/Libraries/Hyena.Gui/Hyena.Gui/CleanRoomStartup.cs:54
Sorry, i would just like to stipulate that you must delete the LAST EQ preset, so there would be no more.
Weird, so Entry is null? Why would the Gtk.ComboBoxEntry's Entry property be null? I was unable to reproduce this.
I haven't figured out the exact steps to reproduce it, but I usually get the crash after playing around with the combobox, adding and removing entries. Once I got a MissingIntPtrCtorException, but adding an IntPtr constructor didn't help.
*** Bug 570497 has been marked as a duplicate of this bug. ***
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.