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 494927 - Editing smart playlist crashes
Editing smart playlist crashes
Status: RESOLVED DUPLICATE of bug 464362
Product: banshee
Classification: Other
Component: Smart Playlists
0.13.1
Other All
: Normal critical
: 2.x
Assigned To: Gabriel Burt
Gabriel Burt
Depends on:
Blocks:
 
 
Reported: 2007-11-08 11:20 UTC by Eric Lesh
Modified: 2007-11-08 17:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Eric Lesh 2007-11-08 11:20:35 UTC
Steps to reproduce:
1. Right click a smart playlist
2. Choose 'Edit Smart Playlist'
3. Crash


Stack trace:
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.IndexOutOfRangeException: Array index is out of range.
  at Banshee.SmartPlaylist.QueryMatch.get_Filter () [0x00000] 
  at Banshee.SmartPlaylist.QueryMatchInteger.get_DisplayWidget () [0x00000] 
  at Banshee.SmartPlaylist.QueryBuilderMatchRow.OnOpComboBoxChanged (System.Object o, System.EventArgs args) [0x00000] 
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000] 

   at GLib.ExceptionManager.RaiseUnhandledException ()
   at GLib.Signal.voidObjectCallback ()
   at GLib.Signal.voidObjectCallback ()
   at Gtk.ComboBox.gtk_combo_box_remove_text ()
   at Gtk.ComboBox.gtk_combo_box_remove_text ()
   at Gtk.ComboBox.RemoveText ()
   at Banshee.SmartPlaylist.QueryBuilderMatchRow.Select ()
   at Banshee.SmartPlaylist.QueryBuilderMatchRow.OnFieldComboBoxChanged ()
   at System.MulticastDelegate.invoke_void_object_EventArgs ()
   at GLib.Signal.voidObjectCallback ()
   at GLib.Signal.voidObjectCallback ()
   at Gtk.ComboBox.gtk_combo_box_set_active_iter ()
   at Gtk.ComboBox.gtk_combo_box_set_active_iter ()
   at Gtk.ComboBox.SetActiveIter ()
   at Banshee.SmartPlaylist.ComboBoxUtil.SetActiveString ()
   at Banshee.SmartPlaylist.QueryBuilder.set_MatchQuery ()
   at Banshee.SmartPlaylist.Editor.set_Condition ()
   at Banshee.SmartPlaylist.Editor..ctor ()
   at Banshee.SmartPlaylist.SmartPlaylistSource.ShowPropertiesDialog ()
   at Banshee.PlayerUI.OnSelectedSourcePropertiesAction ()
   at System.MulticastDelegate.invoke_void_object_EventArgs ()
   at GLib.Signal.voidObjectCallback ()
   at GLib.Signal.voidObjectCallback ()
   at Gtk.Application.gtk_main ()
   at Gtk.Application.gtk_main ()
   at Gtk.Application.Run ()
   at Gnome.Program.Run ()
   at Banshee.BansheeEntry.Startup ()
   at System.MulticastDelegate.invoke_void_string[] ()
   at Banshee.Gui.CleanRoomStartup.Startup ()
   at Banshee.BansheeEntry.Main ()
Segmentation fault (core dumped)


Other information:
The list is a "Most Played".  I can't see the actual formula for it (because it crashes when I try to edit it), but it's something like "Choose Play Count > 0, limit to 25".
Comment 1 Eric Lesh 2007-11-08 11:31:56 UTC
Trying to recreate the play list to see what causes the problem, I see it's actually that *any* smart playlist that uses numbers in some way dies.

So:
 Album, Artist, Genre, Path, Smart Playlist, Title
work fine.

All the others crash in the same way.

I'd guess it's trying to change combo-box entries and there's an off-by-one that makes it loop too far?
Comment 2 Gabriel Burt 2007-11-08 17:43:15 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 464362 ***