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 663267 - banshee crashes at the end of a song
banshee crashes at the end of a song
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Smart Playlists
2.2.0
Other Linux
: Normal normal
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
: 653425 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-11-02 21:04 UTC by Stephen A. Goss
Modified: 2020-03-17 09:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Another stack trace from a similar crash. (4.04 KB, text/plain)
2011-11-03 16:50 UTC, Stephen A. Goss
Details
Stack trace from local build, with line numbers! (8.04 KB, text/plain)
2011-11-04 15:49 UTC, Stephen A. Goss
Details
Another crash at end of song. (5.35 KB, text/plain)
2011-11-08 07:20 UTC, Stephen A. Goss
Details

Description Stephen A. Goss 2011-11-02 21:04:16 UTC
Playing an album, banshee crashed at the end of the first track and left this in the console (was running `banshee --debug`):

[358 Debug 13:53:43.544] (libbanshee:player) [Gapless] Requesting next track
System.Int32 doesn't implement interface Banshee.Collection.Database.IFilterListModel

Stacktrace:

  at Banshee.Collection.Database.DatabaseTrackListModel.Reload (Hyena.Data.IListModel) <IL 0x0010b, 0x002c6>
  at Banshee.Collection.Database.DatabaseTrackListModel.Reload () <IL 0x00002, 0x0000f>
  at Banshee.Sources.DatabaseSource.RateLimitedReload () <IL 0x00017, 0x0004b>
  at Banshee.Base.RateLimiter.InnerExecute () <IL 0x00028, 0x0007e>
  at Banshee.Base.RateLimiter.Execute () <IL 0x0003e, 0x00093>
  at Banshee.Sources.DatabaseSource.Reload () <IL 0x00016, 0x0002f>
  at Banshee.SmartPlaylist.SmartPlaylistSource.Reload () <IL 0x0002d, 0x00063>
  at Banshee.SmartPlaylist.SmartPlaylistSource.RefreshAndReload () <IL 0x00007, 0x0001b>
  at Banshee.SmartPlaylist.SmartPlaylistSource.HandleTracksChanged (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00027, 0x0008b>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0x00095>
  at (wrapper delegate-invoke) <Module>.invoke_void__this___Source_TrackEventArgs (Banshee.Sources.Source,Banshee.Sources.TrackEventArgs) <IL 0x00059, 0xffffffff>
  at Banshee.Sources.PrimarySource/<OnTracksChanged>c__AnonStorey24.<>m__46 () <IL 0x0005f, 0x000a8>
  at Hyena.ThreadAssist.SpawnFromMain (System.Threading.ThreadStart) <IL 0x00018, 0x0002c>
  at Banshee.Sources.PrimarySource.OnTracksChanged (Hyena.Query.QueryField[]) <IL 0x00020, 0x0007f>
  at Banshee.Sources.PrimarySource.NotifyTracksChanged (Hyena.Query.QueryField[]) <IL 0x00002, 0x00018>
  at Banshee.Collection.Database.DatabaseTrackInfo.Save (bool,Hyena.Query.QueryField[]) <IL 0x00118, 0x00257>
  at Banshee.Collection.Database.DatabaseTrackInfo.UpdateLastPlayed () <IL 0x00020, 0x00073>
  at Banshee.GStreamer.PlayerEngine.OnAboutToFinish (intptr) <IL 0x00006, 0x0001a>
  at (wrapper native-to-managed) Banshee.GStreamer.PlayerEngine.OnAboutToFinish (intptr) <IL 0x00028, 0xffffffff>

Native stacktrace:

	banshee() [0x4911ea]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10060) [0x7fbb49779060]
	/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fbb494003a5]
	/lib/x86_64-linux-gnu/libc.so.6(abort+0x17b) [0x7fbb49403b0b]
	banshee() [0x5c97df]
	banshee() [0x5c9862]
	banshee() [0x492e20]
	banshee() [0x4935b4]
	[0x41e07bba]

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Aborted
Comment 1 Stephen A. Goss 2011-11-03 16:50:25 UTC
Created attachment 200616 [details]
Another stack trace from a similar crash.

This is happening about once a day, I attached another stack trace which looks a lot like the first one. Mostly to show that it wasn't a freak occurrence.
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2011-11-03 17:00:42 UTC
What version of Mono do you have? Run "mono --version" in a console.

What distro are you using?
Comment 3 Stephen A. Goss 2011-11-03 17:09:20 UTC
I'm running Ubuntu 11.10 (64 bit) with stock parts :) .

$ mono --version
Mono JIT compiler version 2.10.5 (Debian 2.10.5-1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            Included Boehm (with typed GC and Parallel Mark)
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2011-11-03 17:18:44 UTC
What do you mean with "with stock parts"?

This seems like a Mono bug though.

However, would be good to know the exact line where this happens. Are you able to compile Banshee yourself?
Comment 5 Stephen A. Goss 2011-11-03 18:46:40 UTC
By "stock parts", I mean the official packages from the Ubuntu repositories. So this is the same version of Mono and Banshee that everyone on Ubuntu 11.10 is using.

I'll look into compiling Banshee. I've done that in the past, but it's been awhile.
Comment 6 Bertrand Lorentz 2011-11-03 19:55:07 UTC
This looks similar to bug 638257 and its duplicates, which were happening with mono 2.6.7.

Kind of worrying to see this still happen with mono 2.10.5...
Comment 7 Stephen A. Goss 2011-11-03 19:57:12 UTC
I am able to build Banshee (stable-2.0 branch), but it doesn't run due to this issue: https://bugs.launchpad.net/ubuntu/+source/mono/+bug/882501
Comment 8 Stephen A. Goss 2011-11-03 21:39:36 UTC
Nevermind that last comment, I found a workaround by adding `MCS=/usr/bin/csc` to autogen.sh call and I've built and am running stable-2.2 branch (not 2.0).
Comment 9 Stephen A. Goss 2011-11-04 15:49:54 UTC
Created attachment 200696 [details]
Stack trace from local build, with line numbers!

Same crash, this time from a local build of banshee stable-2.2 branch.
Comment 10 Andrés G. Aragoneses (IRC: knocte) 2011-11-04 17:50:47 UTC
*** Bug 653425 has been marked as a duplicate of this bug. ***
Comment 11 Andrés G. Aragoneses (IRC: knocte) 2011-11-04 17:53:15 UTC
Bringing to CC list people from duplicate's CC list.
Comment 12 Stephen A. Goss 2011-11-08 00:11:11 UTC
It keeps crashing at the end of the song (right after "[Gapless] Requesting next track") but the stack traces always look different. here's the latest:

[70 Debug 16:04:37.061] (libbanshee:player) [Gapless] Requesting next track

Unhandled Exception: System.ObjectDisposedException: The object was used after being disposed.
  at System.Threading.WaitHandle.CheckDisposed () [0x00000] in <filename unknown>:0 
  at System.Threading.EventWaitHandle.Reset () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Reset ()
  at Hyena.Data.Sqlite.HyenaSqliteCommand.Execute (Hyena.Data.Sqlite.HyenaSqliteConnection hconnection, Hyena.Data.Sqlite.Connection connection) [0x001ad] in /home/sgoss/build/banshee/src/Hyena/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteCommand.cs:133 
  at Hyena.Data.Sqlite.HyenaSqliteConnection.ProcessQueue () [0x000ab] in /home/sgoss/build/banshee/src/Hyena/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteConnection.cs:445 
  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ObjectDisposedException: The object was used after being disposed.
  at System.Threading.WaitHandle.CheckDisposed () [0x00000] in <filename unknown>:0 
  at System.Threading.EventWaitHandle.Reset () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Threading.EventWaitHandle:Reset ()
  at Hyena.Data.Sqlite.HyenaSqliteCommand.Execute (Hyena.Data.Sqlite.HyenaSqliteConnection hconnection, Hyena.Data.Sqlite.Connection connection) [0x001ad] in /home/sgoss/build/banshee/src/Hyena/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteCommand.cs:133 
  at Hyena.Data.Sqlite.HyenaSqliteConnection.ProcessQueue () [0x000ab] in /home/sgoss/build/banshee/src/Hyena/Hyena.Data.Sqlite/Hyena.Data.Sqlite/HyenaSqliteConnection.cs:445 
  at System.Threading.Thread.StartUnsafe () [0x00000] in <filename unknown>:0 
make: *** [run] Error 1
Comment 13 Stephen A. Goss 2011-11-08 07:20:33 UTC
Created attachment 200954 [details]
Another crash at end of song.

This one is from a build of banshee stable-2.2 on my laptop which is also running Ubuntu 11.10 64 bit.
Comment 14 André Klapper 2020-03-17 09:17:57 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.