Bug 113136

Summary: Banshee locks up if another app is using the sound device
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Joe Shaw <joeshaw>
Component: GNOMEAssignee: Aaron Bockover <abockover>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: dsecareanu, sbrabec
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 131310    
Bug Blocks:    

Description Joe Shaw 2005-08-25 19:34:09 UTC
If an app is using the sound device (like RealPlayer) and you try to play music
with Banshee, it locks up hard.  Stopping RealPlayer doesn't have any effect, I
have to kill and restart Banshee.
Comment 1 Aaron Bockover 2005-08-25 22:39:35 UTC
I am still unable to confirm your hang... I just tried:

1. Open RealPlayer and start playing a song
2. Run Banshee (starts fine, no hangs)
3. Try playing a song (will not play, but does not hang)
4. Stop playback in RP
5. Try playing song again in Banshee (plays fine)
6. Start playing song in RP (will not play, says sound device is in use)

So while both apps can't play at the same time, neither hang for me.
Comment 2 Aaron Bockover 2005-08-25 22:45:48 UTC
Joe, when I submitted that last comment, I hadn't even noticed the reporter.
From the sound of the issue, I thought it was JP, as he is having a similar
issue. Didn't mean to resolve it... I meant NEEDINFO (Novell bugzilla is a
little different from GNOME :)
Comment 3 Daniel Secareanu 2005-08-30 20:48:24 UTC
Dunno if my comment will provide more info, but am trying to... Banshee behaves
a bit strangely for me as well... It doesn't lock (tried starting mplayer and
they both worked in parallel just fine - don't have real player on opensuse to
try that) but from time to time it just stops, although the shuffle and playlist
repeat are turned on, so I have to click either next button or double click an
item in the playlist for it to start playing over. Also, when logging out or
doing suspend, Banshee doesn't save its session... Maybe this behavior is rather
a different bug? What do you guys say?
Comment 4 JP Rosevear 2005-09-05 17:42:56 UTC
We are preloading libaoss now for banshee.  CC'ing the real package maintainer.
Comment 5 Joe Shaw 2005-09-07 15:33:35 UTC
I am trying to confirm this as fixed with 0.9.0, but it doesn't start for me.  I
updated it from rug.  I get this:

Unhandled Exception: System.ApplicationException: Sqlite error
in [0x0017d] (at
/usr/src/packages/BUILD/mono-1.1.8.3/mcs/class/Mono.Data.SqliteClient/Mono.Data.SqliteClient/SqliteCommand.cs:256)
Mono.Data.SqliteClient.SqliteCommand:ExecuteReader (CommandBehavior behavior,
Boolean want_results, System.Int32 rows_affected)

from Banshee.Database.QuerySingle()
Comment 6 Joe Shaw 2005-09-07 16:04:28 UTC
ah, never mind, I had to nuke my ~/.config/sonance directory in addition to
~/.config/banshee.

This still happens for me.  Note that it's using the gstreamer backend.  This is
what it defaulted to.  It doesn't happen with the Helix backend, but then again,
I can't get the Helix backend to play anything right now.
Comment 7 Joe Shaw 2005-09-07 17:47:18 UTC
Only a problem with gstreamer engine, dropping the severity of this.
Comment 8 JP Rosevear 2005-09-14 14:47:16 UTC
Is your gstreamer default to OSS or ALSA joe?
Comment 9 Joe Shaw 2005-09-14 16:45:00 UTC
/system/gstreamer/0.8/default has:

audiosink: osssink
audiosrc: osssrc
Comment 10 Mark Gordon 2005-10-27 19:15:10 UTC
I'm not having any such problem with either backend these days.

Joe: Are you still seeing this?

I'm curious why this bug is NEEDINFO to Aaron.  I'm going to assume it should be assigned, unless Joe's not seeing it any more (there have been some fixes to the wrapper script that might account for that).
Comment 11 Joe Shaw 2005-10-27 19:56:35 UTC
Right now I can't test it, because my library is empty and I can't successfully import any music.
Comment 12 Aaron Bockover 2005-10-27 21:12:09 UTC
Hmm... I would think the preloading of aoss would only work if your audiosink were alsasink and not osssink. 

Joe: Can you run gstreamer-properties and set it to ALSA? And on that note... *why* would the default even be osssink? Did we ship SL 10 like that? And can't import music? Banshee from CVS, packages from stable? Can you open a new bug on this and give a trace or some steps?
Comment 13 Joe Shaw 2005-10-28 15:41:28 UTC
Ok, I've set it to ALSA, but I still can't get to the playing stage because I can't successfully import any music.  I've just opened 131310 about that.

OSS probably isn't the default; the home dir on this box goes back a LONG way.  Probably to NLD, maybe SUSE 9.2, so that might very well be the cause of this.
Comment 14 Mark Gordon 2005-11-03 20:49:38 UTC
This should probably be needinfo at this point.

Joe: I have updated packages in /nfs/scratch/mtgordon if you want to give them a try.
Comment 15 Mark Gordon 2005-11-04 19:34:56 UTC
Another thing to try is a fresh user, with a new home directory.
Comment 16 Joe Shaw 2005-11-10 21:15:07 UTC
I can't duplicate this one anymore.  It doesn't lock up, although it still seems to think that it's playing, but it's not.
Comment 17 Joe Shaw 2005-11-10 21:20:14 UTC
actually, wait, i was able to duplicate this on a different machine, although it doesn't seem to have anything to do with whether or not anothe process is using the sound device.

The output to the console is:

[joe@platitude ~]$ banshee
0: Active Player Engine is now 'GStreamer'
1: Loaded PlayerEngine core: GStreamer
2: Loaded AudioCdPlayerEngine core: GStreamer
3: Audio CD Core Initialized
4: Registered Banshee.SqlLoadTransaction
5: Executing Banshee.SqlLoadTransaction

... trying to play an ogg vorbis file.
Comment 18 Joe Shaw 2005-12-06 19:01:50 UTC
ok, so I installed NLD 10 alpha 2 and I can no longer duplicate this.  I'm going to close.