Bug 484733

Summary: Spectable crashes when we record several times a video
Product: [Applications] Spectacle Reporter: fabrice salvaire <fabrice.salvaire>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: hey, kde
Priority: NOR Keywords: drkonqi
Version: 23.08.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description fabrice salvaire 2024-03-30 00:28:31 UTC
Application: spectacle (23.08.5)

Qt Version: 5.15.12
Frameworks Version: 5.115.0
Operating System: Linux 6.7.10-200.fc39.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora release 39 (Thirty Nine)"
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
I opened Spectacle and recorded several times a video.
Spectable freeze when I stop the recording.
The timer still contine to run.
Spectable uses a lot of GB of RAM, so it seems to have a memory leak.
Either the recording is shortcutted, either Spectacle Crashes, either the whole desktop is closed.

The crash can be reproduced every time.

-- Backtrace:
Application: Spectacle (spectacle), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fd3eab27654 in QQuickView::rootObject() const () at /lib64/libQt5Quick.so.5
#5  0x0000558d3fff6a06 in ViewerWindow::showInlineMessage(QString const&, QMap<QString, QVariant> const&) ()
#6  0x0000558d3ffe65ee in QtPrivate::QFunctorSlotObject<SpectacleCore::SpectacleCore(QObject*)::{lambda(QString const&)#1}, 1, QtPrivate::List<QString const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) [clone .lto_priv.0] ()
#7  0x00007fd3e96e9151 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#8  0x0000558d40015373 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  0x00007fd3e96e9151 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
#10 0x00007fd3e96df9fb in QObject::event(QEvent*) () at /lib64/libQt5Core.so.5
#11 0x00007fd3eafaeb95 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#12 0x00007fd3e96b4e78 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#13 0x00007fd3e96b8325 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /lib64/libQt5Core.so.5
#14 0x00007fd3e97078cf in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#15 0x00007fd3e6511e5c in g_main_context_dispatch_unlocked.lto_priv () at /lib64/libglib-2.0.so.0
#16 0x00007fd3e656cf18 in g_main_context_iterate_unlocked.isra () at /lib64/libglib-2.0.so.0
#17 0x00007fd3e650fad3 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#18 0x00007fd3e97073b9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#19 0x00007fd3e96b383b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#20 0x00007fd3e96bbacb in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#21 0x0000558d3ffc3933 in main ()
[Inferior 1 (process 99887) detached]

Reported using DrKonqi
Comment 1 hey 2024-05-22 05:23:59 UTC
Created attachment 169693 [details]
New crash information added by DrKonqi

spectacle (23.08.5) using Qt 5.15.12

Tried to start a entire-workspace recording. Appeared to be working fine until I attempted to stop recording at which point it segfaulted. This is Fedora Kinoite.

-- Backtrace (Reduced):
#4  0x00007f9899d27654 in QQuickView::rootObject() const () from /lib64/libQt5Quick.so.5
#5  0x0000557d6077ca06 in ViewerWindow::showInlineMessage(QString const&, QMap<QString, QVariant> const&) ()
#7  0x00007f98988e9151 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x0000557d6079b373 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  0x00007f98988e9151 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
Comment 2 Noah Davis 2024-05-24 16:03:38 UTC
Seems like a duplicate of bug 469336.

*** This bug has been marked as a duplicate of bug 469336 ***