Red Hat Bugzilla – Bug 490040
PA sticks to dead session bus
Last modified: 2009-04-10 10:52:38 EDT
Description of problem:
if I logout and I start a new session, pulseaudio is not working any longer (see #481685 closed for F10)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Boot (and pulseaudio is working)
2.Logout and login
3.Start any multimedia application and you will not get sound (actually you don't get even the login system sound)
4. issue pulseaudio -k and you will get back audio
No sound if you don't issue a pulseaudio -k
it should work
runnin Nvidia card with nv or nouveau driver
This bug has been triaged
Fedora Bugzappers volunteer triage team
If I am logged as UserA and I logout and I login as UserB I have pulseaudio working, when I log out from UserB and I re-login as UserA pulseaudio is not working.
It seems that only first session on any User make pulseaudio work (not totally sure..)
Is PulseAudio even running in the second session? What does "pactl list" print?
Created attachment 335895 [details]
First user log
pactl list when logged as A first time
Created attachment 335897 [details]
Same user logs out and logs in
user A logs out then logs in, no audio is running unless pulseaudio -k is issued.
This is before issuing pulseaudio -k
differences start at line 285, furthermore pa1 is longer than pa2!!!
I am not an expert at all, but I assume that the two files should be similar...
On a different system everything is running fine.
Sorry, unless I am stupid those two files are completely identical.
Also, please include the contents of ~/.xession-errors and everything from syslog that is related to PA here.
I will send also that files...when I have my hands on that machine.
Anyway, the two files are different, at least on the client numbers at lines 285 and afterwards and at the end:
output-analog-stereo+input-analog-stereo: Output Analog Stereo + Input Analog Stereo (sinks: 1, sources: 1, priority. 81010)
output-analog-stereo: Output Analog Stereo (sinks: 1, sources: 0, priority. 51000)
output-iec958-stereo+input-analog-stereo: Output Digital Stereo (IEC958) + Input Analog Stereo (sinks: 1, sources: 1, priority. 80510)
output-iec958-stereo: Output Digital Stereo (IEC958) (sinks: 1, sources: 0, priority. 50500)
output-analog-surround-40+input-analog-stereo: Output Analog Surround 4.0 + Input Analog Stereo (sinks: 1, sources: 1, priority. 30710)
output-analog-surround-40: Output Analog Surround 4.0 (sinks: 1, sources: 0, priority. 700)
output-analog-surround-41+input-analog-stereo: Output Analog Surround 4.1 + Input Analog Stereo (sinks: 1, sources: 1, priority. 30710)
output-analog-surround-41: Output Analog Surround 4.1 (sinks: 1, sources: 0, priority. 700)
output-analog-surround-50+input-analog-stereo: Output Analog Surround 5.0 + Input Analog Stereo (sinks: 1, sources: 1, priority. 30710)
output-analog-surround-50: Output Analog Surround 5.0 (sinks: 1, sources: 0, priority. 700)
output-analog-surround-51+input-analog-stereo: Output Analog Surround 5.1 + Input Analog Stereo (sinks: 1, sources: 1, priority. 30810)
output-analog-surround-51: Output Analog Surround 5.1 (sinks: 1, sources: 0, priority. 800)
input-analog-stereo: Input Analog Stereo (sinks: 0, sources: 1, priority. 30010)
off: Off (sinks: 0, sources: 0, priority. 0)
Profilo attivo: output-analog-stereo+input-analog-stereo
These lines are missing on the second attachment (the non working file).
Tnx for help
Created attachment 337241 [details]
.xsession-errors after logout and login as same user...with no sound
Created attachment 337242 [details]
relevant part (Pulseaudio messages) after logout and login
There's something wrong with your D-Bus installation as it seems since PA cannot connect to your D-Bus server.
anything I can do to debug my D-bus installation???
Shall I file a bug against D-bus???
I issued a pulseaudio -k before logout and I logged in again as same user and sound is o.k.
I am not an expert, but I am not sure that it is connected to D-bus....It seems that is connected to management of tasks at logout.
Just an idea....a shot in the dark...
reserve-wrap.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NoServer: Failed to connect to socket /tmp/dbus-j5Bx5XidBz: Connessione rifiutata
That tells me that the D-Bus session bus is not around. And that's a bug somewhere else.
shall we point the bug to another component??
Are you running anything in a non-default way? i.e. you are not using KDE or something like that? You are not trying to use PA's system-wide mode, are you?
I am running Gnome.
It is a standard installation, actually it is a F9, that became F10 and then rawhide.
I am using snd_intel8x0.
I think that nothing is running in a non default-way...
I inserted only the tsched=0 option and
default-fragments = 8
default-fragment-size-msec = 5 in daemon.conf in /etc/pulse
No, I am not running PA in system-wide mode.
for example I log in as A then I logout and I login as B and then I logout and I login as A, sound is working fine.
If I login as A and I logout and then I login again as A, I do not have sound.
Sound comes back if I logout and I login as a different user...
Could you please edit default.pa and set log-level to debug? Then retry and get me the outputs from syslog.
Oh, and the to initial logs are still mostly the same. They show differences in the connected clients. But that's it. I see no hint that the profile list was any different. Are you sure you attached the right files?
Created attachment 337406 [details]
Pulseaudio is working at first login
I changed level-debug in /pulse/daemon.conf
Created attachment 337407 [details]
Pulseaudio is not working at next login
Files are different: 481 lines vs 383.
Furthermore I note that sinks or Sorgente change status from Idle or running to Suspended.
Any additional test I can run???
uh, the log level only has an effect on the logs. i..e what appears in syslog. pactl output is not influenced by it.
Please provide me with the syslog output when pa starts up and it doesn't work for you, with log-level set to debug.
Created attachment 337442 [details]
after booting, I logged in as user A, sound system could be heard, immediately logged out and relogged as user A, no sound.
The full /var/log/messages since booting is attached
I updated to pulseaudio-0.9.15-8.test7.fc11.i586 and problem seems to be solved ...Tomorrow I will check if this bug can be closed, too late now for testing.
Hmmm, I am pretty sure this is not fixed.
I think I mostly understand what's going on: When you relogin PA stays around since it is a per-user, not a per-session daemon. It will usually exist after a 5s of idle. Now the problem is that it tries to do device reservation on the session bus. Since it got started from the first session it still tries to connect to the bus of that first session even when it is used by the second -- that bus is dead at that time and PA cannot do device reservation. Dang!
Not sure how to fix this. But at least I understand what's going on.
Should fixed in pulseaudio-0.9.15-9.test8.fc11