Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XMMS (alsa) Playback Stops Randomly
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
alienvenom
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2005
Posts: 123
Location: San Francisco, CA

PostPosted: Wed Jan 19, 2005 11:50 am    Post subject: XMMS (alsa) Playback Stops Randomly Reply with quote

At first I thought it was because of a large amount of disk activity (I was emerging something) but it also happens when I browse websites that take a while to render. Perhaps it's got something to do with high CPU usage...

I installed the drivers the same way I always have... Not using the ones built into the kernel, emerged them, using the intel8x0 driver.

Is this normal behavior? I've not experienced such a thing before. If so, how would I go about disabling it? The weird thing is, XMMS almost appears as if its in a "paused" state. It just doesn't say "paused" though.

The only config file that I think would have anyting to do with it is /etc/asound.conf:

Code:
#/etc/asound.conf start:
pcm.!default {
  type plug
  slave.pcm "dmixer"
  }
pcm.dsp0 {
  type plug
  slave.pcm "dmixer"
  }
pcm.dmixer {
  type dmix
  ipc_key 1024
 slave {
  pcm "hw:0,0"
  period_time 0
  period_size 1024
 buffer_size 8192
  rate 44100
  }
 bindings {
  0 0
  1 1
  }
  }

ctl.dmixer {
  type hw
  card 0
  }
#end.


Edit: I haven't tried a different audio player. I'll do that and then report back to you, but don't let that stop you all from sharing your words of wisdom. :)
Back to top
View user's profile Send private message
bakreule
Apprentice
Apprentice


Joined: 27 Aug 2003
Posts: 233
Location: Paris, France

PostPosted: Wed Jan 19, 2005 12:18 pm    Post subject: Reply with quote

I had a similiar problem a little while back. My solution was to activate pre-emption in the kernel. Which kernel are you running?

Before the hoards descend on me with flaming swords, let me say that this was MY solution. It's probably not the best one. People say pre-emption slows things down, but it fixed my sound problem, and I didn't notice any general slowdown.

That being said, this was back with 2.6.6, and kernel pre-emption is no longer activated by default, so maybe I should try disabling it again.....
Back to top
View user's profile Send private message
alienvenom
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2005
Posts: 123
Location: San Francisco, CA

PostPosted: Wed Jan 19, 2005 12:20 pm    Post subject: Reply with quote

2.6.10-gentoo-r5
Back to top
View user's profile Send private message
bakreule
Apprentice
Apprentice


Joined: 27 Aug 2003
Posts: 233
Location: Paris, France

PostPosted: Thu Jan 20, 2005 6:56 pm    Post subject: Reply with quote

How did it go? Did you recompile the kernel? Did it work?
Back to top
View user's profile Send private message
alienvenom
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jan 2005
Posts: 123
Location: San Francisco, CA

PostPosted: Thu Jan 20, 2005 9:06 pm    Post subject: Reply with quote

Well, sometimes it works, sometimes it doesn't. I'm still trying to figure out what is triggering it to stop playing randomly.

I may just re-emerge XMMS. I had Bleep (god forbid) Media Player installed. I'm not sure how it got installed, but I don't like it. Since it is very much related to XMMS (which is what I've noticed this random sound stoppage in), I'm thinking may have interfered at one point.

I also noticed that with XMMS open, if you try to launch Bleep, interesting things happen. On my computer, it caused XMMS to change to the next track -- weird.
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Thu Jan 20, 2005 11:20 pm    Post subject: Reply with quote

I had a similar issue with BMP. Turns out it was an issue with libmpeg123 and alsa. However, this only occured with gentoo-dev + alsa (using either the built in OR the alsa-driver package). I use ck sources but decided to try gentoo-dev for gensplash as I wasn't successful with patching my kernel for it.

Try launching xmms from terminal and see what the dump is when it crashes. If that doesn't get you anything, use gdb to run the program to debug. This might give you or others some clues as to what's happening.
Back to top
View user's profile Send private message
hans0r
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2005
Posts: 122
Location: Germany

PostPosted: Fri Jan 21, 2005 1:14 am    Post subject: Reply with quote

i had the same problem. switching to bmp "solved" it. :D
no more mysterious playback-freezes.

i don't know what you have against bmp. i really like it. it even looks better
Back to top
View user's profile Send private message
Ateo
Advocate
Advocate


Joined: 02 Jun 2003
Posts: 2021
Location: Republic of California

PostPosted: Fri Jan 21, 2005 4:22 am    Post subject: Reply with quote

hans0r wrote:
i had the same problem. switching to bmp "solved" it. :D
no more mysterious playback-freezes.

i don't know what you have against bmp. i really like it. it even looks better


I don't judge a program based on looks. I judge based on usability. Installing plugins never worked for me. XMMS has never given me an issue

Besides, I said my issue was with libmpeg123/alsa/gentoo-dev, not bmp as both xmms and bmp crashed. XMMS has been around a lot longer which is why I tried the rest and use the best... IMO. I could really care less if xmms is gtk1. It works.
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Fri Apr 01, 2005 5:25 am    Post subject: Reply with quote

I have the same issue. When CPU usage reaches 100%, XMMS stops playing. My kernel is gentoo-dev-sources 2.6.11-r4, I use the same configuration of ALSA.
Did you solve the problem?
Thanks,
Z.
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Tue Apr 05, 2005 4:44 am    Post subject: Reply with quote

Same problem here. It's quite annoying.

I tried reniceing xmms to -5 (every other user process is niced at 0) and that didn't help at all.

I guess it's time to start looking for alternatives to xmms :?

edit: Based on the other threads on these forums it seems to be related to dmix, and also seems to affect bmp for some people.

This really sucks.

I'm gonna try xmms niced at -10. -- edit2: that doesn't work either.:evil: :evil: :evil: :evil: :evil: :evil: :evil:
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Tue Apr 05, 2005 5:34 am    Post subject: Reply with quote

I filed a bug report: https://bugs.gentoo.org/show_bug.cgi?id=87999

Since all of my music is now ripped to my hard drive, I would really like it to be resolved. It really sucks to not be able to listen to songs the whole way through.
Back to top
View user's profile Send private message
opentaka
l33t
l33t


Joined: 18 Feb 2005
Posts: 840
Location: Japan

PostPosted: Sat Apr 09, 2005 5:36 am    Post subject: Reply with quote

same problem here to..
but it works fine in my 2.0.11-r4 gentoo box in my laptop without dmix(but alsa) but 2.6.10-r6 with dmix(and alsa) doesnt work.
it annoys me.. looks like streaming music doesnt randamly stop, only local mp3 files.
_________________
"Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Sat Apr 09, 2005 6:21 am    Post subject: Reply with quote

Ya, it's definately a dmix problem. I disabled dmix and haven't had any problems since. I had to turn off sounds in gaim though, becuase I couldn't take the long stream of chimes after I finish listening to a few songs.

I'm not too happy with this workaround, but at least I can listen to music without saying "What the fuck!!!!" every few minutes.



Errrr.... I guess I spoke too soon. It just happened with no dmix. Definately not as often as before though, as it's only happened once in about 2 hours worth of music as opposed to 80 times in two hours worth of music.
Back to top
View user's profile Send private message
opentaka
l33t
l33t


Joined: 18 Feb 2005
Posts: 840
Location: Japan

PostPosted: Sat Apr 09, 2005 7:50 am    Post subject: Reply with quote

yaya I first thoght its my alsa problem or my hardware gone mad, but good to know someone has the same error.
I use moc now and it works cool, but dmix doesnt work on moc, thats the only sad thing :P
_________________
"Being defeated is often a temporary condition. Giving up is what makes it permanent" - Marilyn vos Savant
Back to top
View user's profile Send private message
paolo
l33t
l33t


Joined: 23 Jul 2002
Posts: 768
Location: SBT (AP)

PostPosted: Fri Apr 15, 2005 6:51 pm    Post subject: Reply with quote

I've got the same prob (music stop) here with Beep Media Player. Resolved disabling Mmap in the Preferences of the output plugin (alsa), but now with high CPU load sounds crappy...
_________________
Nihil sine magno labore
Back to top
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Fri Apr 15, 2005 8:58 pm    Post subject: Reply with quote

I've been using xmms with the OSS output plugin for the last few days, and haven't had the problem since.

I'll add that to the bug report later today.
_________________
What is the best [insert-type-of-program-here]?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum