Bug 508890

Summary: Spectacle does not work under Wayland
Product: [Applications] Spectacle Reporter: alerikaisattera
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, kde, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description alerikaisattera 2025-08-29 10:10:32 UTC
SUMMARY
Attempting to take a screenshot under Wayland fails with notification "Launching Spectacle (Failed) Message recipient disconnected from message bus without replying"

STEPS TO REPRODUCE
1. Press PrintScreen

OBSERVED RESULT
A notification "Launching Spectacle (Failed) Message recipient disconnected from message bus without replying"

EXPECTED RESULT
Spectacle opens

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
Attempting to use Spectacle via other means (KRunner, menu) also fails with the same error
Comment 1 David Edmundson 2025-08-29 10:17:09 UTC
that means it's crashing/exiting after launch.

please run spectacle from a command line and see if you can get a backtrace
Comment 2 alerikaisattera 2025-08-29 10:39:38 UTC
The following appears in the terminal:

```
kf.config.core: "\"selectionRect\" - conversion of \"0,0,0,0\" to QRectF failed"
kf.config.core: "\"selectionRect\" - conversion of \"0,0,0,0\" to QRectF failed"
Segmentation fault         (core dumped) spectacle
```

System log messages:

```
Aug 29 16:34:55 aleri-pc kernel: Thread (pooled)[5892]: segfault at d8 ip 00007f15ff8e6634 sp 00007f15e0a0da18 error 4 in libX11.so.6.4.0[27634,7f15ff8d6000+94000] likely on CPU 8 (core 0, socket>
Aug 29 16:34:55 aleri-pc kernel: Code: 84 00 00 00 00 00 f3 0f 1e fa 8b 47 1c c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 8b 47 74 c3 0f 1f 84 00 00 00 00 00 f3 0f 1e fa <48> 8b 87 d8 00 00 00 c3 0f 1>
Aug 29 16:34:55 aleri-pc systemd-coredump[5893]: Process 5887 (spectacle) of user 1000 terminated abnormally with signal 11/SEGV, processing...
Aug 29 16:34:55 aleri-pc systemd[1]: Started Process Core Dump (PID 5893/UID 0).
Aug 29 16:34:55 aleri-pc systemd-coredump[5894]: [🡕] Process 5887 (spectacle) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 5892:
                                                 #0  0x00007f15ff8e6634 XDisplayString (libX11.so.6 + 0x27634)
                                                 #1  0x00007f15e113fd00 __vaDriverInit_1_21 (nvidia_drv_video.so + 0xdd00)
                                                 #2  0x00007f15fdb8d064 vaInitialize (libva.so.2 + 0x8064)
                                                 #3  0x00007f16039f4067 _ZN10VaapiUtils10openDeviceEPiRK10QByteArray (libKPipeWire.so.6 + 0x1d067)
                                                 #4  0x00007f16039f460f _ZNK10VaapiUtils12supportsH264ERK10QByteArray (libKPipeWire.so.6 + 0x1d60f)
                                                 #5  0x00007f16039f47b5 _ZN10VaapiUtilsC1ENS_7PrivateE (libKPipeWire.so.6 + 0x1d7b5)
                                                 #6  0x00007f16039f498d _ZN10VaapiUtils8instanceEv (libKPipeWire.so.6 + 0x1d98d)
                                                 #7  0x00007f16087d0fa6 _ZNK25PipeWireBaseEncodedStream17suggestedEncodersEv (libKPipeWireRecord.so.6 + 0xdfa6)
                                                 #8  0x00007f16087d150a _ZN25PipeWireBaseEncodedStreamC1EP7QObject (libKPipeWireRecord.so.6 + 0xe50a)
                                                 #9  0x00007f16087d57f6 _ZN14PipeWireRecordC2EP7QObject (libKPipeWireRecord.so.6 + 0x127f6)
                                                 #10 0x0000557b06b3bdb1 n/a (/usr/bin/spectacle + 0xebdb1)
                                                 #11 0x0000557b06b4563c n/a (/usr/bin/spectacle + 0xf563c)
                                                 #12 0x00007f1602f27b65 n/a (libQt6Core.so.6 + 0x327b65)
                                                 #13 0x00007f1602f1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                 #14 0x00007f16024969cb n/a (libc.so.6 + 0x969cb)
                                                 #15 0x00007f160251aa4c n/a (libc.so.6 + 0x11aa4c)
                                                 
                                                 Stack trace of thread 5887:
                                                 #0  0x00007f1602571c60 n/a (libc.so.6 + 0x171c60)
                                                 #1  0x00007f16021c39a4 n/a (libxkbcommon.so.0 + 0x209a4)
                                                 #2  0x00007f16021bd981 n/a (libxkbcommon.so.0 + 0x1a981)
                                                 #3  0x00007f16021cb070 n/a (libxkbcommon.so.0 + 0x28070)
                                                 #4  0x00007f16021c5de5 xkb_keymap_new_from_buffer (libxkbcommon.so.0 + 0x22de5)
                                                 #5  0x00007f160652f6d5 _ZN15QtWaylandClient19QWaylandInputDevice8Keyboard15keyboard_keymapEjij (libQt6WaylandClient.so.6 + 0x866d5)
                                                 #6  0x00007f16039d2ac6 n/a (libffi.so.8 + 0x7ac6)
                                                 #7  0x00007f16039cf76b n/a (libffi.so.8 + 0x476b)
                                                 #8  0x00007f16039d206e ffi_call (libffi.so.8 + 0x706e)
                                                 #9  0x00007f16087b748d n/a (libwayland-client.so.0 + 0x448d)
                                                 #10 0x00007f16087b82e9 n/a (libwayland-client.so.0 + 0x52e9)
                                                 #11 0x00007f16087b86f3 wl_display_dispatch_queue_pending (libwayland-client.so.0 + 0x56f3)
                                                 #12 0x00007f16087bbfac wl_display_dispatch_queue_timeout (libwayland-client.so.0 + 0x8fac)
                                                 #13 0x00007f16087bc010 wl_display_dispatch_queue (libwayland-client.so.0 + 0x9010)
                                                 #14 0x00007f16087bc0fc wl_display_roundtrip_queue (libwayland-client.so.0 + 0x90fc)
                                                 #15 0x00007f16065d1056 _ZN16KSystemClipboard8instanceEv (libKF6GuiAddons.so.6 + 0x28056)
                                                 #16 0x0000557b06aca5ae n/a (/usr/bin/spectacle + 0x7a5ae)
                                                 #17 0x0000557b06addfdf n/a (/usr/bin/spectacle + 0x8dfdf)
                                                 #18 0x0000557b06adf3d5 n/a (/usr/bin/spectacle + 0x8f3d5)
                                                 #19 0x0000557b06a9c21f n/a (/usr/bin/spectacle + 0x4c21f)
                                                 #20 0x00007f1602427675 n/a (libc.so.6 + 0x27675)
                                                 #21 0x00007f1602427729 __libc_start_main (libc.so.6 + 0x27729)
                                                 #22 0x0000557b06a9fe65 n/a (/usr/bin/spectacle + 0x4fe65)
                                                 
                                                 Stack trace of thread 5889:
                                                 #0  0x00007f160249f042 n/a (libc.so.6 + 0x9f042)
                                                 #1  0x00007f16024931ac n/a (libc.so.6 + 0x931ac)
                                                 #2  0x00007f160249381c n/a (libc.so.6 + 0x9381c)
                                                 #3  0x00007f1602495ede pthread_cond_wait (libc.so.6 + 0x95ede)
                                                 #4  0x00007f1602f2ddb0 _ZN14QWaitCondition4waitEP6QMutex14QDeadlineTimer (libQt6Core.so.6 + 0x32ddb0)
                                                 #5  0x00007f160650e439 n/a (libQt6WaylandClient.so.6 + 0x65439)
                                                 #6  0x00007f1602f1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                 #7  0x00007f16024969cb n/a (libc.so.6 + 0x969cb)
                                                 #8  0x00007f160251aa4c n/a (libc.so.6 + 0x11aa4c)
                                                 
                                                 Stack trace of thread 5890:
                                                 #0  0x00007f160249f042 n/a (libc.so.6 + 0x9f042)
                                                 #1  0x00007f16024931ac n/a (libc.so.6 + 0x931ac)
                                                 #2  0x00007f16024931f4 n/a (libc.so.6 + 0x931f4)
                                                 #3  0x00007f160250d52e __poll (libc.so.6 + 0x10d52e)
                                                 #4  0x00007f160650e4a3 n/a (libQt6WaylandClient.so.6 + 0x654a3)
                                                 #5  0x00007f1602f1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                 #6  0x00007f16024969cb n/a (libc.so.6 + 0x969cb)
                                                 #7  0x00007f160251aa4c n/a (libc.so.6 + 0x11aa4c)
                                                 
                                                 Stack trace of thread 5888:
                                                 #0  0x00007f160249f042 n/a (libc.so.6 + 0x9f042)
                                                 #1  0x00007f16024931ac n/a (libc.so.6 + 0x931ac)
                                                 #2  0x00007f16024931f4 n/a (libc.so.6 + 0x931f4)
                                                 #3  0x00007f160250da76 ppoll (libc.so.6 + 0x10da76)
                                                 #4  0x00007f15fef09e04 n/a (libglib-2.0.so.0 + 0x5fe04)
                                                 #5  0x00007f15fef09ee5 g_main_context_iteration (libglib-2.0.so.0 + 0x5fee5)
                                                 #6  0x00007f160303c5e2 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt6Core.so.6 + 0x43c5e2)
                                                 #7  0x00007f1602d744b6 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt6Core.so.6 + 0x1744b6)
                                                 #8  0x00007f1602e873c6 _ZN7QThread4execEv (libQt6Core.so.6 + 0x2873c6)
                                                 #9  0x00007f160497adae n/a (libQt6DBus.so.6 + 0x37dae)
                                                 #10 0x00007f1602f1ee69 n/a (libQt6Core.so.6 + 0x31ee69)
                                                 #11 0x00007f16024969cb n/a (libc.so.6 + 0x969cb)
                                                 #12 0x00007f160251aa4c n/a (libc.so.6 + 0x11aa4c)
                                                 ELF object binary architecture: AMD x86-64
```
Comment 3 Nicolas Fella 2025-08-29 10:46:32 UTC

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