Spectacle segfaulting on wayland plasma 6

Doesn’t happen on x11, and didn’t happen on wayland neither as late as jan 15. Noticed shortly after updating to plasma 6 but not sure if they’re directly related (many things updated since january). Tried both the latest version (24.02) and an older version from aur (23.08.3). It immediately segfaults upon running even if I use the options to launch it in the background and delay screenshot by 10 seconds. Help, author, license works.

Any ideas how to troubleshoot?

There’s a page on the KDE wiki about how to create useful crash reports. If you get a segfault, chances are there will be good information in a quality backtrace.

I am guessing you have Arch or derivative, I will assume so. Better to always give this information.

Prerequisite
sudo pacman -Sy gdb

For arch/Endeavour and reading your precedent output it should be as simple as running DEBUGINFOD_URLS="https://debuginfod.archlinux.org/" coredumpctl -1 gdb spectacle, this will take a little while and download a bunch of data.
Type c (or hit Enter) when it stops, so that it continues until the last line is (gdb) .
Then type in bt, hit Enter and report the output between the line (gdb) bt and the last one. You can then quit.

#0  XDisplayString (dpy=0x0) at /usr/src/debug/libx11/libX11-1.8.7/src/Macros.c:119
#1  0x0000727f8bf1ca1d in __vaDriverInit_1_13 () at /usr/lib/dri/nvidia_drv_video.so
#2  0x0000727fa819e09d in va_openDriver (driver_name=<optimized out>, dpy=0x645a533a81a0) at ../libva/va/va.c:478
#3  va_new_opendriver (dpy=0x645a533a81a0) at ../libva/va/va.c:714
#4  vaInitialize (minor_version=0x7fff2a8622b4, major_version=0x7fff2a8622b0, dpy=0x645a533a81a0) at ../libva/va/va.c:743
#5  vaInitialize (dpy=0x645a533a81a0, major_version=0x7fff2a8622b0, minor_version=0x7fff2a8622b4) at ../libva/va/va.c:727
#6  0x0000727faa437dfa in VaapiUtils::openDevice(int*, QByteArray const&) [clone .constprop.0] (fd=<optimized out>, path=...) at /usr/src/debug/kpipewire/kpipewire-6.0.2/src/vaapiutils.cpp:165
#7  0x0000727faa434945 in VaapiUtils::supportsH264 (path=..., this=0x7fff2a8624a0) at /usr/src/debug/kpipewire/kpipewire-6.0.2/src/vaapiutils.cpp:86
#8  VaapiUtils::VaapiUtils (this=0x7fff2a8624a0, this=<optimized out>) at /usr/src/debug/kpipewire/kpipewire-6.0.2/src/vaapiutils.cpp:37
#9  0x0000727faa434ce2 in PipeWireBaseEncodedStream::suggestedEncoders (this=this@entry=0x645a533ff060) at /usr/src/debug/kpipewire/kpipewire-6.0.2/src/pipewirebaseencodedstream.cpp:180
#10 0x0000727faa43530e in PipeWireBaseEncodedStream::PipeWireBaseEncodedStream (this=0x645a533ff060, parent=<optimized out>, this=<optimized out>, parent=<optimized out>) at /usr/src/debug/kpipewire/kpipewire-6.0.2/src/pipewirebaseencodedstream.cpp:50
#11 0x0000727faa4354ce in PipeWireRecord::PipeWireRecord (this=this@entry=0x645a533ff060, parent=parent@entry=0x0, this=<optimized out>, parent=<optimized out>) at /usr/src/debug/kpipewire/kpipewire-6.0.2/src/pipewirerecord.cpp:59
#12 0x0000645a516b24f8 in VideoPlatformWayland::VideoPlatformWayland(QObject*) [clone .constprop.0] (this=this@entry=0x645a534032a0, parent=0x0) at /usr/src/debug/spectacle/spectacle-24.02.0/src/Platforms/VideoPlatformWayland.cpp:78
#13 0x0000645a516b2a67 in std::make_unique<VideoPlatformWayland> () at /usr/include/c++/13.2.1/bits/unique_ptr.h:1070
#14 loadVideoPlatform () at /usr/src/debug/spectacle/spectacle-24.02.0/src/Platforms/PlatformLoader.cpp:93
#15 SpectacleCore::SpectacleCore(QObject*) [clone .constprop.0] (this=0x7fff2a8628b0, parent=0x0) at /usr/src/debug/spectacle/spectacle-24.02.0/src/SpectacleCore.cpp:120
#16 0x0000645a516201e6 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/spectacle/spectacle-24.02.0/src/Main.cpp:103

1.5 min pause between #8 and #9

1 Like

See 481977 – Spectacle crashes in NVIDIA driver code on startup after upgrade to plasma 6

2 Likes