PulseAudio Hangs OS11.O?

I have been chasing hangs/crashes for a while now.

Finally I noticed this in the warning LOG…

Feb  5 20:06:20 linux-1gux pulseaudio[2703]: core-util.c: setpriority(): Permission denied
Feb  5 20:06:20 linux-1gux pulseaudio[2703]: pid.c: Stale PID file, overwriting.
Feb  5 20:06:20 linux-1gux pulseaudio[2703]: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
Feb  5 20:06:20 linux-1gux pulseaudio[2703]: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: pid.c: Daemon already running.
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: socket-server.c: bind(): Address already in use
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: module.c: Failed to load  module "module-esound-protocol-unix" (argument: ""): initialization failed.
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: main.c: Module load failed.
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: main.c: Failed to initialize daemon.
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: pid.c: PID file '/tmp/pulse-logan/pid' not mine!

It seems like this kind of stuff is consistently the last before a hang.

Anecdotally, if I kill pulse, it doesn’t seem to Hang!

Any help or comments would be appreciated.

logan9999 wrote:
> Anecdotally, if I kill pulse, it doesn’t seem to Hang!

after you kill pulse your sound still works–am i correct?

many folks have solved lots of sound problems by not running
pulseaudio…there is even a thread somewhere in these fora named
something like “safe removal of pulseaudio via YaST”

and, within the last couple of weeks a step-by-step of how to
uninstall pulse from a Gnome machine (claiming that Gnome was very
dependent on, and closely tied to pulseaudio–a fact not in evidence…)


palladium

I went to the link and I hit more of the topic around the forum as well.

For me doing a reload is not very much fun. It takes the better part of a day to get everything set back up. So I want to be clear on this.

This shows how to remove it ONLY with gnome and…

How to Remove Pulseaudio in OpenSUSE 11.2 GNOME - openSUSE Forums

The last post in this thread in ONLY for kde.

How to safely remove/disable pulse audio? - openSUSE Forums

Does that sound right??

Oh sorry, yeah the sound works fine after I end pulse in system monitor. You are correct there. Oddly enough volume control is different, but better.

I really don’t understand what pulse is actually supposed to do. Alsa is API/driver, and pulse does…something??

Oh and FYI: the reason it was hanging so bad, is that I was playing with the sounds and turned on all alerts and notifications.
So it seems like gnome sounds must operate through pulse audio.

After I turned them all off, I get this in the warning log when it hangs…

Feb  5 20:06:28 linux-1gux pulseaudio[2765]: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
Feb  5 20:06:28 linux-1gux pulseaudio[2765]: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted

if hangs stop and sound works with Pulseaudio turned off, then follow

Rule One: If it ain’t broken don’t fix it.

just leave pulseaudio off and go and

Have a lot of Fun!


palladium

Pulse audio is fairly recent, and the intention is it will address some short comings in Linux sound. However there are problems currently with pulse implementation that still have not been addressed to the satisfaction of many.

There are some basic openSUSE Linux sound concepts described here: Sound-concepts - openSUSE

UPDATE:I have still experienced infrequent hangs within a few minutes of killing pulse. But if I get through that 5-10 minute period, it will run for hours.

The drawing at How PulseAudio works — Rudd-O.com

is extremely helpful.

I am still confused as to why I still have sound after killing pulseaudio in system monitor.

It can only be two things: Either the sound apps I am using link directly to OSS/ALSA, or there are still some active components of pulse that are the enablers.???

And finally if KDE is not based on pulseaudio, should I try a reload with KDE rather than removing pulse from gnome? Seems like that may provide more functionality and be easier for someone of my expertise level.

Just to close this down.

I loaded the KDE3 (patterns) and switched the session at login. Have only been using KDE now for a week or so.
So far I have not seen a hang.

Will probably remove gnome if this continues.

Thanks for the help.

Sound-concepts - openSUSE

A very nice page!

Perhaps it could be expanded to include a bit about Portaudio, OpenAL, CSound, SDL, etc… as well?