Bug 187883

Summary: SIGSEGV on second startup (Phonon::AudioOutputAdaptor)
Product: [Frameworks and Libraries] Phonon Reporter: Jonas Eriksson <jonte.eriksson>
Component: generalAssignee: Matthias Kretz <kretz>
Status: RESOLVED FIXED    
Severity: crash CC: monoceros84
Priority: NOR    
Version: 4.2 (KDE 4.1)   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Kopete phonon crash-log

Description Jonas Eriksson 2009-03-22 21:59:03 UTC
Version:           0.10.0-1ubuntu~intrepid~ppa1 (using KDE 4.2.0)
OS:                Linux
Installed from:    Ubuntu Packages

I've just upgraded my 0.94 to 0.10.0, by using Synaptic and PPA packages. This problem may be related to 187429. I have also tried complete remove of 0.10.0 and install again.

After reboot I can start digikam - no crash:

digikam(6401) Phonon::KdePlatformPlugin::createBackend: using backend:  "GStreamer"
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) "default" 
Starting to load Plugins. 
Files:  "CompassFloatItem.so" 
Files:  "MapScaleFloatItem.so"
etc.

After closing digikam and start again - crash:
gdb run...
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 0x4137e950 (LWP 6755)]
[New Thread 0x4309c950 (LWP 6756)]
[Thread 0x4309c950 (LWP 6756) exited]
digikam(6746) Phonon::KdePlatformPlugin::createBackend: using backend:  "GStreamer"
(no debugging symbols found)
[New Thread 0x4309c950 (LWP 6757)]
[New Thread 0x4389d950 (LWP 6758)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) "HDA ATI SB (ALC883 Analog)" 
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) ("unix:/tmp/pulse-jonas/native
alsa_output.pci_1002_4383_sound_card_0_alsa_playback_0") 
[Thread 0x4389d950 (LWP 6758) exited]
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) setProperty(device, "unix:/tmp/pulse-jonas/native
alsa_output.pci_1002_4383_sound_card_0_alsa_playback_0" ) failed 
[New Thread 0x4389d950 (LWP 6759)]
[New Thread 0x4409e950 (LWP 6760)]
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) "HDA ATI SB (ALC883 Analog)" 
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) ("unix:/tmp/pulse-jonas/native
alsa_output.pci_1002_4383_sound_card_0_alsa_playback_0") 
[Thread 0x4409e950 (LWP 6760) exited]
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) setProperty(device, "unix:/tmp/pulse-jonas/native
alsa_output.pci_1002_4383_sound_card_0_alsa_playback_0" ) failed 
[New Thread 0x4409e950 (LWP 6761)]
[New Thread 0x4489f950 (LWP 6762)]
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) "HDA ATI HDMI, ATI HDMI (HDMI Audio Output)" 
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) ("hdmi:CARD=HDMI") 
[Thread 0x4489f950 (LWP 6762) exited]
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) setProperty(device, "hdmi:CARD=HDMI" ) failed 
[New Thread 0x4489f950 (LWP 6763)]
[New Thread 0x450a0950 (LWP 6764)]
virtual bool Phonon::Gstreamer::AudioOutput::setOutputDevice(const Phonon::AudioOutputDevice&) "default" 

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fd6ba97d6f0 (LWP 6746)]
0x00007fd6b45e2ec7 in QMetaObject::activate () from /usr/lib/libQtCore.so.4

There is something fishy with that Phonon, as there is so much output with those lines when digikam craches.

Any hints of how to resolve this?

Regards
Jonas
Comment 1 caulier.gilles 2009-03-22 22:03:21 UTC
No clue from us, digiKam team about phonon

I move this report to KDE phonon component where right developers can help you...

Gilles Caulier
Comment 2 Pino Toscano 2009-03-22 22:17:58 UTC
There's nothing that says that the problem is in Phonon. Moving back to digikam.

@Jonas Eriksson:
can you please provide a backtrace of the crash?
You can find detailed instructions in:
http://techbase.kde.org/Development/Tutorials/Debugging/How_to_create_useful_crash_reports
Comment 3 Jonas Eriksson 2009-03-23 07:07:20 UTC
I will try to install debug packages tonight.

Jonas
Comment 4 Jonas Eriksson 2009-03-23 17:02:48 UTC
Created attachment 32359 [details]
Kopete phonon crash-log

This crash comes after trying to play a notification sound in the notification properties.
Comment 5 Jonas Eriksson 2009-03-23 17:10:26 UTC
Argh... adding an attachment file removed my whole comment!

Well, what I had written was that this problem indeed has to do with phonon.

Application: digiKam (digikam), signal SIGSEGV
0x00007fb82f7186e1 in nanosleep () from /lib/libc.so.6
[Current thread is 0 (LWP 7755)]

Thread 5 (Thread 0x424ec950 (LWP 7756)):
#0  0x00007fb82f45f2d9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fb8301f9349 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x000000000064cc73 in Digikam::ScanController::run (this=0x12259d0) at /build/buildd/digikam-0.10.0/digikam/scancontroller.cpp:412
#3  0x00007fb8301f8362 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fb82f45b3ea in start_thread () from /lib/libpthread.so.0
#5  0x00007fb82f756cbd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x434ee950 (LWP 7759)):
#0  0x00007fb82f45f2d9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fb8301f9349 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007fb8339a62ac in Digikam::LoadSaveThread::run (this=0x153e2d0) at /build/buildd/digikam-0.10.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007fb8301f8362 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fb82f45b3ea in start_thread () from /lib/libpthread.so.0
#5  0x00007fb82f756cbd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x42ced950 (LWP 7760)):
#0  0x00007fb82f45f2d9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fb8301f9349 in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007fb8339a62ac in Digikam::LoadSaveThread::run (this=0x1546460) at /build/buildd/digikam-0.10.0/libs/threadimageio/loadsavethread.cpp:131
#3  0x00007fb8301f8362 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fb82f45b3ea in start_thread () from /lib/libpthread.so.0
#5  0x00007fb82f756cbd in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x43cef950 (LWP 7766)):
#0  0x00007fb82f74d236 in poll () from /lib/libc.so.6
#1  0x00007fb819e74f6d in ?? () from /usr/lib/libpulse.so.0
#2  0x00007fb819e6948a in pa_mainloop_poll () from /usr/lib/libpulse.so.0
#3  0x00007fb819e6a8e8 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#4  0x00007fb819e6a9b0 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#5  0x00007fb819e74d6d in ?? () from /usr/lib/libpulse.so.0
#6  0x00007fb819e91400 in ?? () from /usr/lib/libpulse.so.0
#7  0x00007fb82f45b3ea in start_thread () from /lib/libpthread.so.0
#8  0x00007fb82f756cbd in clone () from /lib/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb8366906f0 (LWP 7755)):
[KCrash Handler]
#5  0x00007fb8302f5ec7 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#6  0x00007fb836061b01 in Phonon::AudioOutputAdaptor::outputDeviceIndexChanged (this=0x7fb83626fb80, _t1=0) at /build/buildd/phonon-4.3.0/obj-x86_64-linux-gnu/phonon/moc_audiooutputadaptor_p.cpp:185
#7  0x00007fb83604cebe in Phonon::AudioOutputPrivate::handleAutomaticDeviceChange (this=0x15d1590, device2=@0x7fff3e6d2a30, type=Phonon::AudioOutputPrivate::FallbackChange)
    at /build/buildd/phonon-4.3.0/phonon/audiooutput.cpp:366
#8  0x00007fb83604e12f in Phonon::AudioOutputPrivate::setupBackendObject (this=0x15d1590) at /build/buildd/phonon-4.3.0/phonon/audiooutput.cpp:269
#9  0x00007fb83604c84f in Phonon::AudioOutputPrivate::init (this=0x15d1590, c=<value optimized out>) at /build/buildd/phonon-4.3.0/phonon/audiooutput.cpp:85
#10 0x00007fb83605c143 in Phonon::VideoPlayerPrivate::init (this=0x15cfa50, q=0x15d0ff0, category=Phonon::VideoCategory) at /build/buildd/phonon-4.3.0/phonon/videoplayer.cpp:59
#11 0x00007fb83605c3c5 in VideoPlayer (this=0x15d0ff0, category=Phonon::VideoCategory, parent=<value optimized out>) at /build/buildd/phonon-4.3.0/phonon/videoplayer.cpp:75
#12 0x000000000064028b in MediaPlayerView (this=0x15ce630, parent=<value optimized out>) at /build/buildd/digikam-0.10.0/digikam/mediaplayerview.cpp:108
#13 0x00000000005f1d10 in AlbumWidgetStack (this=0x14bd4a0, parent=<value optimized out>) at /build/buildd/digikam-0.10.0/digikam/albumwidgetstack.cpp:121
#14 0x000000000061bd51 in DigikamView (this=0x14ba0e0, parent=<value optimized out>) at /build/buildd/digikam-0.10.0/digikam/digikamview.cpp:198
#15 0x0000000000605277 in Digikam::DigikamApp::setupView (this=0x124cb70) at /build/buildd/digikam-0.10.0/digikam/digikamapp.cpp:427
#16 0x000000000061041e in DigikamApp (this=0x124cb70) at /build/buildd/digikam-0.10.0/digikam/digikamapp.cpp:195
#17 0x0000000000672861 in main (argc=<value optimized out>, argv=0x7fff3e6d3b18) at /build/buildd/digikam-0.10.0/digikam/main.cpp:167

I have no problems playing sounds in GStreamer properties or elsewhere.

Regards
Jonas
Comment 6 caulier.gilles 2009-03-23 17:19:30 UTC
Pino,

In digiKam, we don't do anything special with phonon. We just embeds the widget to play video file. that all.

Gilles
Comment 7 Pino Toscano 2009-03-23 17:29:10 UTC
(In reply to comment #6)
> In digiKam, we don't do anything special with phonon. We just embeds the widget
> to play video file. that all.

Sure, but there was nothing more than output to say what effectively the problem is. _now_ that we have a clear backtrace, we can reassign it to phonon.
Comment 8 caulier.gilles 2009-03-24 17:59:21 UTC
*** Bug 187959 has been marked as a duplicate of this bug. ***
Comment 9 Jonas Eriksson 2009-03-26 18:46:41 UTC
I read something about killing the kded4 process, so I tried it and then there is no crash when starting digikam or playing notification sound in kopete. If I start the kde4d process again and then starts digikam it crasches.

I don't know how import the kded4 process is to all kde-programs though...
Comment 10 Jonas Eriksson 2009-03-27 20:13:24 UTC
My latest solution to this problem is to remove phonon-backend-gstreamer and install phonon-backend-xine instead.
Comment 11 Myriam Schweingruber 2009-11-08 15:12:38 UTC
Does this still happen with the latest KDE 4.3.3?
Comment 12 Mathias Lindner 2009-11-08 16:12:43 UTC
No, it was fixed quite fast after reporting.
Comment 13 Myriam Schweingruber 2009-11-30 13:42:07 UTC
Thanks for the feedback. Closing then :)