Clipboard doesn't work 100% of the time in Ubuntu 20.04 (in KVM guests)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
spice (Fedora) |
Unknown
|
Unknown
|
|||
spice (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
spice-gtk (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Won't Fix
|
Wishlist
|
Unassigned | ||
spice-protocol (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Won't Fix
|
Wishlist
|
Unassigned | ||
spice-vdagent (Debian) |
Fix Released
|
Unknown
|
|||
spice-vdagent (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
virt-manager (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
https:/
---
I'm testing Ubuntu 20.04 LTS (Focal Fossa) Beta.
I installed Kubuntu 20.04 and virt-manager as I did many times on Ubuntu 18.04. Unfortunatelly when I run a VM (QEMU-KVM, libvirt, libspice-server1 and spice-vdagent) with another Kubuntu 20.04 guest or with Ubuntu 20.04 guest then clipboard doesn't work right.
To test it, please install Kubuntu 20.04 and then install Kubuntu / Ubuntu 20.04 as VM (guest). Open some simple text editor and start Ctrl + C and Ctrl + V plain text. 90% of time it will work and 10% of time it won't.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: virt-manager 1:2.2.1-3ubuntu1
ProcVersionSign
Uname: Linux 5.4.0-21-generic x86_64
ApportVersion: 2.20.11-0ubuntu26
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Mon Apr 13 15:02:22 2020
InstallationDate: Installed on 2020-04-09 (4 days ago)
InstallationMedia: Kubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200401)
PackageArchitec
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in spice-vdagent (Debian): | |
status: | Unknown → Fix Released |
tags: | removed: champagne |
Hi John,
just to be clear we are not talking about copy&paste between guest and host but copy&paste inside the guest right?.
I was installing `screenkey` to check if the events arrive at the guest as I type them (they did).
At the same time in the background I was displaying the clipboard content via:
while /bin/true; do clear; printf "primary: '%s'\nclipboard: '%s'\n" \
"$(xclip -o -selection primary)" \
"$(xclip -o -selection clipboard)"; sleep 0.1; done
Note: this doesn't need "Kubuntu" it seemd to trigger with "normal" Ubuntu and the default "editor" as well.
I found some odd behavior, sometimes it would seem as if my copy would not work.
Pasting then would paste "nothing" later on if I copy something again it would "free up" and unblock all old calls, suddenly pasting all of them.
Example
text editor with:
aa
bb
cc
Then I copy "aa" but the system locks up.
I go to the next line and try to paste it three times (nothing happens).
Then I copy "bb" which "unblocks" the system.
The three times "aa" paste now appear at once.
I found that in these blocked copy actions xclip seemes to get into a hang.
That might be used to debug what actually goes on.
From a qemu perspective the responsibility stops once the key-events are delivered and screenkey shows all my copy/paste keyboard inputs. I'm re-assigning that to the Desktop Team for triage on their side as it leaves my comfort zone after these key events are delivered.