Bug 470212 - Unable to screencast on wayland
Summary: Unable to screencast on wayland
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.27.5
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-24 13:17 UTC by tusooa
Modified: 2023-05-25 21:50 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tusooa 2023-05-24 13:17:31 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Run wayrec https://invent.kde.org/bharadwaj-raju/wayrec
2. Click Select
3. 

OBSERVED RESULT
the createSession dbus call returned 2

EXPECTED RESULT
it should return 0

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.1.27 / 5.27.5
(available in About System)
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION

] QT_LOGGING_RULES='*=true' /usr/lib64/libexec/xdg-desktop-portal-kde -v
qt.qpa.wayland: using input method: fcitx::QFcitxPlatformInputContext
qt.qpa.wayland: Available client buffer integrations: ("wayland-egl", "xcomposite-egl", "xcomposite-glx")
qt.qpa.wayland: Using Wayland-EGL
qt.qpa.wayland: Initializing client buffer integration "wayland-egl"
xdp-kde: Desktop portal registered successfully
kf.wayland.client: Wayland Interface:  wl_compositor / 1 / 5
kf.wayland.client: Unknown interface announced:  zwp_tablet_manager_v2 / 3 / 1
kf.wayland.client: Unknown interface announced:  zwp_keyboard_shortcuts_inhibit_manager_v1 / 4 / 1
kf.wayland.client: Wayland Interface:  xdg_wm_base / 6 / 4
kf.wayland.client: Unknown interface announced:  zwlr_layer_shell_v1 / 7 / 3
kf.wayland.client: Wayland Interface:  zxdg_decoration_manager_v1 / 8 / 1
kf.wayland.client: Unknown interface announced:  wp_viewporter / 9 / 1
kf.wayland.client: Unknown interface announced:  wp_fractional_scale_manager_v1 / 10 / 1
kf.wayland.client: Wayland Interface:  wl_shm / 11 / 1
kf.wayland.client: Wayland Interface:  wl_seat / 12 / 8
kf.wayland.client: Wayland Interface:  zwp_pointer_gestures_v1 / 13 / 3
kf.wayland.client: Wayland Interface:  zwp_pointer_constraints_v1 / 14 / 1
kf.wayland.client: Wayland Interface:  zwp_relative_pointer_manager_v1 / 15 / 1
kf.wayland.client: Wayland Interface:  wl_data_device_manager / 16 / 3
kf.wayland.client: Unknown interface announced:  zwlr_data_control_manager_v1 / 17 / 2
kf.wayland.client: Unknown interface announced:  zwp_primary_selection_device_manager_v1 / 18 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_idle / 19 / 1
kf.wayland.client: Wayland Interface:  zwp_idle_inhibit_manager_v1 / 20 / 1
kf.wayland.client: Unknown interface announced:  ext_idle_notifier_v1 / 21 / 1
kf.wayland.client: Wayland Interface:  org_kde_plasma_shell / 22 / 8
kf.wayland.client: Wayland Interface:  org_kde_kwin_appmenu_manager / 23 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_server_decoration_palette_manager / 24 / 1
kf.wayland.client: Wayland Interface:  org_kde_plasma_window_management / 25 / 16
kf.wayland.client: Wayland Interface:  org_kde_plasma_virtual_desktop_management / 26 / 2
kf.wayland.client: Wayland Interface:  org_kde_kwin_shadow_manager / 28 / 2
kf.wayland.client: Wayland Interface:  org_kde_kwin_dpms_manager / 29 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_server_decoration_manager / 30 / 1
kf.wayland.client: Unknown interface announced:  kde_output_management_v2 / 31 / 3
kf.wayland.client: Wayland Interface:  zxdg_output_manager_v1 / 32 / 3
kf.wayland.client: Wayland Interface:  wl_subcompositor / 33 / 1
kf.wayland.client: Wayland Interface:  zxdg_exporter_v2 / 34 / 1
kf.wayland.client: Wayland Interface:  zxdg_importer_v2 / 35 / 1
kf.wayland.client: Unknown interface announced:  xdg_activation_v1 / 38 / 1
kf.wayland.client: Unknown interface announced:  wp_content_type_manager_v1 / 40 / 1
kf.wayland.client: Unknown interface announced:  wp_tearing_control_manager_v1 / 41 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_fake_input / 42 / 4
kf.wayland.client: Unknown interface announced:  wl_drm / 43 / 2
kf.wayland.client: Unknown interface announced:  zwp_linux_dmabuf_v1 / 44 / 4
kf.wayland.client: Unknown interface announced:  kde_output_device_v2 / 46 / 2
kf.wayland.client: Wayland Interface:  wl_output / 47 / 4
kf.wayland.client: Unknown interface announced:  wp_drm_lease_device_v1 / 48 / 1
kf.wayland.client: Unknown interface announced:  kde_output_order_v1 / 49 / 1
kf.wayland.client: Unknown interface announced:  zwp_text_input_manager_v1 / 50 / 1
kf.wayland.client: Wayland Interface:  zwp_text_input_manager_v2 / 51 / 1
kf.wayland.client: Unknown interface announced:  zwp_text_input_manager_v3 / 52 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_contrast_manager / 53 / 2
kf.wayland.client: Wayland Interface:  org_kde_kwin_blur_manager / 54 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_slide_manager / 55 / 1
xdp-kde-wayland-integration: Registry initialized
xdp-kde-wayland-integration: Adding output:
xdp-kde-wayland-integration:     manufacturer:  "BNQ"
xdp-kde-wayland-integration:     model:  "BenQ EX240/ETG8N01287SL0"
xdp-kde-wayland-integration:     resolution:  QSize(1920, 1080)
qt.accessibility.cache: insert - id: 2147483648  iface: QAccessibleInterface(0x56032b8e56c0 name="xdg-desktop-portal-kde" role=Application obj=QApplication(0x7ffd45b36380)rect=QRect(0,0 0x0))
xdp-kde-background: GetAppState called: no parameters
xdp-kde-background: GetAppState called: no parameters
xdp-kde-screencast: CreateSession called with parameters:
xdp-kde-screencast:     handle:  "/org/freedesktop/portal/desktop/request/1_7072/u1"
xdp-kde-screencast:     session_handle:  "/org/freedesktop/portal/desktop/session/1_7072/u1"
xdp-kde-screencast:     app_id:  ""
xdp-kde-screencast:     options:  QMap()
kf.notifications: service is "org.kde.StatusNotifierItem-1178-1"
kf.notifications: Registering a client interface to the KStatusNotifierWatcher
xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available
kf.windowsystem: Loaded plugin "/usr/lib64/qt5/plugins/kf5/kwindowsystem/KF5WindowSystemKWaylandPlugin.so" for platform "wayland"
kf.wayland.client: Wayland Interface:  wl_compositor / 1 / 5
kf.wayland.client: Unknown interface announced:  zwp_tablet_manager_v2 / 3 / 1
kf.wayland.client: Unknown interface announced:  zwp_keyboard_shortcuts_inhibit_manager_v1 / 4 / 1
kf.wayland.client: Wayland Interface:  xdg_wm_base / 6 / 4
kf.wayland.client: Unknown interface announced:  zwlr_layer_shell_v1 / 7 / 3
kf.wayland.client: Wayland Interface:  zxdg_decoration_manager_v1 / 8 / 1
kf.wayland.client: Unknown interface announced:  wp_viewporter / 9 / 1
kf.wayland.client: Unknown interface announced:  wp_fractional_scale_manager_v1 / 10 / 1
kf.wayland.client: Wayland Interface:  wl_shm / 11 / 1
kf.wayland.client: Wayland Interface:  wl_seat / 12 / 8
kf.wayland.client: Wayland Interface:  zwp_pointer_gestures_v1 / 13 / 3
kf.wayland.client: Wayland Interface:  zwp_pointer_constraints_v1 / 14 / 1
kf.wayland.client: Wayland Interface:  zwp_relative_pointer_manager_v1 / 15 / 1
kf.wayland.client: Wayland Interface:  wl_data_device_manager / 16 / 3
kf.wayland.client: Unknown interface announced:  zwlr_data_control_manager_v1 / 17 / 2
kf.wayland.client: Unknown interface announced:  zwp_primary_selection_device_manager_v1 / 18 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_idle / 19 / 1
kf.wayland.client: Wayland Interface:  zwp_idle_inhibit_manager_v1 / 20 / 1
kf.wayland.client: Unknown interface announced:  ext_idle_notifier_v1 / 21 / 1
kf.wayland.client: Wayland Interface:  org_kde_plasma_shell / 22 / 8
kf.wayland.client: Wayland Interface:  org_kde_kwin_appmenu_manager / 23 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_server_decoration_palette_manager / 24 / 1
kf.wayland.client: Wayland Interface:  org_kde_plasma_window_management / 25 / 16
kf.wayland.client: Wayland Interface:  org_kde_plasma_virtual_desktop_management / 26 / 2
kf.wayland.client: Wayland Interface:  org_kde_kwin_shadow_manager / 28 / 2
kf.wayland.client: Wayland Interface:  org_kde_kwin_dpms_manager / 29 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_server_decoration_manager / 30 / 1
kf.wayland.client: Unknown interface announced:  kde_output_management_v2 / 31 / 3
kf.wayland.client: Wayland Interface:  zxdg_output_manager_v1 / 32 / 3
kf.wayland.client: Wayland Interface:  wl_subcompositor / 33 / 1
kf.wayland.client: Wayland Interface:  zxdg_exporter_v2 / 34 / 1
kf.wayland.client: Wayland Interface:  zxdg_importer_v2 / 35 / 1
kf.wayland.client: Unknown interface announced:  xdg_activation_v1 / 38 / 1
kf.wayland.client: Unknown interface announced:  wp_content_type_manager_v1 / 40 / 1
kf.wayland.client: Unknown interface announced:  wp_tearing_control_manager_v1 / 41 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_fake_input / 42 / 4
kf.wayland.client: Unknown interface announced:  wl_drm / 43 / 2
kf.wayland.client: Unknown interface announced:  zwp_linux_dmabuf_v1 / 44 / 4
kf.wayland.client: Unknown interface announced:  kde_output_device_v2 / 46 / 2
kf.wayland.client: Wayland Interface:  wl_output / 47 / 4
kf.wayland.client: Unknown interface announced:  wp_drm_lease_device_v1 / 48 / 1
kf.wayland.client: Unknown interface announced:  kde_output_order_v1 / 49 / 1
kf.wayland.client: Unknown interface announced:  zwp_text_input_manager_v1 / 50 / 1
kf.wayland.client: Wayland Interface:  zwp_text_input_manager_v2 / 51 / 1
kf.wayland.client: Unknown interface announced:  zwp_text_input_manager_v3 / 52 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_contrast_manager / 53 / 2
kf.wayland.client: Wayland Interface:  org_kde_kwin_blur_manager / 54 / 1
kf.wayland.client: Wayland Interface:  org_kde_kwin_slide_manager / 55 / 1
xdp-kde-session: "org.freedesktop.impl.portal.Session"
xdp-kde-session: "Close"
xdp-kde-session: "/org/freedesktop/portal/desktop/session/1_7072/u1"
xdp-kde-background: GetAppState called: no parameters
Comment 1 David Edmundson 2023-05-25 21:36:27 UTC
>xdp-kde-screencast: zkde_screencast_unstable_v1 does not seem to be available

That's an important line.

Please confirm kwin has pipewire support enabled support enabled:
qdbus org.kde.KWin /Plugins org.kde.KWin.Plugins.AvailablePlugins
Comment 2 tusooa 2023-05-25 21:50:37 UTC
Ok, when I restarted my wayland session, the qdbus call now reports kwin5_plugin_screencast and screencast does work now. There was an upgrade to kde-plasma/kwin-5.27.5-r2 before I restarted.