Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1769236 - copy & paste doesn't work much of the time [NEEDINFO]
Summary: copy & paste doesn't work much of the time
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: mutter
Version: 34
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Carlos Garnacho
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-06 09:07 UTC by Garrett LeSage
Modified: 2021-05-27 17:51 UTC (History)
33 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-25 15:10:20 UTC
Type: Bug
Embargoed:
hgomes: needinfo? (fmuellner)


Attachments (Terms of Use)
Mutter - app1 (74.83 KB, text/plain)
2020-04-19 18:50 UTC, Jan Grulich
no flags Details
Mutter - app2 (67.86 KB, text/plain)
2020-04-19 18:50 UTC, Jan Grulich
no flags Details
Weston - app1 (115.81 KB, text/plain)
2020-04-19 18:51 UTC, Jan Grulich
no flags Details
Weston - app2 (114.08 KB, text/plain)
2020-04-19 18:52 UTC, Jan Grulich
no flags Details
video recording demonstrating problem (374.87 KB, video/webm)
2021-04-05 19:51 UTC, Gregory Lee Bartholomew
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab 1194 0 None None None 2020-04-19 19:19:17 UTC

Internal Links: 1758873

Description Garrett LeSage 2019-11-06 09:07:04 UTC
Description of problem:

Most of the time when I'm trying to copy and paste, it simply doesn't work. If I try copying and pasting multiple times, it eventually does work.

This seems to have started happening sometime within the past few weeks?


Version-Release number of selected component (if applicable):

Silverblue: 31.20191105.0 (2019-11-05T02:00:02Z)
mutter-3.34.1-5.fc31.x86_64
gnome-shell-3.34.1-2.fc31.x86_64
libwayland-server-1.17.0-2.fc31.x86_64
xorg-x11-server-Xwayland-1.20.5-7.fc31.x86_64


How reproducible:

It happens frequently, but if I copy and paste enough times, it eventually works.


Steps to Reproduce:
1. Copy
2. Paste
3. ??? (It's a game of chance if it works as intended or not.)


Actual results:

Nothing is usually pasted. Sometimes the wrong content (old copy) is pasted. Other times, it works as expected.


Expected results:

Copy and paste should work, as expected, as it has for a few decades on Linux.


Additional info:

It's affecting Fedora 31 Workstation & Fedora 31 Silverblue. Both laptops are running GNOME on Wayland and this affects both Wayland and X11 apps on Intel chipsets.

It affects non-Wayland X11 sessions on binary NVidia as well (so it's not Wayland-specific):
https://twitter.com/snorp/status/1191853855740481536

I've seen this happen in:
- Firefox (Wayland)
- GNOME Terminal
- HexChat


Most-likely-related, but recently closed issues:
https://bugzilla.redhat.com/show_bug.cgi?id=1758873
https://bugzilla.redhat.com/show_bug.cgi?id=1761434

Comment 1 Ondřej Kolín 2019-11-14 08:40:46 UTC
I am affected with this bug as well. Copy paste works just sometimes, though it is unreliable. Workaround is to use the mouse buffer (middle mouse button).

Comment 2 Milan Bouchet-Valat 2019-12-14 17:24:27 UTC
I observe the same thing since I upgraded from F29 to F31. Ctrl+X removes the text, but Ctrl+V doesn't paste it. Usually the second time it works.

Comment 3 David Bartlett 2019-12-22 13:07:06 UTC
I experience this too since upgrading to Fedora 31.  Copy and paste between certain programs is an issue.  
All packages are up to date on my system but the problem still persists.

Comment 4 Slomo10 2020-02-27 11:50:21 UTC
Same problem here on wayland and fedora 31, but only sometimes, couldn't figure out when or with which programs it doesn't work.

Comment 5 Chandana De Silva 2020-03-22 21:59:24 UTC
I have the same problem. Select + Paste works with the mouse, but not with Shit+Insert or Ctl + v
I am using Fedora 31

gnome-shell-3.34.4-2.fc31.x86_64
libwayland-client-1.17.0-2.fc31.x86_64
libwayland-cursor-1.17.0-2.fc31.x86_64
libwayland-egl-1.17.0-2.fc31.x86_64
libwayland-server-1.17.0-2.fc31.x86_64
mutter-3.34.4-2.fc31.x86_64
qt5-qtwayland-5.13.2-2.fc31.x86_64
xorg-x11-server-Xwayland-1.20.6-1.fc31.x86_64

Comment 6 hgomes 2020-04-13 20:29:53 UTC
I am having the same issue. 

Copy and Paste using mouse *does not* work among any apps
Ctrl-C Ctrl-V does not work
Ctrl-Shift-C Ctrl-Shift-V does not work

gnome-shell-3.34.5-1.fc31.x86_64
mutter-3.34.5-1.fc31.x86_64
xorg11-server-Zwayland-1.20.6-1.fc31.x86_64
qt5-qtwayland-5.13.2-2.fc31.x86_64

Comment 7 hgomes 2020-04-15 17:55:35 UTC
Erasing clipit made the trick.

Comment 8 Jan Grulich 2020-04-19 18:50:37 UTC
Created attachment 1680083 [details]
Mutter - app1

Comment 9 Jan Grulich 2020-04-19 18:50:59 UTC
Created attachment 1680084 [details]
Mutter - app2

Comment 10 Jan Grulich 2020-04-19 18:51:39 UTC
Created attachment 1680085 [details]
Weston - app1

Comment 11 Jan Grulich 2020-04-19 18:52:03 UTC
Created attachment 1680086 [details]
Weston - app2

Comment 12 Jan Grulich 2020-04-19 18:53:50 UTC
I can reproduce. I cannot copy from non-Qt applications to Qt applications, as well from a Qt application to another Qt application on Wayland. This works just fine on Weston or KDE Plasma session so I believe this is a Mutter issue.

I attached outputs with WAYLAND_DEBUG enabled, where I ran Kate and KWrite on both Weston and Mutter and tried to copy text from one to the other and vice versa. What is weird that first copy/paste works, after that I'm unable to copy and paste any text.

Comment 13 Jan Grulich 2020-04-19 19:19:18 UTC
I opened upstream bug for this issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/1194

Comment 14 Lee Duke 2020-06-03 22:14:17 UTC
I'm having this problem on fedora 32.

Comment 15 Bernd Finger 2020-07-13 21:19:00 UTC
More observations but I cannot tell if these are all related. Here's my current configuration:
# uname -r
5.7.7-200.fc32.x86_64
# env | grep -i sess
DESKTOP_SESSION=plasma
XDG_SESSION_DESKTOP=plasma
XDG_SESSION_TYPE=x11
...
KDE_FULL_SESSION=true
GDMSESSION=plasma
# echo $XDG_SESSION_TYPE
x11
# yum list installed ICAClient.x86_64
Installed Packages
ICAClient.x86_64    20.04.0.21-0    @@commandline

1) When left double-clicking on a word in a Gnome terminal 3.28.2 in a Citrix ICA session (destination system is Gnome (gnome-shell 3.28.3-24.el7) on RHEL 7.5) for the first time, the word is selected and will stay selected.
By running "xsel -po" (primary selection) and "xsel -bo" (clipboard selection) in a terminal on the host (=my desktop system running Fedora 32), I can prove that the word is indeed in both the primary and the clipboard selection.
When left double-clicking on another word in that Gnome terminal in the ICA session, the word is selected but immediately afterwards, the selection disappears. When double-clicking on this or another word *again*, the word will again stay selected. From this point in time, I can double-click on any other word as often as I like but once I display either the primary selection or the clipboard selection in the terminal on the host, the disappearing word selection issue starts again.

2) Behavior in a Citrix ICA Windows session:
I double-click on a word in Outlook to select it. Then, I press <ctrl>c to copy it to the clipboard.
Then, I run "xsel -po" and "xsel -bo" on the host system. The correct word is displayed.
I double-click on another word in Outlook to select that one. Then I press <ctrl>c to copy it to the clipboard.
Then, I run "xsel -po" and "xsel -bo" on the host system. The *previous* word is displayed.
I found that the only way to reliably avoid this behavior is to press <ctrl>c twice in the ICA Windows session.

All this started to occur around year-end 2019. At that time, I had used Fedora (probably 30 or 31) with Gnome. So the issue is likely not related to the desktop environment. If necessary, I can try to reproduce the issue using any other desktop environment.

Comment 16 Ben Cotton 2020-11-03 15:45:01 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 17 Bernd Finger 2020-11-04 14:23:51 UTC
As the issue exists on Fedora 32 as well, please change the version to 32.

This behavior is not just annoying but also causing additional stress (I have to check the contents of the clipboard every time when copying/pasting from and my ICA client session), loss of time (as I have to use Google Docs as a clipboard in case the normal clipboard doesn't work), and maybe even loss of data (e.g. in case there is a "rm" command in the previous clipboard and it didn't get overridden by the current copy action).

Comment 18 Bernd Finger 2020-11-23 14:28:30 UTC
Any update on this? I can only use the clipboard by using <ctrl>c twice before pasting, otherwise the clipboard does not get updated. From time to time, this leads to unwanted content to be pasted. I offer to test and collect any type of test data until this problem is finally solved. As there are not many updates in this bug, is there maybe a simpler workaround available? I wonder how all the other affected users work with this problem, or if the affected users all are using a special configuration.

Comment 19 Jonas Ådahl 2020-11-23 14:37:02 UTC
Seems the bug is reported against mutter, but according to https://bugzilla.redhat.com/show_bug.cgi?id=1769236#c15 you're reproducing this in a KDE session, in which mutter plays no part. Maybe this should be moved to kwin?

Does the clipboard issue always involve Firefox btw? The only clipboard issue I myself am experiencing (in F32 and F33) are related to Firefox, and hard to reproduce.

Comment 20 Bernd Finger 2020-11-23 15:47:28 UTC
I just tested again. Currently, I am still observing the same symptoms as I described in https://bugzilla.redhat.com/show_bug.cgi?id=1769236#c15. Both problems are about copying text inside the Citrix session and pasting it to the Fedora 32 host system (= the session's primary selection: xsel -po, as well as the sessions's clipboard selection (middle mouse key): xsel -bo). The other way around (=from the host system to the ICA session) is currently working. Also copy and paste just in the host system's KDE session is working using the primary and clipboard selection.

After some time of working with the ICA sessions, the following happens:
When pressing <ctrl>c or <shift><ctrl>c with the expectation that this text will be transferred to the host system's primary or clipboard selection, this text will not be available in the host system's primary selection (I have to check if it appears in the clipboard selection, but I don't expect it). I so far have not found anything which triggers this behavior. The workaround I am using in this case is to transfer text via a Google document. Copying and pasting inside the Citrix VDI session is working, with the exception that the selected text will only be transferred to the session's primary selection every second time.

Is there any additional data which I could collect to assist with the analysis?

Last time I tested, I could reproduce the problem with other host system desktop environments as well. Please let me know which desktop environment you want me to test:
cinnamon, enlightenment, gnome-classic, gnome, openbox, twm, or WindowMaker

Comment 21 Wade Hampton 2020-12-02 15:49:08 UTC
This problem is also happening in Fedora 33.  Please change the version.

Comment 22 Wade Hampton 2020-12-02 16:23:55 UTC
On Fedora 33, I removed the clipit RPM, logged out, then back in.  Problem seems to be fixed.

Comment 23 Gregory Lee Bartholomew 2021-04-05 19:37:59 UTC
I've noticed that simply highlighting and middle-clicking has been broken for quite a while. I've been able to work around that by pressing Ctrl+C in most cases, but today the problem seems to have become much much worse. Now I cannot even highlight a block of text with the mouse. It seems like something is clearing/resetting the highlight as I move the mouse. I'm now down to using Shift+End or Shift+Home to highlight lines and then pressing Ctrl+C to get them into a clipboard. I don't have clipit installed. I'm running Fedora 33.

Comment 24 Gregory Lee Bartholomew 2021-04-05 19:51:20 UTC
Created attachment 1769360 [details]
video recording demonstrating problem

In the attached video, I am holding the left mouse button down continuously as I try to highlight the lines of text.

Comment 25 Fedora Program Management 2021-04-29 15:59:34 UTC
This message is a reminder that Fedora 32 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 32 on 2021-05-25.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '32'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 32 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 26 Adam Batkin 2021-04-29 18:14:06 UTC
Can anyone confirm if these issues have been fixed in F34?

Comment 27 Weston Schmidt 2021-05-24 05:09:44 UTC
I am seeing what look to be the same problems in F34.  The first few weeks I did not have the issue, then it showed up last week.  It is unclear what caused the break.  I don't have clipit installed.

Comment 28 Ben Cotton 2021-05-25 15:10:20 UTC
Fedora 32 changed to end-of-life (EOL) status on 2021-05-25. Fedora 32 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.