Bug 474719

Summary: Spectacle crashes when I take screenshot again
Product: [Applications] Spectacle Reporter: Andy Antares <geekxx10>
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 Andy Antares 2023-09-20 05:50:58 UTC
Application: spectacle (23.04.3)

Qt Version: 5.15.10
Frameworks Version: 5.109.0
Operating System: Linux 6.5.3-200.fsync.fc38.x86_64 x86_64
Windowing System: Wayland
Distribution: Nobara Linux 38 (KDE Plasma)
DrKonqi: 5.27.7 [KCrashBackend]

-- Information about the crash:
What did I do: 
Took screenshot *using annotation with text*.  I noticed the text has glitched like in windows XP meme. Every time I tried to take a screenshot after text annotation Spectacle crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: Spectacle (spectacle), signal: Aborted

[KCrash Handler]
#4  0x00007fe24d8ac7e4 in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007fe24d85babe in raise () from /lib64/libc.so.6
#6  0x00007fe24d84487f in abort () from /lib64/libc.so.6
#7  0x00007fe24daa4d19 in __gnu_cxx::__verbose_terminate_handler() [clone .cold] () from /lib64/libstdc++.so.6
#8  0x00007fe24dab4f8c in __cxxabiv1::__terminate(void (*)()) () from /lib64/libstdc++.so.6
#9  0x00007fe24dab4ff7 in std::terminate() () from /lib64/libstdc++.so.6
#10 0x00007fe24dab5d25 in __cxa_pure_virtual () from /lib64/libstdc++.so.6
#11 0x00005601212e4630 in SelectedActionWrapper::setEditAction(EditAction*) ()
#12 0x00005601212ec3ee in AnnotationDocument::clearAnnotations() ()
#13 0x00005601212db29e 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] ()
#14 0x00007fe24e0e8481 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#15 0x00005601212ffefc 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] ()
#16 0x00007fe24e0e8481 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#17 0x00005601212f43a0 in ScreenShotSourceMeta2::handleSourceFinished() ()
#18 0x00007fe24e0e8481 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#19 0x00005601212fc226 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] ()
#20 0x00007fe24e0e8481 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#21 0x00007fe24deffa45 in QFutureWatcherBase::event(QEvent*) () from /lib64/libQt5Core.so.5
#22 0x00007fe24f9aeb75 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#23 0x00007fe24e0b41a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#24 0x00007fe24e0b7655 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
#25 0x00007fe24e106c5f in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#26 0x00007fe24bd134fc in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#27 0x00007fe24bd716b8 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
#28 0x00007fe24bd10b83 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#29 0x00007fe24e106749 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#30 0x00007fe24e0b2b6b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#31 0x00007fe24e0badfb in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#32 0x00005601212ac952 in main ()
[Inferior 1 (process 274424) detached]

The reporter indicates this bug may be a duplicate of or related to bug 473166.

Reported using DrKonqi
Comment 1 Nate Graham 2023-09-20 19:16:35 UTC

*** This bug has been marked as a duplicate of bug 472401 ***
Comment 2 Nicolas Fella 2023-12-22 23:13:55 UTC

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