jrmuizel / banshee-unofficial-plugins

Automatically exported from code.google.com/p/banshee-unofficial-plugins
0 stars 1 forks source link

Dragging a track from mirage to the play queue crashes banshee #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select a track in the mirage track list
2. Drag and drop it to the play queue

Banshee crashes with this stacktrace :
Object reference not set to an instance of an object
System.NullReferenceException: Object reference not set to an instance of
an object
  at Banshee.Sources.DatabaseSource.WithTrackSelection
(Banshee.Collection.Database.DatabaseTrackListModel model,
Banshee.Sources.TrackRangeHandler handler) [0x00000] in
/var/tmp/portage/media-sound/banshee-1.2.0/work/banshee-1-1.2.0/src/Core/Banshee
.Services/Banshee.Sources/DatabaseSource.cs:606

  at Banshee.Sources.DatabaseSource.AddSelectedTracks
(Banshee.Sources.Source source) [0x0001f] in
/var/tmp/portage/media-sound/banshee-1.2.0/work/banshee-1-1.2.0/src/Core/Banshee
.Services/Banshee.Sources/DatabaseSource.cs:417

  at Banshee.Playlist.PlaylistSource.AddSelectedTracks
(Banshee.Sources.Source source) [0x00028] in
/var/tmp/portage/media-sound/banshee-1.2.0/work/banshee-1-1.2.0/src/Core/Banshee
.Services/Banshee.Playlist/PlaylistSource.cs:236

  at Banshee.Sources.DatabaseSource.MergeSourceInput
(Banshee.Sources.Source source, SourceMergeType mergeType) [0x00022] in
/var/tmp/portage/media-sound/banshee-1.2.0/work/banshee-1-1.2.0/src/Core/Banshee
.Services/Banshee.Sources/DatabaseSource.cs:472

  at Banshee.Sources.Gui.SourceView.OnDragDataReceived (Gdk.DragContext
context, Int32 x, Int32 y, Gtk.SelectionData data, UInt32 info, UInt32
time) [0x00146] in
/var/tmp/portage/media-sound/banshee-1.2.0/work/banshee-1-1.2.0/src/Core/Banshee
.ThickClient/Banshee.Sources.Gui/SourceView_DragAndDrop.cs:231

  at Gtk.Widget.dragdatareceived_cb (IntPtr widget, IntPtr context, Int32
x, Int32 y, IntPtr selection_data, UInt32 info, UInt32 time_) [0x00000] 
  at (wrapper native-to-managed) Gtk.Widget:dragdatareceived_cb
(intptr,intptr,int,int,intptr,uint,uint)
  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.0/work/banshee-1-1.2.0/src/Core/Banshee
.ThickClient/Banshee.Gui/GtkBaseClient.cs:114

  at Banshee.Gui.GtkBaseClient.Startup () [0x00000] in
/var/tmp/portage/media-sound/banshee-1.2.0/work/banshee-1-1.2.0/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.0/work/banshee-1-1.2.0/src/Libraries/Hy
ena.Gui/Hyena.Gui/CleanRoomStartup.cs:54

Original issue reported on code.google.com by bertrand.lorentz@gmail.com on 9 Aug 2008 at 6:32

GoogleCodeExporter commented 9 years ago
The crash happens because banshee assumes that the drag and drop comes from a 
source
that has a DatabaseTrackListModel.

Original comment by bertrand.lorentz@gmail.com on 9 Aug 2008 at 6:36

GoogleCodeExporter commented 9 years ago
Fixed in SVN, as a side effect of making the mirage source a PlaylistSource.

Original comment by bertrand.lorentz@gmail.com on 19 Oct 2008 at 12:21