Bug 231116

Summary: knotify crashes when using gstreamer backend
Product: [Unmaintained] phonon-backend-gstreamer Reporter: Jon Nelson <jnelson-kde>
Component: generalAssignee: Matthias Kretz <kretz>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, kai.kasurinen, martin.sandsmark, myriam
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jon Nelson 2010-03-17 16:28:33 UTC
Application: knotify4 (4.0)
KDE Platform Version: 4.4.1 (KDE 4.4.1) "release 227"
Qt Version: 4.6.2
Operating System: Linux 2.6.31.12-0.1-desktop x86_64
Distribution: "openSUSE 11.2 (x86_64)"

-- Information about the crash:
knotify crashes when using gstreamer backend.
Many many crashes lately. Every single time knotify is used to ring the bell.
Also tried switching back to the xine backend, and that's no better.

The last few days have been super unstable in KDE 4.4.whatever with respect to sound. A week ago it was pretty rock solid. Not sure what changed!



The crash can be reproduced every time.

 -- Backtrace:
Application: KNotify (knotify4), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f647560c7f0 (LWP 7988))]

Thread 2 (Thread 0x7f6461933910 (LWP 7994)):
#0  0x00007f6472e1cd03 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f64662208bf in poll_func (ufds=0x98a4a0, nfds=2, timeout=-1, userdata=0x989be0) at pulse/thread-mainloop.c:75
#2  0x00007f6466210b76 in pa_mainloop_poll (m=0x76ce00) at pulse/mainloop.c:879
#3  0x00007f6466211f59 in pa_mainloop_iterate (m=0x76ce00, block=<value optimized out>, retval=0x0) at pulse/mainloop.c:961
#4  0x00007f6466212010 in pa_mainloop_run (m=0x76ce00, retval=0x0) at pulse/mainloop.c:979
#5  0x00007f64662207cb in thread (userdata=0x76cdc0) at pulse/thread-mainloop.c:94
#6  0x00007f6465fdd738 in internal_thread_func (userdata=0x76cfb0) at pulsecore/thread-posix.c:72
#7  0x00007f647171865d in start_thread (arg=<value optimized out>) at pthread_create.c:297
#8  0x00007f6472e25e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f647560c7f0 (LWP 7988)):
[KCrash Handler]
#5  0x00007f6469b7b019 in snd_pcm_ioplug_close (pcm=<value optimized out>) at pcm_ioplug.c:743
#6  0x00007f6469b3dd15 in snd_pcm_close (pcm=0x99cd60) at pcm.c:706
#7  0x00007f646664723f in gst_element_class_get_pad_template_list () from /usr/lib64/gstreamer-0.10/libgstalsa.so
#8  0x00007f6468676486 in gst_audioringbuffer_close_device (buf=<value optimized out>) at gstaudiosink.c:365
#9  0x00007f6468669e9b in gst_ring_buffer_close_device (buf=0x96f4c0) at gstringbuffer.c:714
#10 0x00007f6468671de6 in gst_base_audio_sink_change_state (element=<value optimized out>, transition=GST_STATE_CHANGE_READY_TO_NULL) at gstbaseaudiosink.c:1879
#11 0x00007f6468f1ebbc in gst_element_change_state () from /usr/lib64/libgstreamer-0.10.so.0
#12 0x00007f6468f21fcc in ?? () from /usr/lib64/libgstreamer-0.10.so.0
#13 0x00007f6468f0e173 in ?? () from /usr/lib64/libgstreamer-0.10.so.0
#14 0x00007f6468f1ebbc in gst_element_change_state () from /usr/lib64/libgstreamer-0.10.so.0
#15 0x00007f6468f21fcc in ?? () from /usr/lib64/libgstreamer-0.10.so.0
#16 0x00007f64696a1577 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#17 0x00007f64696a264d in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#18 0x00007f64696a2778 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#19 0x00007f64696a21c3 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#20 0x00007f64696a2496 in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#21 0x00007f6469693aea in ?? () from /usr/lib64/kde4/plugins/phonon_backend/phonon_gstreamer.so
#22 0x00007f6474bfc50d in Phonon::PathPrivate::executeTransaction (this=<value optimized out>, disconnections=<value optimized out>, connections=...) at /usr/src/debug/phonon-4.4/phonon/path.cpp:330
#23 0x00007f6474bfd701 in Phonon::Path::reconnect (this=0x7fffdec35100, source=0x7649f0, sink=0x7648a0) at /usr/src/debug/phonon-4.4/phonon/path.cpp:197
#24 0x00007f6474bfd87d in Phonon::createPath (source=0x7649f0, sink=0x7648a0) at /usr/src/debug/phonon-4.4/phonon/path.cpp:432
#25 0x000000000040d25a in Player (this=<value optimized out>) at /usr/src/debug/kdebase-runtime-4.4.1/knotify/notifybysound.cpp:61
#26 PlayerPool::getPlayer (this=<value optimized out>) at /usr/src/debug/kdebase-runtime-4.4.1/knotify/notifybysound.cpp:99
#27 0x000000000040d76e in NotifyBySound::notify (this=0x731c50, eventId=8, config=0x7fffdec35180) at /usr/src/debug/kdebase-runtime-4.4.1/knotify/notifybysound.cpp:243
#28 0x0000000000408d83 in KNotify::emitEvent (this=0x7fffdec36440, e=0x7150a0) at /usr/src/debug/kdebase-runtime-4.4.1/knotify/knotify.cpp:179
#29 0x0000000000409042 in KNotify::event (this=0x7fffdec36440, event=<value optimized out>, appname=<value optimized out>, contexts=<value optimized out>, title=<value optimized out>, 
    text=<value optimized out>, image=..., actions=..., timeout=-1, winId=71303207) at /usr/src/debug/kdebase-runtime-4.4.1/knotify/knotify.cpp:128
#30 0x000000000040937f in KNotifyAdaptor::event (this=0x722000, event=..., fromApp=..., contexts=<value optimized out>, title=..., text=<value optimized out>, image=..., actions=..., timeout=-1, 
    winId=71303207) at /usr/src/debug/kdebase-runtime-4.4.1/knotify/knotify.cpp:236
#31 0x000000000040a05b in KNotifyAdaptor::qt_metacall (this=0x722000, _c=InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffdec356d0)
    at /usr/src/debug/kdebase-runtime-4.4.1/build/knotify/knotify.moc:227
#32 0x00007f64744f922e in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:904
#33 0x00007f64744fa04b in QDBusConnectionPrivate::activateCall (this=<value optimized out>, object=0x722000, flags=273, msg=...) at qdbusintegrator.cpp:816
#34 0x00007f64744faacd in QDBusConnectionPrivate::activateObject (this=<value optimized out>, node=<value optimized out>, msg=..., pathStartPos=<value optimized out>) at qdbusintegrator.cpp:1364
#35 0x00007f64744fad68 in QDBusActivateObjectEvent::placeMetaCall (this=0x63e240) at qdbusintegrator.cpp:1477
#36 0x00007f64741cf6c9 in QObject::event (this=0x7fffdec36440, e=0x63e240) at kernel/qobject.cpp:1248
#37 0x00007f647357be1c in QApplicationPrivate::notify_helper (this=0x64c0e0, receiver=0x7fffdec36440, e=0x63e240) at kernel/qapplication.cpp:4300
#38 0x00007f64735823fb in QApplication::notify (this=0x7fffdec36470, receiver=0x7fffdec36440, e=0x63e240) at kernel/qapplication.cpp:4183
#39 0x00007f6474fe4456 in KApplication::notify (this=0x7fffdec36470, receiver=0x7fffdec36440, event=0x63e240) at /usr/src/debug/kdelibs-4.4.1/kdeui/kernel/kapplication.cpp:302
#40 0x00007f64741bf98c in QCoreApplication::notifyInternal (this=0x7fffdec36470, receiver=0x7fffdec36440, event=0x63e240) at kernel/qcoreapplication.cpp:704
#41 0x00007f64741c2107 in sendEvent (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.h:215
#42 QCoreApplicationPrivate::sendPostedEvents (event=<value optimized out>, receiver=<value optimized out>) at kernel/qcoreapplication.cpp:1345
#43 0x00007f64741e9373 in sendPostedEvents () at kernel/qcoreapplication.h:220
#44 postEventSourceDispatch () at kernel/qeventdispatcher_glib.cpp:276
#45 0x00007f646fc3cdee in g_main_dispatch (context=<value optimized out>) at gmain.c:1960
#46 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#47 0x00007f646fc407b8 in g_main_context_iterate (context=0x650d20, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>) at gmain.c:2591
#48 0x00007f646fc408e0 in IA__g_main_context_iteration (context=0x650d20, may_block=1) at gmain.c:2654
#49 0x00007f64741e8eb3 in QEventDispatcherGlib::processEvents (this=0x6281b0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#50 0x00007f647362a51e in QGuiEventDispatcherGlib::processEvents (this=0x76ccd0, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007f64741be2a2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#52 0x00007f64741be67c in QEventLoop::exec (this=0x7fffdec36390, flags=) at kernel/qeventloop.cpp:201
#53 0x00007f64741c23cb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#54 0x0000000000407f5f in main (argc=<value optimized out>, argv=<value optimized out>) at /usr/src/debug/kdebase-runtime-4.4.1/knotify/main.cpp:73
The current source language is "auto; currently c".

Reported using DrKonqi
Comment 1 Dario Andres 2010-03-17 17:03:58 UTC
It seems a crash deep inside Gstreamer code...mh
Comment 2 Dario Andres 2010-04-06 14:18:38 UTC
May be something related to Gstreamer or PulseAudio changed ? it seems the crash is related to a long/un-efficient Gstreamer chain... as described in bug 232068. 
Regards

*** This bug has been marked as a duplicate of bug 232068 ***
Comment 3 Myriam Schweingruber 2011-04-27 21:16:47 UTC
reassigning to the new bugzilla product for better bug tracing of the various backends. Sorry for the noise.