Bug 39506

Summary: Kdenlive crash when overwriting existing file
Product: PulseAudio Reporter: admin
Component: coreAssignee: pulseaudio-bugs
Status: RESOLVED NOTOURBUG QA Contact: pulseaudio-bugs
Severity: normal    
Priority: medium CC: colin, lennart
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description admin 2011-07-24 10:09:05 UTC
Application: knotify4 (4.0)
KDE Platform Version: 4.6.5 (4.6.5)
Qt Version: 4.7.3
Operating System: Linux 2.6.35.13-92.fc14.i686 i686
Distribution: "Fedora release 14 (Laughlin)"

-- Information about the crash:
- What I was doing when the application crashed:

1. Open Kdenlive and add a new clip to the project tree and then to the
timeline
2. Click render button
3. Choose any existing *avi file on the system as the output target
4. Click "Render File"
5. The "Warning Kdenlive" popup will appear. As soon as you move the mouse over
the popup, the app crashes.

Everything works as expected if you give a unique name to the output file.
Crash happens only when attempting to overwrite existing file. It does not have
to be the clip source file.

The crash can be reproduced every time.

-- Backtrace:
Application: KNotify (knotify4), signal: Aborted
[Current thread is 1 (Thread 0xb78c3780 (LWP 9159))]

Thread 7 (Thread 0xb7656b70 (LWP 9160)):
#0  0x00ac9416 in __kernel_vsyscall ()
#1  0x007d5c36 in __poll (fds=0xb6d029c0, nfds=1, timeout=-1) at
../sysdeps/unix/sysv/linux/poll.c:87
#2  0x01007dac in g_poll (fds=0xb6d029c0, nfds=1, timeout=-1) at gpoll.c:132
#3  0x00ff78b7 in g_main_context_poll (context=0x93cb518, block=1, dispatch=1,
self=<value optimized out>) at gmain.c:3093
#4  g_main_context_iterate (context=0x93cb518, block=1, dispatch=1, self=<value
optimized out>) at gmain.c:2775
#5  0x00ff804b in g_main_loop_run (loop=0x93cb598) at gmain.c:2988
#6  0x06c42ed5 in gdbus_shared_thread_func (data=0x0) at gdbusprivate.c:277
#7  0x01020bd0 in g_thread_create_proxy (data=0x93cb5a8) at gthread.c:1897
#8  0x0020be99 in start_thread (arg=0xb7656b70) at pthread_create.c:301
#9  0x007e0d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 6 (Thread 0xb04ffb70 (LWP 9272)):
#0  0x00ac9416 in __kernel_vsyscall ()
#1  0x0021039b in pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x01c219c3 in gst_task_func (task=0x93c7b08 [GstTask]) at gsttask.c:259
#3  0x01c22b08 in default_func (tdata=0x980c400, pool=0x944d358 [GstTaskPool])
at gsttaskpool.c:70
#4  0x010233a1 in g_thread_pool_thread_proxy (data=0x94e9d60) at
gthreadpool.c:319
#5  0x01020bd0 in g_thread_create_proxy (data=0x98076f0) at gthread.c:1897
#6  0x0020be99 in start_thread (arg=0xb04ffb70) at pthread_create.c:301
#7  0x007e0d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 5 (Thread 0xab2fdb70 (LWP 9273)):
#0  0x00ac9416 in __kernel_vsyscall ()
#1  0x0021039b in pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x029c9a3c in gst_data_queue_pop (queue=0xafb38978 [GstDataQueue],
item=0xab2fd14c) at gstdataqueue.c:494
#3  0x054c440e in gst_multi_queue_loop (pad=0xafb10580 [GstPad]) at
gstmultiqueue.c:1030
#4  0x01c217f1 in gst_task_func (task=0xafb2acf0 [GstTask]) at gsttask.c:271
#5  0x01c22b08 in default_func (tdata=0x980c238, pool=0x944d358 [GstTaskPool])
at gsttaskpool.c:70
#6  0x010233a1 in g_thread_pool_thread_proxy (data=0x94e9d60) at
gthreadpool.c:319
#7  0x01020bd0 in g_thread_create_proxy (data=0xafbfefd0) at gthread.c:1897
#8  0x0020be99 in start_thread (arg=0xab2fdb70) at pthread_create.c:301
#9  0x007e0d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 4 (Thread 0xa62fab70 (LWP 9274)):
#0  0x00ac9416 in __kernel_vsyscall ()
#1  0x0020dc26 in __pthread_mutex_lock_full (mutex=0x21dff4) at
pthread_mutex_lock.c:301
#2  0x08729862 in pa_mutex_lock (m=0xafb4d3f8) at pulsecore/mutex-posix.c:90
#3  0x00b1006d in poll_func (ufds=0xafb12700, nfds=1, timeout=-1,
userdata=0xafb4d3f8) at pulse/thread-mainloop.c:76
#4  0x00afee7a in pa_mainloop_poll (m=0xafb4d358) at pulse/mainloop.c:879
#5  0x00aff655 in pa_mainloop_iterate (m=0xafb4d358, block=1, retval=0x0) at
pulse/mainloop.c:961
#6  0x00aff734 in pa_mainloop_run (m=0xafb4d358, retval=0x0) at
pulse/mainloop.c:979
#7  0x00b10004 in thread (userdata=0xafb4e550) at pulse/thread-mainloop.c:94
#8  0x0872a973 in internal_thread_func (userdata=0xafb4e388) at
pulsecore/thread-posix.c:72
#9  0x0020be99 in start_thread (arg=0xa62fab70) at pthread_create.c:301
#10 0x007e0d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 3 (Thread 0xb0e0ab70 (LWP 9275)):
#0  0x00ac9416 in __kernel_vsyscall ()
#1  0x0021039b in pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x01c219c3 in gst_task_func (task=0xafb24d10 [GstTask]) at gsttask.c:259
#3  0x01c22b08 in default_func (tdata=0xb0502e58, pool=0x944d358 [GstTaskPool])
at gsttaskpool.c:70
#4  0x010233a1 in g_thread_pool_thread_proxy (data=0x94e9d60) at
gthreadpool.c:319
#5  0x01020bd0 in g_thread_create_proxy (data=0xafb36f20) at gthread.c:1897
#6  0x0020be99 in start_thread (arg=0xb0e0ab70) at pthread_create.c:301
#7  0x007e0d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 2 (Thread 0xabafeb70 (LWP 9276)):
#0  0x00ac9416 in __kernel_vsyscall ()
#1  0x0021039b in pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S:169
#2  0x01c219c3 in gst_task_func (task=0xafb24d98 [GstTask]) at gsttask.c:259
#3  0x01c22b08 in default_func (tdata=0xafb1fe10, pool=0x944d358 [GstTaskPool])
at gsttaskpool.c:70
#4  0x010233a1 in g_thread_pool_thread_proxy (data=0x94e9d60) at
gthreadpool.c:319
#5  0x01020bd0 in g_thread_create_proxy (data=0xafb37160) at gthread.c:1897
#6  0x0020be99 in start_thread (arg=0xabafeb70) at pthread_create.c:301
#7  0x007e0d2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:133

Thread 1 (Thread 0xb78c3780 (LWP 9159)):
[KCrash Handler]
#7  0x00ac9416 in __kernel_vsyscall ()
#8  0x007342f1 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#9  0x00735d5e in abort () at abort.c:92
#10 0x0870dd6c in pa_memblock_unref (b=0xabb4f028) at pulsecore/memblock.c:589
#11 0x00b067b7 in stream_free (s=0xafb08810) at pulse/stream.c:229
#12 pa_stream_unref (s=0xafb08810) at pulse/stream.c:256
#13 0x019a5080 in gst_pulsering_destroy_stream (pbuf=0x9658c08
[GstPulseRingBuffer]) at pulsesink.c:276
#14 0x019a50d9 in gst_pulseringbuffer_release (buf=0x9658c08
[GstPulseRingBuffer]) at pulsesink.c:946
#15 0x08f0f0d8 in gst_ring_buffer_release (buf=0x9658c08 [GstPulseRingBuffer])
at gstringbuffer.c:881
#16 0x08f1b1fe in gst_base_audio_sink_change_state (element=0x9656ef8
[GstPulseSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstbaseaudiosink.c:1958
#17 0x019a6128 in gst_pulsesink_change_state (element=0x9656ef8 [GstPulseSink],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at pulsesink.c:2670
#18 0x01bda346 in gst_element_change_state (element=0x9656ef8 [GstPulseSink],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstelement.c:2603
#19 0x01bdadfc in gst_element_set_state_func (element=0x9656ef8 [GstPulseSink],
state=GST_STATE_READY) at gstelement.c:2559
#20 0x01bda090 in gst_element_set_state (element=0x9656ef8 [GstPulseSink],
state=GST_STATE_READY) at gstelement.c:2460
#21 0x01bc58bc in gst_bin_element_set_state (element=0xafb0c540
[GstAutoAudioSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstbin.c:2184
#22 gst_bin_change_state_func (element=0xafb0c540 [GstAutoAudioSink],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2483
#23 0x09361874 in gst_auto_audio_sink_change_state (element=0xafb0c540
[GstAutoAudioSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstautoaudiosink.c:398
#24 0x01bda346 in gst_element_change_state (element=0xafb0c540
[GstAutoAudioSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstelement.c:2603
#25 0x01bdadfc in gst_element_set_state_func (element=0xafb0c540
[GstAutoAudioSink], state=GST_STATE_READY) at gstelement.c:2559
#26 0x01bda090 in gst_element_set_state (element=0xafb0c540 [GstAutoAudioSink],
state=GST_STATE_READY) at gstelement.c:2460
#27 0x01bc58bc in gst_bin_element_set_state (element=0xafb11398 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2184
#28 gst_bin_change_state_func (element=0xafb11398 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2483
#29 0x01bda346 in gst_element_change_state (element=0xafb11398 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstelement.c:2603
#30 0x01bdadfc in gst_element_set_state_func (element=0xafb11398 [GstBin],
state=GST_STATE_READY) at gstelement.c:2559
#31 0x01bda090 in gst_element_set_state (element=0xafb11398 [GstBin],
state=GST_STATE_READY) at gstelement.c:2460
#32 0x01bc58bc in gst_bin_element_set_state (element=0x984b858
[GstGConfAudioSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstbin.c:2184
#33 gst_bin_change_state_func (element=0x984b858 [GstGConfAudioSink],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2483
#34 0x07c6bf5f in gst_switch_sink_change_state (element=0x984b858
[GstGConfAudioSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstswitchsink.c:257
#35 0x07c69954 in gst_gconf_audio_sink_change_state (element=0x984b858
[GstGConfAudioSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstgconfaudiosink.c:298
#36 0x01bda346 in gst_element_change_state (element=0x984b858
[GstGConfAudioSink], transition=GST_STATE_CHANGE_PAUSED_TO_READY) at
gstelement.c:2603
#37 0x01bdadfc in gst_element_set_state_func (element=0x984b858
[GstGConfAudioSink], state=GST_STATE_READY) at gstelement.c:2559
#38 0x01bda090 in gst_element_set_state (element=0x984b858 [GstGConfAudioSink],
state=GST_STATE_READY) at gstelement.c:2460
#39 0x01bc58bc in gst_bin_element_set_state (element=0x952c3b8 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2184
#40 gst_bin_change_state_func (element=0x952c3b8 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2483
#41 0x01bda346 in gst_element_change_state (element=0x952c3b8 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstelement.c:2603
#42 0x01bdadfc in gst_element_set_state_func (element=0x952c3b8 [GstBin],
state=GST_STATE_READY) at gstelement.c:2559
#43 0x01bda090 in gst_element_set_state (element=0x952c3b8 [GstBin],
state=GST_STATE_READY) at gstelement.c:2460
#44 0x01bc58bc in gst_bin_element_set_state (element=0x952c558 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2184
#45 gst_bin_change_state_func (element=0x952c558 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2483
#46 0x01bda346 in gst_element_change_state (element=0x952c558 [GstBin],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstelement.c:2603
#47 0x01bdadfc in gst_element_set_state_func (element=0x952c558 [GstBin],
state=GST_STATE_READY) at gstelement.c:2559
#48 0x01bda090 in gst_element_set_state (element=0x952c558 [GstBin],
state=GST_STATE_READY) at gstelement.c:2460
#49 0x01bc58bc in gst_bin_element_set_state (element=0x9810130 [GstPipeline],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2184
#50 gst_bin_change_state_func (element=0x9810130 [GstPipeline],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstbin.c:2483
#51 0x01bfb56b in gst_pipeline_change_state (element=0x9810130 [GstPipeline],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstpipeline.c:475
#52 0x01bda346 in gst_element_change_state (element=0x9810130 [GstPipeline],
transition=GST_STATE_CHANGE_PAUSED_TO_READY) at gstelement.c:2603
#53 0x01bdadfc in gst_element_set_state_func (element=0x9810130 [GstPipeline],
state=GST_STATE_NULL) at gstelement.c:2559
#54 0x01bda090 in gst_element_set_state (element=0x9810130 [GstPipeline],
state=GST_STATE_NULL) at gstelement.c:2460
#55 0x01974e90 in Phonon::Gstreamer::MediaObject::setSource (this=0x98c3a78,
source=...) at
/usr/src/debug/phonon-backend-gstreamer-4.5.1/gstreamer/mediaobject.cpp:1045
#56 0x006ce04e in Phonon::MediaObject::setCurrentSource(Phonon::MediaSource
const&) () from /usr/lib/libphonon.so.4
#57 0x08054399 in play (this=0x94b3068, eventId=9, config=0x98acd88) at
/usr/src/debug/kdebase-runtime-4.6.5/knotify/notifybysound.cpp:63
#58 NotifyBySound::notify (this=0x94b3068, eventId=9, config=0x98acd88) at
/usr/src/debug/kdebase-runtime-4.6.5/knotify/notifybysound.cpp:245
#59 0x080511ec in KNotify::emitEvent (this=0xbf80798c, e=0x98acd80) at
/usr/src/debug/kdebase-runtime-4.6.5/knotify/knotify.cpp:230
#60 0x08051f36 in KNotify::event (this=0xbf80798c, event=..., appname=...,
contexts=..., title=..., text=..., image=..., actions=..., timeout=-1,
winId=73411934) at /usr/src/debug/kdebase-runtime-4.6.5/knotify/knotify.cpp:149
#61 0x0805220b in KNotifyAdaptor::event (this=0x94c8788, event=...,
fromApp=..., contexts=..., title=..., text=..., image=..., actions=...,
timeout=-1, winId=73411934) at
/usr/src/debug/kdebase-runtime-4.6.5/knotify/knotify.cpp:289
#62 0x080523ed in KNotifyAdaptor::qt_metacall (this=0x94c8788,
_c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbf806fac) at
/usr/src/debug/kdebase-runtime-4.6.5/i686-redhat-linux-gnu/knotify/knotify.moc:227
#63 0x0057bf35 in QDBusConnectionPrivate::deliverCall (this=0x938cd78,
object=0x94c8788, msg=..., metaTypes=..., slotIdx=8) at qdbusintegrator.cpp:941
#64 0x0057d147 in QDBusConnectionPrivate::activateCall (this=0x938cd78,
object=0x94c8788, flags=273, msg=...) at qdbusintegrator.cpp:851
#65 0x0057d6b0 in QDBusConnectionPrivate::activateObject (this=0x938cd78,
node=..., msg=..., pathStartPos=7) at qdbusintegrator.cpp:1429
#66 0x0057db3b in QDBusActivateObjectEvent::placeMetaCall (this=0x9863488) at
qdbusintegrator.cpp:1523
#67 0x03c227cf in QObject::event (this=0xbf80798c, e=0x9863488) at
kernel/qobject.cpp:1217
#68 0x03e9558c in QApplicationPrivate::notify_helper (this=0x939b760,
receiver=0xbf80798c, e=0x9863488) at kernel/qapplication.cpp:4462
#69 0x03e9a292 in QApplication::notify (this=0xbf8079a0, receiver=0xbf80798c,
e=0x9863488) at kernel/qapplication.cpp:3862
#70 0x00d764fb in KApplication::notify (this=0xbf8079a0, receiver=0xbf80798c,
event=0x9863488) at
/usr/src/debug/kdelibs-4.6.5/kdeui/kernel/kapplication.cpp:311
#71 0x03c0cf63 in QCoreApplication::notifyInternal (this=0xbf8079a0,
receiver=0xbf80798c, event=0x9863488) at kernel/qcoreapplication.cpp:731
#72 0x03c10cb5 in sendEvent (receiver=0x0, event_type=0, data=0x9377f18) at
kernel/qcoreapplication.h:215
#73 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x9377f18) at kernel/qcoreapplication.cpp:1372
#74 0x03c10e8e in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at kernel/qcoreapplication.cpp:1265
#75 0x03c3ab35 in sendPostedEvents (s=0x9396b10) at
kernel/qcoreapplication.h:220
#76 postEventSourceDispatch (s=0x9396b10) at
kernel/qeventdispatcher_glib.cpp:277
#77 0x00ff7192 in g_main_dispatch (context=0x9396a90) at gmain.c:2149
#78 g_main_context_dispatch (context=0x9396a90) at gmain.c:2702
#79 0x00ff7978 in g_main_context_iterate (context=0x9396a90, block=1,
dispatch=1, self=<value optimized out>) at gmain.c:2780
#80 0x00ff7c35 in g_main_context_iteration (context=0x9396a90, may_block=1) at
gmain.c:2843
#81 0x03c3acad in QEventDispatcherGlib::processEvents (this=0x9377a70,
flags=...) at kernel/qeventdispatcher_glib.cpp:422
#82 0x03f49206 in QGuiEventDispatcherGlib::processEvents (this=0x9377a70,
flags=...) at kernel/qguieventdispatcher_glib.cpp:207
#83 0x03c0c0fa in QEventLoop::processEvents (this=0xbf8078e4, flags=...) at
kernel/qeventloop.cpp:149
#84 0x03c0c3aa in QEventLoop::exec (this=0xbf8078e4, flags=...) at
kernel/qeventloop.cpp:201
#85 0x03c10f57 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1008
#86 0x03e93398 in QApplication::exec () at kernel/qapplication.cpp:3736
#87 0x0804f63d in main (argc=) at
/usr/src/debug/kdebase-runtime-4.6.5/knotify/main.cpp:73

Reported using DrKonqi
Comment 1 Arun Raghavan 2011-08-15 10:15:05 UTC
Not sure where this bug is, but it's not in PulseAudio itself as far as I can tell. Something is not being shut down cleanly in pulsesink while the GStreamer pipeline is being shut down. The problem itself seems to be triggered by notification sounds, so if you are able to find an easier way to reproduce this, that might be helpful for someone that uses KDE to pin this down.
Comment 2 Arun Raghavan 2012-02-08 22:41:52 UTC
Any progress on debugging this?
Comment 3 admin 2012-02-09 17:46:28 UTC
Well, I do not have my old Fedora 14 installed so I cannot help with providing any additional information. This bug does not happen to me under Linuxmint 12 KDE. Not sure if you guys fixed it, or scared the hell out of this bug, but it is not there any more (at least in my configuration).
Good luck!
Comment 4 Colin Guthrie 2012-03-13 17:32:29 UTC
I've generally found that knotify can crash quite often when generating sound events.

For a long time now, I've patched knotify to not use Phonon and instead use libcanberra to generate it's sound events and none of my users have reported problems.

See this KDE bug for details on my knotify patches: https://bugs.kde.org/show_bug.cgi?id=284176

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.