Bug 506532 - Spectacle crashes when initiating a "Recording" of a "Rectangular Region".
Summary: Spectacle crashes when initiating a "Recording" of a "Rectangular Region".
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: 6.4.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords: drkonqi
: 506560 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-07-03 13:53 UTC by Roke Julian Lockhart Beedell
Modified: 2025-12-06 19:45 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report: https://crash-reports.kde.org/organizations/kde/issues/208573/events/37398a636e4a4663ac89ae914680b3d6/


Attachments
New crash information added by DrKonqi (73.93 KB, text/plain)
2025-07-03 13:53 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2025-07-03 13:53:20 UTC
Application: spectacle (6.4.1)

ApplicationNotResponding [ANR]: false
Qt Version: 6.9.1
Frameworks Version: 6.15.0
Operating System: Linux 6.15.4-200.fc42.x86_64 x86_64
Windowing System: Wayland
Distribution: "Fedora Linux 42 (KDE Plasma Desktop Edition)"
DrKonqi: 6.4.1 [CoredumpBackend]

-- Information about the crash:
Per https://bugzilla.redhat.com/show_bug.cgi?id=2375436#c14, when I attempt to capture a screencast with Spectacle's "Rectangular Region" mode, it crashes.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  QtWayland::wl_seat::object (this=0x10e07) at /usr/include/qt6/QtWaylandClient/6.9.1/QtWaylandClient/private/qwayland-wayland.h:789
#6  QtWaylandClient::QWaylandInputDevice::wl_seat (this=0x10df7) at /usr/include/qt6/QtWaylandClient/6.9.1/QtWaylandClient/private/qwaylandinputdevice_p.h:96
#7  QWaylandXdgActivationV1::requestXdgActivationToken (this=this@entry=0x55d7c9d221d0, display=0x55d7c91dd130, surface=<optimized out>, serial=std::optional = {...}, app_id=...) at /usr/src/debug/layer-shell-qt-6.4.1-1.fc42.x86_64/src/qwaylandxdgactivationv1.cpp:38
#8  0x00007fa2baebb990 in LayerShellQt::QWaylandLayerSurface::requestActivate (this=0x55d7c94eb8b0) at /usr/include/qt6/QtWaylandClient/6.9.1/QtWaylandClient/private/qwaylandwindow_p.h:141
#9  0x000055d79efdc8bf in SpectacleWindow::setVisibilityForAll (visibility=QWindow::FullScreen) at /usr/src/debug/spectacle-6.4.1-1.fc42.x86_64/src/Gui/SpectacleWindow.cpp:109
#10 0x000055d79f011ae5 in operator() (__closure=0x55d7c96bed10, rect=..., actions=...) at /usr/src/debug/spectacle-6.4.1-1.fc42.x86_64/src/SpectacleCore.cpp:153
#11 operator() (__closure=<optimized out>) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:116
#15 QtPrivate::QCallableObject<SpectacleCore::SpectacleCore(QObject*)::<lambda(const QRectF&, const ExportManager::Actions&)>, QtPrivate::List<const QRectF&, const QFlags<ExportManager::Action>&>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=<optimized out>, this_=0x55d7c96bed00, r=<optimized out>, a=<optimized out>, ret=<optimized out>) at /usr/include/qt6/QtCore/qobjectdefs_impl.h:547
#16 0x00007fa2b735662c in QObject::event (this=<optimized out>, e=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:1431
#17 0x00007fa2b963d97f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x7fa290005770, e=0x7fa2880024c0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3303
#18 0x00007fa2b72f9f38 in QCoreApplication::notifyInternal2 (receiver=0x7fa290005770, event=0x7fa2880024c0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1106
#19 0x00007fa2b72fa19d in QCoreApplication::sendEvent (receiver=<optimized out>, event=<optimized out>) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1546
#20 0x00007fa2b72fdd26 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55d7c91c5540) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1879
#21 0x00007fa2b761016f in postEventSourceDispatch (s=0x55d7c91cf770) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#22 0x00007fa2b38eb880 in g_main_dispatch (context=0x7fa290000f00) at ../glib/gmain.c:3398
#23 g_main_context_dispatch_unlocked (context=0x7fa290000f00) at ../glib/gmain.c:4249


Reported using DrKonqi
Comment 1 Roke Julian Lockhart Beedell 2025-07-03 13:53:21 UTC
Created attachment 182897 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Roke Julian Lockhart Beedell 2025-07-03 22:10:49 UTC
*** Bug 506560 has been marked as a duplicate of this bug. ***
Comment 3 Benjamin Dedieu 2025-07-04 09:16:15 UTC
I encounter the same bug, with exactly the same configuration: 
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.1
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.15.4-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland

The spectacle rectangular region is broken for recording, which is quite annoying if like me you rely on this tool to record the screen to report other bugs.
Comment 4 alkaris 2025-07-28 16:30:07 UTC
I encounter this error if an application has fullscreen rendering like a game or video capture software like OBS, it'll crash when I use my hotkeys to trigger the configured keybind for screenshot with rectangle, only after exiting the game or video capture software does it then let me use the screenshot tool again. The framebuffer becomes blocked to Spectacle for whatever reason when this happens. If I try to manually open Spectacle from my app menu and then click Rectangle Screenshot, it'll still crash.
Comment 5 Roke Julian Lockhart Beedell 2025-07-28 16:34:12 UTC
(In reply to alkaris from comment #4)

Does Konqi (or GNOME Abrt) appear? If so, maybe check whether the trace is the same. You can always upload a report and mark it as a duplicate of this.