Bug 473166

Summary: Crashed when trying to capture a screenshot again
Product: [Applications] Spectacle Reporter: Dan Dascalescu <ddascalescu+kde>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde, nate, nicolas.fella
Priority: NOR Keywords: drkonqi
Version: 23.04.3   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dan Dascalescu 2023-08-08 18:05:50 UTC
Application: spectacle (23.04.3)

Qt Version: 5.15.10
Frameworks Version: 5.108.0
Operating System: Linux 6.4.7-200.fc38.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 38 (KDE Plasma)
DrKonqi: 5.27.6 [KCrashBackend]

-- Information about the crash:
Captured a screenshot, added some annotations, copied to clipboard. Pressed Print Screen again -> crash

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  0x000055b1b08b462d in SelectedActionWrapper::setEditAction(EditAction*) ()
#5  0x000055b1b08bc3ee in AnnotationDocument::clearAnnotations() ()
#6  0x000055b1b08ab29e in QtPrivate::QFunctorSlotObject<SpectacleCore::SpectacleCore(QObject*)::{lambda(QVector<CanvasImage> const&)#1}, 1, QtPrivate::List<QVector<CanvasImage> const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) [clone .lto_priv.0] ()
#7  0x00007f8a0d6e8461 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#8  0x000055b1b08cfefc in QtPrivate::QFunctorSlotObject<PlatformKWinWayland2::trackSource(ScreenShotSourceMeta2*)::{lambda(QVector<QImage> const&)#1}, 1, QtPrivate::List<QVector<QImage> const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) [clone .lto_priv.0] ()
#9  0x00007f8a0d6e8461 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#10 0x000055b1b08c43a0 in ScreenShotSourceMeta2::handleSourceFinished() ()
#11 0x00007f8a0d6e8461 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#12 0x000055b1b08cc226 in QtPrivate::QFunctorSlotObject<ScreenShotSource2::handleMetaDataReceived(QMap<QString, QVariant> const&)::{lambda()#8}, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) [clone .lto_priv.0] ()
#13 0x00007f8a0d6e8461 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#14 0x00007f8a0d4ffa25 in QFutureWatcherBase::event(QEvent*) () from /lib64/libQt5Core.so.5
#15 0x00007f8a0efaeb75 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f8a0d6b4188 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#17 0x00007f8a0d6b7635 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#18 0x00007f8a0d706c3f in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#19 0x00007f8a0b11348c in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#20 0x00007f8a0b171648 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#21 0x00007f8a0b110b13 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#22 0x00007f8a0d706729 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#23 0x00007f8a0d6b2b4b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#24 0x00007f8a0d6baddb in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#25 0x000055b1b087c952 in main ()
[Inferior 1 (process 171323) detached]

The reporter indicates this bug may be a duplicate of or related to bug 470217, bug 472401.

Reported using DrKonqi
Comment 1 Nate Graham 2023-08-09 19:27:45 UTC
The 23.04 version is unfortunately unmaintained because Spectacle was completely rewritten for version 23.08. So it's very likely this issue is already fixed, or even not possible to happen in the way it happened previously.
Comment 2 Nate Graham 2023-08-09 20:08:09 UTC
My bad, it was rewritten for 23.04, not 23.08.
Comment 3 Nicolas Fella 2023-12-22 23:12:30 UTC

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