Bug#639211: [pulseaudio] PA gets killed if module-combine and realtime scheduling enabled.

Petr Gajdůšek gajdusek.petr at centrum.cz
Thu Aug 25 03:05:38 UTC 2011


Package: pulseaudio
Version: 0.9.23-1
Severity: normal

Hello,

I have enabled module-combine via paprefs:
$ gconftool -R /system/pulseaudio/modules/combine
 locked = false
 name0 = module-combine
 args0 = 
 enabled = true

If pulseaudio is started with realtime scheduling, after the module-combine
is initialized and new thread started, my computer stops until
pulseaudio gets SIGKILLed. 

With default autospawn this leads to many cycles until rtkit starts
denying realtime requests from PA. This lasts for several minutes: for
several seconds system is stopped, next few seconds reacts ok, and so
again.

Without realtime scheduling is everything fine.

Debug log with realtime scheduling and module-combine (from module-gconf loading):

D: [pulsecore/cli-command.c:1714 pa_cli_command_execute_line_stateful()] Checking for existance of '/usr/lib/pulse-0.9.23/modules/module-gconf.so': success
D: [modules/gconf/module-gconf.c:185 load_module()] Loading module 'module-combine' with args '' due to GConf configuration.
D: [pulsecore/core-subscribe.c:245 pa_subscription_post()] Dropped redundant event due to change event.
I: [pulsecore/sink.c:325 pa_sink_new()] Created sink 1 "combined" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulsecore/sink.c:325 pa_sink_new()]     device.class = "filter"
I: [pulsecore/sink.c:325 pa_sink_new()]     device.description = "Simultaneous Output"
I: [pulsecore/sink.c:325 pa_sink_new()]     device.icon_name = "audio-card"
D: [pulsecore/core-subscribe.c:245 pa_subscription_post()] Dropped redundant event due to change event.
I: [pulsecore/source.c:291 pa_source_new()] Created source 2 "combined.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulsecore/source.c:291 pa_source_new()]     device.description = "Monitor of Simultaneous Output"
I: [pulsecore/source.c:291 pa_source_new()]     device.class = "monitor"
I: [pulsecore/source.c:291 pa_source_new()]     device.icon_name = "audio-input-microphone"
D: [pulsecore/memblockq.c:84 pa_memblockq_new()] memblockq requested: maxlength=16777216, tlength=16777216, base=4, prebuf=1, minreq=0 maxrewind=0
D: [pulsecore/memblockq.c:97 pa_memblockq_new()] memblockq sanitized: maxlength=16777216, tlength=16777216, base=4, prebuf=4, minreq=4 maxrewind=0
D: [modules/module-combine.c:299 thread_func()] Thread starting up
D: [pulsecore/core-util.c:658 set_scheduler()] RealtimeKit worked.
I: [pulsecore/core-util.c:679 pa_make_realtime()] Successfully enabled SCHED_RR scheduling for thread, with priority 6.

Pulseaudio gets killed here.

Whole logs for failing (realtime) and working (non realtime) configurations
are attached. I have sripped syslog meta informations for easier comparing, 
but I do not see any important difference.

Same problem with pulseaudio 0.99.2-1 from experimental (with module-combine-sink).

Output of www.alsa-project.org/alsa-info.sh is attached too.

Cheers,
Petr Gajdůšek


--- System information. ---
Architecture: i386
Kernel:       Linux 3.0.0-1-686-pae

Debian Release: wheezy/sid
  990 unstable        ftp.cz.debian.org 
  500 experimental    ftp.cz.debian.org 

--- Package information. ---
Depends                     (Version) | Installed
=====================================-+-===================
libasound2              (>> 1.0.24.1) | 1.0.24.1-3
libc6                        (>= 2.9) | 2.13-18
libcap2                     (>= 2.10) | 1:2.22-1
libdbus-1-3                (>= 1.0.2) | 1.4.14-1
libgdbm3                   (>= 1.8.3) | 1.8.3-10
libice6                  (>= 1:1.0.0) | 2:1.0.7-2
libltdl7                     (>= 2.4) | 2.4-4
libpulse0                (= 0.9.23-1) | 0.9.23-1
libsamplerate0                        | 0.1.8-1
libsm6                                | 2:1.2.0-2
libsndfile1               (>= 1.0.20) | 1.0.25-3
libspeexdsp1       (>= 1.2~beta3.2-1) | 1.2~rc1-1
libudev0                     (>= 146) | 172-1
libx11-6                              | 2:1.4.4-1
libx11-xcb1                           | 2:1.4.4-1
libxcb1                               | 1.7-3
libxtst6                              | 2:1.2.0-3
adduser                               | 3.113
lsb-base                  (>= 3.2-13) | 3.2-27
consolekit                            | 0.4.5-1
udev                         (>= 143) | 172-1


Recommends                    (Version) | Installed
=======================================-+-===========
pulseaudio-module-x11                   | 0.9.23-1
libasound2-plugins                      | 1.0.24-2
gstreamer0.10-pulseaudio                | 0.10.30-1
pulseaudio-esound-compat                | 0.9.23-1


Suggests              (Version) | Installed
===============================-+-===========
pulseaudio-utils                | 0.9.23-1
pavumeter                       | 0.9.3-1
pavucontrol                     | 0.9.9-1
paman                           | 0.9.4-1
paprefs                         | 0.9.9-2
rtkit                           | 0.10-2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa-info.txt.gz
Type: application/x-gzip
Size: 4866 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-pulseaudio-devel/attachments/20110825/d987c65b/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pulseaudio+norealtime+combine.log.gz
Type: application/x-gzip
Size: 10763 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-pulseaudio-devel/attachments/20110825/d987c65b/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pulseaudio+realtime+combine.log.gz
Type: application/x-gzip
Size: 7897 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-pulseaudio-devel/attachments/20110825/d987c65b/attachment-0005.bin>


More information about the pkg-pulseaudio-devel mailing list