Bug 465657 - Received an event primary_selection requiring version >= 2 while proxy zwlr_data_control_device_v1@5 is version 1
Summary: Received an event primary_selection requiring version >= 2 while proxy zwlr_d...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-13 08:15 UTC by planetory
Modified: 2023-02-13 14:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.27.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description planetory 2023-02-13 08:15:49 UTC
SUMMARY

Received an event primary_selection requiring version >= 2 while proxy zwlr_data_control_device_v1@5 is version 1.
Error: Wayland compositor communication error

Caused by:
    Dispatch for object zwlr_data_control_device_v1@5 errored.

See original issue, https://github.com/YaLTeR/wl-clipboard-rs/issues/34
This is a kwin bug (YaLTeR said)

STEPS TO REPRODUCE
1. Run https://github.com/YaLTeR/wl-clipboard-rs cargo r --example clipboard
2. 
3. 

OBSERVED RESULT

wl-clipboard-rs doesnt work, but https://github.com/bugaevc/wl-clipboard works

EXPECTED RESULT
wl-clipboard-rs works without issue

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 21.10
(available in About System)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 planetory 2023-02-13 08:20:16 UTC
Correction, the command is `cargo r --bin wl-paste` under directory wl-clipboard-rs-tools
Comment 2 Bug Janitor Service 2023-02-13 09:34:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3587
Comment 3 David Edmundson 2023-02-13 10:02:08 UTC
Git commit d084629f3cc56ba1f84af451399360706f97c3ca by David Edmundson.
Committed on 13/02/2023 at 09:38.
Pushed by davidedmundson into branch 'master'.

wayland: Version check before send_primary_selection calls

This is only in v2

M  +4    -2    src/wayland/datacontroldevice_v1_interface.cpp

https://invent.kde.org/plasma/kwin/commit/d084629f3cc56ba1f84af451399360706f97c3ca
Comment 4 David Edmundson 2023-02-13 10:03:39 UTC
Git commit 3331c63ef351feb7dced2663e62e0f7459cb259a by David Edmundson.
Committed on 13/02/2023 at 10:03.
Pushed by davidedmundson into branch 'cherry-pick-d084629f'.

wayland: Version check before send_primary_selection calls

This is only in v2


(cherry picked from commit d084629f3cc56ba1f84af451399360706f97c3ca)

M  +4    -2    src/wayland/datacontroldevice_v1_interface.cpp

https://invent.kde.org/plasma/kwin/commit/3331c63ef351feb7dced2663e62e0f7459cb259a
Comment 5 Vlad Zahorodnii 2023-02-13 11:55:41 UTC
Git commit 0bc6600ce88703843ca314b8b3aa96ea4e51a444 by Vlad Zahorodnii, on behalf of David Edmundson.
Committed on 13/02/2023 at 11:41.
Pushed by vladz into branch 'Plasma/5.27'.

wayland: Version check before send_primary_selection calls

This is only in v2
(cherry picked from commit d084629f3cc56ba1f84af451399360706f97c3ca)

M  +4    -2    src/wayland/datacontroldevice_v1_interface.cpp

https://invent.kde.org/plasma/kwin/commit/0bc6600ce88703843ca314b8b3aa96ea4e51a444