Bug 467966 - Crash in av_packet_free_side_data() when stopping recording
Summary: Crash in av_packet_free_side_data() when stopping recording
Status: RESOLVED WORKSFORME
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords: drkonqi, qt6
Depends on:
Blocks:
 
Reported: 2023-03-30 11:49 UTC by Nicolas Fella
Modified: 2023-10-29 03:45 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (2.63 KB, text/plain)
2023-08-17 10:29 UTC, Dan Dascalescu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Fella 2023-03-30 11:49:57 UTC
Application: spectacle (23.07.70)
 (Compiled from sources)
Qt Version: 6.6.0
Frameworks Version: 5.240.0
Operating System: Linux 6.2.8-200.fc37.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 37 (KDE Plasma)
DrKonqi: 5.27.80 [KCrashBackend]

-- Information about the crash:
- Record workspace
- Stop recording
- boom

The crash can be reproduced every time.

-- Backtrace:
Application: Spectacle (spectacle), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = 0x0}
[KCrash Handler]
#5  0x00007f2d012be30e in free () at /lib64/libc.so.6
#6  0x00007f2cfff91085 in av_packet_free_side_data () at /lib64/libavcodec.so.59
#7  0x00007f2cfff9179d in av_packet_unref () at /lib64/libavcodec.so.59
#8  0x00007f2d000532aa in avcodec_receive_packet () at /lib64/libavcodec.so.59
#9  0x00007f2d0506bb01 in PipeWireReceiveEncodedThread::run() (this=0x7f2c68043890) at /home/nico/kde6/src/kpipewire/src/pipewireproduce.cpp:283
#10 0x00007f2d01ad1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#11 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#12 QThreadPrivate::start(void*) (arg=0x7f2c68043890) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#13 0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#14 0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 25 (Thread 0x7f2c647f86c0 (LWP 12648) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc10f8 in thread_loopfilter (p_data=<optimized out>) at vp8/encoder/ethreading.c:31
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 24 (Thread 0x7f2c64ff96c0 (LWP 12647) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc638f in thread_encoding_proc (p_data=<optimized out>) at vp8/encoder/ethreading.c:53
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 23 (Thread 0x7f2c657fa6c0 (LWP 12646) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc638f in thread_encoding_proc (p_data=<optimized out>) at vp8/encoder/ethreading.c:53
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 22 (Thread 0x7f2c65ffb6c0 (LWP 12645) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc638f in thread_encoding_proc (p_data=<optimized out>) at vp8/encoder/ethreading.c:53
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 21 (Thread 0x7f2c667fc6c0 (LWP 12644) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc638f in thread_encoding_proc (p_data=<optimized out>) at vp8/encoder/ethreading.c:53
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 20 (Thread 0x7f2c66ffd6c0 (LWP 12643) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc638f in thread_encoding_proc (p_data=<optimized out>) at vp8/encoder/ethreading.c:53
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 19 (Thread 0x7f2c677fe6c0 (LWP 12642) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc638f in thread_encoding_proc (p_data=<optimized out>) at vp8/encoder/ethreading.c:53
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 18 (Thread 0x7f2c67fff6c0 (LWP 12641) "PipeWireProduce"):
#1  0x00007f2d012b5ea0 in __new_sem_wait_slow64.constprop.0 () at /lib64/libc.so.6
#2  0x00007f2cfccc638f in thread_encoding_proc (p_data=<optimized out>) at vp8/encoder/ethreading.c:53
#3  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#4  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 17 (Thread 0x7f2c7e7fe6c0 (LWP 12640) "PipeWireProduce"):
#1  0x00007f2ce852fcc8 in impl_pollfd_wait () at /usr/lib64/spa-0.2/support/libspa-support.so
#2  0x00007f2ce852007b in loop_iterate () at /usr/lib64/spa-0.2/support/libspa-support.so
#3  0x00007f2cff4d88c7 in do_loop () at /lib64/libpipewire-0.3.so.0
#4  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#5  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 16 (Thread 0x7f2c7efff6c0 (LWP 12639) "PipeWireProduce"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2d01ad9f3b in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x7f2c680443b0) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:111
#3  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x7f2c681f8ce8, mutex=mutex@entry=0x7f2c681f8cc8, deadline=...) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:182
#4  0x00007f2d01ad1b41 in QThread::wait(QDeadlineTimer) (this=<optimized out>, deadline=...) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:773
#5  0x00007f2d0506a58c in PipeWireProduce::stateChanged(pw_stream_state) (state=PW_STREAM_STATE_PAUSED, this=0x7f2c68003a00) at /home/nico/kde6/src/kpipewire/src/pipewireproduce.cpp:243
#6  PipeWireProduce::stateChanged(pw_stream_state) (this=0x7f2c68003a00, state=<optimized out>) at /home/nico/kde6/src/kpipewire/src/pipewireproduce.cpp:229
#7  0x00007f2d0199df7a in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7f2c7effd5c0, r=0x7f2c68003a00, this=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:363
#8  doActivate<false>(QObject*, int, void**) (sender=0x7f2c680053c0, signal_index=8, argv=0x7f2c7effd5c0) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:3977
#9  0x00007f2d0199667f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x7f2c680053c0, m=m@entry=0x7f2d03cf1720 <PipeWireSourceStream::staticMetaObject>, local_signal_index=local_signal_index@entry=5, argv=argv@entry=0x7f2c7effd5c0) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:4037
#10 0x00007f2d03cd9b28 in PipeWireSourceStream::stateChanged(pw_stream_state, pw_stream_state) (this=this@entry=0x7f2c680053c0, _t1=<optimized out>, _t1@entry=PW_STREAM_STATE_PAUSED, _t2=<optimized out>, _t2@entry=PW_STREAM_STATE_STREAMING) at /home/nico/kde6/build/kpipewire/src/KPipeWire_autogen/EWIEGA46WW/moc_pipewiresourcestream.cpp:294
#11 0x00007f2d03ce2d9e in PipeWireSourceStream::onStreamStateChanged(void*, pw_stream_state, pw_stream_state, char const*) (data=0x7f2c680053c0, old=PW_STREAM_STATE_STREAMING, state=PW_STREAM_STATE_PAUSED, error_message=0x0) at /home/nico/kde6/src/kpipewire/src/pipewiresourcestream.cpp:162
#12 0x00007f2cff513789 in stream_set_state.lto_priv () at /lib64/libpipewire-0.3.so.0
#13 0x00007f2cff513b05 in impl_send_command.lto_priv () at /lib64/libpipewire-0.3.so.0
#14 0x00007f2cff4fb1b6 in idle_node.lto_priv () at /lib64/libpipewire-0.3.so.0
#15 0x00007f2cff504b58 in pw_impl_node_set_state () at /lib64/libpipewire-0.3.so.0
#16 0x00007f2cb497a93a in client_node_command () at /usr/lib64/pipewire-0.3/libpipewire-module-client-node.so
#17 0x00007f2cb49896d5 in client_node_demarshal_command.lto_priv () at /usr/lib64/pipewire-0.3/libpipewire-module-client-node.so
#18 0x00007f2cb49c16ff in process_remote () at /usr/lib64/pipewire-0.3/libpipewire-module-protocol-native.so
#19 0x00007f2cb49c1d58 in on_remote_data () at /usr/lib64/pipewire-0.3/libpipewire-module-protocol-native.so
#20 0x00007f2ce85201c7 in loop_iterate () at /usr/lib64/spa-0.2/support/libspa-support.so
#21 0x00007f2d03cdaa8c in operator() (__closure=<optimized out>) at /home/nico/kde6/src/kpipewire/src/pipewirecore.cpp:78
#22 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, PipeWireCore::init(int)::<lambda()> >::call (arg=<optimized out>, f=<optimized out>) at /home/nico/kde6/usr/include/QtCore/qobjectdefs_impl.h:127
#23 QtPrivate::Functor<PipeWireCore::init(int)::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=<optimized out>, f=<optimized out>) at /home/nico/kde6/usr/include/QtCore/qobjectdefs_impl.h:241
#24 QtPrivate::QFunctorSlotObject<PipeWireCore::init(int)::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=<optimized out>, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /home/nico/kde6/usr/include/QtCore/qobjectdefs_impl.h:409
#25 0x00007f2d0199df7a in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7f2c7effdd50, r=0x7f2c68005610, this=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobjectdefs_impl.h:363
#26 doActivate<false>(QObject*, int, void**) (sender=0x7f2c6800da00, signal_index=3, argv=0x7f2c7effdd50) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:3977
#27 0x00007f2d0199667f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x7f2c6800da00, m=m@entry=0x7f2d01dd4080 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7f2c7effdd50) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:4037
#28 0x00007f2d019a9f3f in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) (this=this@entry=0x7f2c6800da00, _t1=..., _t2=<optimized out>, _t3=...) at /home/nico/workspace/qt6/qtbase/src/corelib/Core_autogen/include/moc_qsocketnotifier.cpp:231
#29 0x00007f2d019aa59d in QSocketNotifier::event(QEvent*) (this=0x7f2c6800da00, e=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qsocketnotifier.cpp:326
#30 0x00007f2d03f92a71 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x7f2c6800da00, e=0x7f2c7effde60) at /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qapplication.cpp:3284
#31 0x00007f2d019426a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7f2c6800da00, event=0x7f2c7effde60) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1115
#32 0x00007f2d01942829 in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1533
#33 0x00007f2d01bd82fc in socketNotifierSourceDispatch(GSource*, GSourceFunc, gpointer) (source=0x7f2c68005110) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:73
#34 0x00007f2cffb3ec7f in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#35 0x00007f2cffb95118 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#36 0x00007f2cffb3bf00 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#37 0x00007f2d01bd753c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f2c68000b70, flags=...) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#38 0x00007f2d0194d9f3 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f2c7effe0d0, flags=..., flags@entry=...) at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:34
#39 0x00007f2d01a548fa in QThread::exec() (this=this@entry=0xdd5b00) at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:74
#40 0x00007f2d0506b450 in PipeWireProduceThread::run() (this=0xdd5b00) at /home/nico/kde6/src/kpipewire/src/pipewireproduce.cpp:172
#41 0x00007f2d01ad1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#42 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#43 QThreadPrivate::start(void*) (arg=0xdd5b00) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#44 0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#45 0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 15 (Thread 0x7f2cb57fa6c0 (LWP 12628) "spectacl:gdrv0"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x7f2c940f2270) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 14 (Thread 0x7f2cb5ffb6c0 (LWP 12627) "spectacl:gdrv0"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x7f2c940055b0) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 13 (Thread 0x7f2cb67fc6c0 (LWP 12626) "QSGRenderThread"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2d01ad9f3b in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0xd9d9c0) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:111
#3  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0xdac948, mutex=mutex@entry=0xdac940, deadline=...) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:182
#4  0x00007f2d036342c9 in QSGRenderThreadEventQueue::takeEvent(bool) (wait=true, this=0xdac928) at /home/nico/workspace/qt6/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:188
#5  QSGRenderThread::processEventsAndWaitForMore() (this=this@entry=0xdac890) at /home/nico/workspace/qt6/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:824
#6  0x00007f2d03634512 in QSGRenderThread::run() (this=0xdac890) at /home/nico/workspace/qt6/qtdeclarative/src/quick/scenegraph/qsgthreadedrenderloop.cpp:946
#7  0x00007f2d01ad1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#8  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#9  QThreadPrivate::start(void*) (arg=0xdac890) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#10 0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#11 0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 12 (Thread 0x7f2cb7fff6c0 (LWP 12621) "spectacle:sh5"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x99e160) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 11 (Thread 0x7f2cc4bfe6c0 (LWP 12620) "spectacle:sh4"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x99b1e0) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 10 (Thread 0x7f2cc53ff6c0 (LWP 12619) "spectacle:sh3"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x999d20) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 9 (Thread 0x7f2cd8dfc6c0 (LWP 12618) "spectacle:sh2"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x99b380) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 8 (Thread 0x7f2cd95fd6c0 (LWP 12617) "spectacle:sh1"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x99b460) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 7 (Thread 0x7f2cd9dfe6c0 (LWP 12616) "spectacle:sh0"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x993010) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 6 (Thread 0x7f2cda5ff6c0 (LWP 12615) "spectac:disk$0"):
#1  0x00007f2d012ad510 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#2  0x00007f2cda70c51d in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#3  0x00007f2cda6bcd8b in util_queue_thread_func (input=input@entry=0x999d40) at ../src/util/u_queue.c:290
#4  0x00007f2cda70c44b in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#5  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#6  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 5 (Thread 0x7f2ce14146c0 (LWP 12614) "QQmlThread"):
#1  0x00007f2cffb9508d in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007f2cffb3bf00 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f2d01bd7561 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f2cd0000b70, flags=...) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:395
#4  0x00007f2d0194d9f3 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f2ce1413150, flags=..., flags@entry=...) at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:34
#5  0x00007f2d01a548fa in QThread::exec() (this=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:74
#6  0x00007f2d01ad1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#7  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#8  QThreadPrivate::start(void*) (arg=0x8dd0c0) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#9  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#10 0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 4 (Thread 0x7f2ce37fe6c0 (LWP 12607) "WaylandEventThr"):
#1  0x00007f2d050511c8 in wl_display_cancel_read (display=0x77b710) at ../src/wayland-client.c:1862
#2  0x00007f2d04690035 in QtWaylandClient::EventThread::run() (this=0x7b2890) at /home/nico/workspace/qt6/qtwayland/src/client/qwaylanddisplay.cpp:196
#3  0x00007f2d01ad1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#4  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#5  QThreadPrivate::start(void*) (arg=0x7b2890) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#6  0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#7  0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 3 (Thread 0x7f2ce3fff6c0 (LWP 12606) "WaylandEventThr"):
#1  0x00007f2d012b06d3 in __pthread_mutex_cond_lock () at /lib64/libc.so.6
#2  0x00007f2d012ad405 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libc.so.6
#3  0x00007f2d01ad9f3b in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x7b5e80) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:111
#4  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x7707d0, mutex=mutex@entry=0x7707c8, deadline=...) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:182
#5  0x00007f2d0468ffa7 in QtWaylandClient::EventThread::waitForReading() (this=0x770790) at /home/nico/workspace/qt6/qtwayland/src/client/qwaylanddisplay.cpp:216
#6  QtWaylandClient::EventThread::run() (this=0x770790) at /home/nico/workspace/qt6/qtwayland/src/client/qwaylanddisplay.cpp:177
#7  0x00007f2d01ad1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#8  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#9  QThreadPrivate::start(void*) (arg=0x770790) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#10 0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#11 0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 2 (Thread 0x7f2ce8fff6c0 (LWP 12605) "QDBusConnection"):
#1  0x00007f2cffb3cbd0 in g_source_iter_next () at /lib64/libglib-2.0.so.0
#2  0x00007f2cffb3f05b in g_main_context_check () at /lib64/libglib-2.0.so.0
#3  0x00007f2cffb94f8a in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#4  0x00007f2cffb3bf00 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#5  0x00007f2d01bd7561 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f2ce4000b70, flags=...) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:395
#6  0x00007f2d0194d9f3 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f2ce8ffe100, flags=..., flags@entry=...) at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:34
#7  0x00007f2d01a548fa in QThread::exec() (this=this@entry=0x7f2d02053760 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:74
#8  0x00007f2d01fc5efa in QDBusConnectionManager::run() (this=0x7f2d02053760 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /home/nico/workspace/qt6/qtbase/src/dbus/qdbusconnection.cpp:123
#9  0x00007f2d01ad1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#10 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#11 QThreadPrivate::start(void*) (arg=0x7f2d02053760 <QGlobalStatic<QtGlobalStatic::Holder<(anonymous namespace)::Q_QGS__q_manager> >::instance()::holder>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#12 0x00007f2d012ae12d in start_thread () at /lib64/libc.so.6
#13 0x00007f2d0132fbc0 in clone3 () at /lib64/libc.so.6

Thread 1 (Thread 0x7f2cf6681440 (LWP 12604) "spectacle"):
#1  0x00007f2d01ad9df1 in QWaitCondition::wakeOne() (this=this@entry=0x7707d0) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qwaitcondition_unix.cpp:154
#2  0x00007f2d0468a5c9 in QtWaylandClient::EventThread::readAndDispatchEvents() (this=<optimized out>) at /home/nico/workspace/qt6/qtwayland/src/client/qwaylanddisplay.cpp:125
#3  QtWaylandClient::QWaylandDisplay::flushRequests() (this=<optimized out>) at /home/nico/workspace/qt6/qtwayland/src/client/qwaylanddisplay.cpp:512
#4  0x00007f2d0198f34c in QObject::event(QEvent*) (this=0x779d10, e=0x7f2cdc0072b0) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qobject.cpp:1390
#5  0x00007f2d03f92a71 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=<optimized out>, receiver=0x779d10, e=0x7f2cdc0072b0) at /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qapplication.cpp:3284
#6  0x00007f2d019426a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x779d10, event=0x7f2cdc0072b0) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1115
#7  0x00007f2d01942829 in QCoreApplication::sendEvent(QObject*, QEvent*) (receiver=<optimized out>, event=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1533
#8  0x00007f2d01945600 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x771650) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1895
#9  0x00007f2d019458d8 in QCoreApplication::sendPostedEvents(QObject*, int) (receiver=<optimized out>, event_type=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qcoreapplication.cpp:1754
#10 0x00007f2d01bd7b03 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x777ad0) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:243
#11 0x00007f2cffb3ec7f in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#12 0x00007f2cffb95118 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#13 0x00007f2cffb3bf00 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#14 0x00007f2d01bd753c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x72b970, flags=...) at /home/nico/workspace/qt6/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:393
#15 0x00007f2d0194d9f3 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd5b0eede0, flags=..., flags@entry=...) at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:34
#16 0x00007f2d0194a1e4 in QCoreApplication::exec() () at /home/nico/workspace/qt6/qtbase/src/corelib/global/qflags.h:74
#17 0x00007f2d029aee4c in QGuiApplication::exec() () at /home/nico/workspace/qt6/qtbase/src/gui/kernel/qguiapplication.cpp:1888
#18 0x00007f2d03f929e5 in QApplication::exec() () at /home/nico/workspace/qt6/qtbase/src/widgets/kernel/qapplication.cpp:2564
#19 0x000000000042a4b5 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /home/nico/kde6/src/spectacle/src/Main.cpp:107
[Inferior 1 (process 12604) detached]

Reported using DrKonqi
Comment 1 Nicolas Fella 2023-03-30 12:01:46 UTC
Better backtrace:

#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=11, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007febc3cafec3 in __pthread_kill_internal (signo=11, threadid=<optimized out>) at pthread_kill.c:78
#2  0x00007febc3c5fa76 in __GI_raise (sig=11) at ../sysdeps/posix/raise.c:26
#3  0x00007febc4ff08ac in KCrash::defaultCrashHandler(int) (sig=11) at /home/nico/kde6/src/kcrash/src/kcrash.cpp:616
#4  0x00007febc3c5fb20 in <signal handler called> () at /lib64/libc.so.6
#5  0x00007febc3cbe30e in __GI___libc_free (mem=0x5) at malloc.c:3362
#6  0x00007febc2671a29 in av_free (ptr=<optimized out>) at libavutil/mem.c:251
#7  0x00007febc2671ac6 in av_freep (arg=<optimized out>) at libavutil/mem.c:261
#8  0x00007febc2991085 in av_packet_free_side_data (pkt=pkt@entry=0x7feb267fb100) at libavcodec/avpacket.c:191
#9  0x00007febc299179d in av_packet_unref (pkt=0x7feb267fb100) at libavcodec/avpacket.c:424
#10 0x00007febc2a532aa in avcodec_receive_packet (avctx=0x7feb280428c0, avpkt=0x7feb267fb100) at libavcodec/encode.c:395
#11 0x00007febc7979b01 in PipeWireReceiveEncodedThread::run() (this=0x7feb28043580) at /home/nico/kde6/src/kpipewire/src/pipewireproduce.cpp:283
#12 0x00007febc44d1e20 in operator() (__closure=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:324
#13 (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::<lambda()> > (t=<optimized out>) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:260
#14 QThreadPrivate::start(void*) (arg=0x7feb28043580) at /home/nico/workspace/qt6/qtbase/src/corelib/thread/qthread_unix.cpp:283
#15 0x00007febc3cae12d in start_thread (arg=<optimized out>) at pthread_create.c:442
#16 0x00007febc3d2fbc0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
Comment 2 David G. 2023-04-24 10:44:19 UTC
Hello. Are you using Lightly application style? I had the same issue. When I switched back to Breeze, it saved fine. But only the first 10 seconds or so. I couldn't get a video recording to save properly.
Comment 3 Dan Dascalescu 2023-08-17 10:29:08 UTC
Created attachment 161019 [details]
New crash information added by DrKonqi

spectacle (23.04.3) using Qt 5.15.10

Clicking "Finish recording" crashes spectacle. The recorded .webm is saved alright, but without sound.

-- Backtrace (Reduced):
#4  0x00007f6e06527b34 in QQuickView::rootObject() const () from /lib64/libQt5Quick.so.5
#5  0x000055e512697646 in ViewerWindow::showInlineMessage(QString const&, QMap<QString, QVariant> const&) ()
#7  0x00007f6e050e8461 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x000055e5126b3b83 in QtPrivate::QFunctorSlotObject<VideoPlatformWayland::startRecording(QString const&, VideoPlatform::RecordingMode, std::variant<QScreen*, QRect, QString> const&, bool)::{lambda()#2}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) ()
#9  0x00007f6e050e8461 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
Comment 4 Arjen Hiemstra 2023-09-18 09:54:20 UTC
Can you still reproduce this with the most recent KPipeWire/Spectacle? The encoding code has changed quite a bit at this point.
Comment 5 Nate Graham 2023-09-29 04:32:36 UTC
.
Comment 6 Bug Janitor Service 2023-10-14 03:46:05 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2023-10-29 03:45:39 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!