Bug 476935

Summary: Spectacle crashes when I try to record the screen
Product: [Applications] Spectacle Reporter: Patrick Silva <bugseforuns>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED FIXED    
Severity: crash CC: kde, meven29, nate
Priority: NOR Keywords: drkonqi, qt6
Version First Reported In: 24.01.75   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
Noah's backtrace: spectacle -R w

Description Patrick Silva 2023-11-13 12:52:57 UTC
Application: spectacle (24.01.75)

Qt Version: 6.6.0
Frameworks Version: 5.245.0
Operating System: Linux 6.5.7-060507-generic x86_64
Windowing System: Wayland
Distribution: KDE neon Unstable Edition
DrKonqi: 5.81.0 [CoredumpBackend]

-- Information about the crash:
open Spectacle, click on "Recording" tab, click on "Screen" button, click on the screen to start recording. Spectacle crashes.

The crash can be reproduced every time.

-- Backtrace (Reduced):
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=139654103872576) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=139654103872576) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=139654103872576, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x00007f03cfc42476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007f03cfc287f3 in __GI_abort () at ./stdlib/abort.c:79


Reported using DrKonqi
Comment 1 Patrick Silva 2023-11-13 12:52:59 UTC
Created attachment 163117 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Patrick Silva 2023-11-13 12:54:24 UTC
Can reproduce on Arch Linux running Plasma 6 alpha too.
Comment 3 Noah Davis 2023-11-13 15:33:36 UTC
Created attachment 163123 [details]
Noah's backtrace: spectacle -R w

Yes, I also get this problem sometimes, but not always. Sometimes all the modes work, sometimes only region and screen recording work, sometimes all of them exit with SIGABRT. My backtrace which was done using `gdb --args spectacle -R w` looks like yours.
Comment 4 Méven Car 2023-11-26 14:01:25 UTC
Tentative fix: https://invent.kde.org/plasma/kpipewire/-/merge_requests/100
Comment 5 Méven Car 2023-11-27 11:33:28 UTC
Fix for plasma 6 beta1