FS#20420 - Pulseaudio + KDE + Phonon-Gstreamer = segmentation fault on a number of KDE apps

Attached to Project: Arch Linux
Opened by Jorge Sousa (Xehoz) - Monday, 09 August 2010, 17:58 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 28 November 2010, 23:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
If KDE is installed after a previous installation of Pulseaudio, since Arch Linux default installs phonon-gstreamer, that causes segmentation fault crashes in a number of applications and no sound.

That happens at least with Knotify, Amarok, DigiKam, Dragon Player and Kscd.

Package versions:
phonon 4.4.2-1
phonon-gstreamer 4.4.2-1
pulseaudio 0.9.21-8

Steps to reproduce:
Set up pulseaudio and, after that, install KDE with pacman -S kde. That group includes only phonon-gstreamer. According to the wiki, that is a choice made by Arch Linux.

+++++Installing phonon-xine is a workaround for this issue.+++++
(tested with phonon-xine 4.4.2-1)

For the record, Here is one of the logs (they are more or less the same but, for others, check this post):
https://bbs.archlinux.org/viewtopic.php?pid=806298#p806298

Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f3e2d9bf780 (LWP 6707))]

Thread 2 (Thread 0x7f3e14a82710 (LWP 6713)):
#0 0x00007f3e2a68ff43 in poll () from /lib/libc.so.6
#1 0x00007f3e1a4ee2bf in poll_func () from /usr/lib/libpulse.so.0
#2 0x00007f3e1a4e0086 in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3 0x00007f3e1a4e06b9 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4 0x00007f3e1a4e0770 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5 0x00007f3e1a4ee25b in thread () from /usr/lib/libpulse.so.0
#6 0x00007f3e1a2ab5d8 in internal_thread_func () from /usr/lib/libpulsecommon-0.9.21.so
#7 0x00007f3e28d27cb0 in start_thread () from /lib/libpthread.so.0
#8 0x00007f3e2a6987ad in clone () from /lib/libc.so.6
#9 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3e2d9bf780 (LWP 6707)):
[KCrash Handler]
#5 0x00007f3e1bf1cff9 in snd_pcm_ioplug_close () from /usr/lib/libasound.so.2
#6 0x00007f3e1bedbd65 in snd_pcm_close () from /usr/lib/libasound.so.2
#7 0x00007f3e1a914f98 in gst_alsasink_close () from /usr/lib/gstreamer-0.10/libgstalsa.so
#8 0x00007f3e1af49b86 in gst_audioringbuffer_close_device () from /usr/lib/libgstaudio-0.10.so.0
#9 0x00007f3e1af3a143 in gst_ring_buffer_close_device () from /usr/lib/libgstaudio-0.10.so.0
#10 0x00007f3e1af45396 in gst_base_audio_sink_change_state () from /usr/lib/libgstaudio-0.10.so.0
#11 0x00007f3e1b7ed8fc in gst_element_change_state () from /usr/lib/libgstreamer-0.10.so.0
#12 0x00007f3e1b7ee2e2 in gst_element_set_state_func () from /usr/lib/libgstreamer-0.10.so.0
#13 0x00007f3e1ba98a2a in Phonon::Gstreamer::AudioOutput::setOutputDevice(Phonon::ObjectDescription<(Phonon::ObjectDescriptionType)0> const&) ()
from /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so
#14 0x00007f3e2812485c in Phonon::AudioOutputPrivate::setupBackendObject() () from /usr/lib/libphonon.so.4
#15 0x00007f3e28124e63 in Phonon::AudioOutputPrivate::createBackendObject() () from /usr/lib/libphonon.so.4
#16 0x00007f3e281220cc in Phonon::AudioOutputPrivate::init(Phonon::Category) () from /usr/lib/libphonon.so.4
#17 0x00007f3e2cbfb4ac in EngineController::initializePhonon() () from /usr/lib/libamaroklib.so.1
#18 0x00007f3e2cbfc27d in EngineController::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libamaroklib.so.1
#19 0x00007f3e2bc034ff in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /usr/lib/libQtCore.so.4
#20 0x00007f3e2bc03b68 in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () from /usr/lib/libQtCore.so.4
#21 0x00007f3e2cd1bc05 in Amarok::DefaultApplicationController::initEngineController() () from /usr/lib/libamaroklib.so.1
#22 0x00007f3e2cd1bc81 in Amarok::DefaultApplicationController::start() () from /usr/lib/libamaroklib.so.1
#23 0x00007f3e2cbc2625 in App::continueInit() () from /usr/lib/libamaroklib.so.1
#24 0x00007f3e2cbc58df in App::App() () from /usr/lib/libamaroklib.so.1
#25 0x00000000004080ad in _start ()
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 28 November 2010, 23:28 GMT
Reason for closing:  Works for me
Additional comments about closing:  no segfaults here. re-open if necessary
Comment by Tom Gundersen (tomegun) - Saturday, 14 August 2010, 02:16 GMT
I don't know if this is related, but there are some bugfixes to the pulseaudio plugin in gstreamer git.

They solve the problem of stuttering sound after pausing in Amarok, but I'm not experiencing these segfaults so I don't know if it solves them too.

To try it out you need gstreamer 0.10.30, and gstreamer-plugins-good from git.
Comment by Roman Kyrylych (Romashka) - Wednesday, 18 August 2010, 13:06 GMT
Well, PulseAudio is not officially supported in Arch's KDE, so I don't see how this bug is supposed to be fixed by us.
Comment by Jorge Sousa (Xehoz) - Thursday, 19 August 2010, 21:45 GMT
Well, it's like I said. If what is stated in the Wiki is truth: that the option to install exclusively phonon-gstreamer, in the default installation KDE, is Arch's, then the "fix" would be to also install phonon-xine, apparently. That, or checking if pulseaudio/kde packages are installed and creating a dependency, which, also apparently, is the case.
Comment by Andrea Scarpino (BaSh) - Friday, 26 November 2010, 09:37 GMT
status with packages in [testing]?
Comment by Christos Kotsaris (TemplarGR) - Sunday, 28 November 2010, 12:41 GMT
I would like to add that after updating phonon, pulseaudio, gstreamer0.10 and all related packages, it seems i face no problem with segmentfaults but i can here no KDE theme sounds when using phonon-gstreamer backend. Amarok plays fine with it. I will create another bug report for this.

Loading...