Summary: | Spectacle crashes in zkde_screencast_unstable_v1_stream_region when I try to record the screen | ||
---|---|---|---|
Product: | [Applications] Spectacle | Reporter: | Patrick Silva <bugseforuns> |
Component: | General | Assignee: | Boudhayan Gupta <me> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | aleixpol, kde, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/spectacle/commit/7982c9e74f0ff26fc973e6cbc42b2379b8da8a4b | Version Fixed In: | |
Sentry Crash Report: |
Description
Patrick Silva
2023-02-06 14:01:17 UTC
Could it be an installation issue? Can you check if you get any error messages when running Spectacle on the terminal? It does seem to be calling a null pointer but I don't see why we'd get one if it's all properly set up. #6 wl_proxy_get_version (proxy=0x0) at ../src/wayland-client.c:2212 #7 0x000055b55d0d8213 in zkde_screencast_unstable_v1_stream_region (pointer=4, scale=256, height=768, width=1366, y=0, x=0, zkde_screencast_unstable_v1=0x0) at ./obj-x86_64-linux-gnu/src/wayland-zkde-screencast-unstable-v1-client-protocol.h:189 #8 QtWayland::zkde_screencast_unstable_v1::stream_region(int, int, unsigned int, unsigned int, int, unsigned int) (this=<optimized out>, this=<optimized out>, pointer=4, scale=256, height=768, width=1366, y=0, x=0) at ./obj-x86_64-linux-gnu/src/qwayland-zkde-screencast-unstable-v1.cpp:104 #9 Screencasting::createRegionStream(QRect const&, double, Screencasting::CursorMode) (scaling=1, mode=Screencasting::Metadata, geometry=<optimized out>, this=<optimized out>) at ./src/Platforms/screencasting.cpp:120 Output in Konsole: $ spectacle Remember requesting the interface on your desktop file: X-KDE-Wayland-Interfaces=zkde_screencast_unstable_v1 Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/templates/InlineMessage.qml:257:13: QML SelectableLabel: Binding loop detected for property "implicitWidth" 23 -- exe=/usr/bin/spectacle 17 -- platform=wayland 18 -- appname=spectacle 17 -- apppath=/usr/bin 10 -- signal=11 9 -- pid=8141 20 -- appversion=23.03.70 22 -- programname=Spectacle 31 -- bugaddress=submit@bugs.kde.org KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = spectacle path = /usr/bin pid = 8141 KCrash: Arguments: /usr/bin/spectacle Segmentation fault (core dumped) A possibly relevant merge request was started @ https://invent.kde.org/graphics/spectacle/-/merge_requests/202 My MR above will address the crash, but is it possible that your desktop file is broken? It should have the X-KDE-Wayland-Interfaces in question. Can you investigate a bit what could be going on? You are right. I can't reproduce the crash with another user account. The .desktop file of the working account is located on /usr/share/applications, the .desktop file of the problematic account is located on /home/<my_username>/.local/share/applications, and here are its contents: [Desktop Action ActiveWindowScreenShot] Exec=/usr/lib/qt5/bin/qdbus org.kde.Spectacle / ActiveWindow -1 -1 Name=Capture Active Window X-KDE-Shortcuts=Meta+Print [Desktop Action CurrentMonitorScreenShot] Exec=/usr/lib/qt5/bin/qdbus org.kde.Spectacle / CurrentScreen -1 Name=Capture Current Monitor [Desktop Action FullScreenScreenShot] Exec=/usr/lib/qt5/bin/qdbus org.kde.Spectacle / FullScreen -1 Name=Capture Entire Desktop X-KDE-Shortcuts=Shift+Print [Desktop Action OpenWithoutScreenshot] Exec=/usr/lib/qt5/bin/qdbus org.kde.Spectacle / OpenWithoutScreenshot Name=Launch without taking a screenshot [Desktop Action RectangularRegionScreenShot] Exec=/usr/lib/qt5/bin/qdbus org.kde.Spectacle / RectangularRegion -1 Name=Capture Rectangular Region X-KDE-Shortcuts=Meta+Shift+Print [Desktop Action WindowUnderCursorScreenShot] Exec=/usr/lib/qt5/bin/qdbus org.kde.Spectacle / WindowUnderCursor -1 Name=Capture Window Under Cursor X-KDE-Shortcuts=Meta+Ctrl+Print [Desktop Entry] Actions=FullScreenScreenShot;CurrentMonitorScreenShot;ActiveWindowScreenShot;RectangularRegionScreenShot;WindowUnderCursorScreenShot;OpenWithoutScreenshot; Categories=Qt;KDE;Utility; Comment=Screenshot capture utility Exec=/usr/bin/spectacle GenericName=Screenshot Capture Utility Icon=spectacle Keywords=snapshot;capture;print;screenshot;snipping;snipping tool;snip; Name=Spectacle NoDisplay=false Path= StartupNotify=false Terminal=false TerminalOptions= Type=Application X-DBUS-ServiceName=org.kde.Spectacle X-DBUS-StartupType=Unique X-KDE-DBUS-Restricted-Interfaces=org.kde.kwin.Screenshot,org.kde.KWin.ScreenShot2 X-KDE-Shortcuts=Print X-KDE-SubstituteUID=false X-KDE-Username= The broken .desktop file is not removed after uninstalling Spectacle. The .desktop file was not properly updated after a update, maybe? The problematic user account has a shortcut to Spectacle on desktop, could this be related? Git commit 7982c9e74f0ff26fc973e6cbc42b2379b8da8a4b by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 16/02/2023 at 23:08. Pushed by ndavis into branch 'master'. recording: don't crash when our screencasting protocol is unsupported M +4 -1 src/Platforms/VideoPlatformWayland.cpp M +8 -2 src/Platforms/screencasting.cpp M +1 -0 src/Platforms/screencasting.h https://invent.kde.org/graphics/spectacle/commit/7982c9e74f0ff26fc973e6cbc42b2379b8da8a4b |