[X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93 and 176)

Bug #1852183 reported by Adam Dingle
482
This bug affects 97 people
Affects Status Importance Assigned to Milestone
LibreOffice
Won't Fix
Medium
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
High
Unassigned
Groovy
Fix Released
High
Unassigned

Bug Description

[ Impact ]

I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.

In this environment, copy/cut/paste often fails. Specifically, the paste command sometimes does not paste the text that was cut/copied most recently. Instead, it pastes text that was cut/copied at some prior time.

[ Test case ]

1. Use use libreoffice writer/calc
2. Copy text around
3. Paste it and ensure it always work

[ Regression potential ]

Copy/paste won't work as expected, for non-text types

-----

I use LibreOffice Writer a lot, and I now see this problem very often, i.e. many times every day.

There is some discussion of the problem here:

   https://ask.libreoffice.org/en/question/213510/copypaste-issues-libreoffice-calc/

Several posters there say that they are also using Ubuntu 19.10.

Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:

   https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34-Clipboard-Manager

It seems like that could be related.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

I now believe this problem is not specific to LibreOffice. I see it there often since I use LibreOffice Writer a lot, but it just happened again when I cut some text in Geany (a text editor) and attempted to paste it into the email program Geary. So I think this is a general clipboard problem in Ubuntu 19.10.

Given that, I will change the bug's title to remove the word "LibreOffice", and remove it from the libreoffice project.

summary: - copy/paste (clipboard) is broken in LibreOffice on Ubuntu 19.10
+ copy/paste (clipboard) is broken in Ubuntu 19.10
no longer affects: libreoffice (Ubuntu)
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote : Re: copy/paste (clipboard) is broken in Ubuntu 19.10

Agreed, this does seem to be somewhat Ubuntu (and indeed perhaps Mutter) related, and not specific to LibreOffice.

I tried the exact same version of LibreOffice (libreoffice-6.3.3.2-snap1) on Debian Buster and Ubuntu 19.10, and found that while reproducible on Ubuntu, it is not on Debian (see attached screencasts).

Ubuntu Mutter Version: 3.34.1-1ubuntu1
Debian Mutter Version: 3.34.1+git20191107-1

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Whoops, I was testing Ubuntu on X11 and Debian on Wayland. I switch to X11 on Debian and this is indeed reproducible there (see attached).

I will report this upstream.

Changed in mutter (Ubuntu):
status: New → Triaged
summary: - copy/paste (clipboard) is broken in Ubuntu 19.10
+ [X11] copy/paste (clipboard) is broken in Ubuntu 19.10
Revision history for this message
ethanay (ethan-y-us) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

I can only reproduce this bug in LibreOffice Calc (spreadsheet). I cannot reproduce it in Writer or Geary.

But it is a consistent problem for me in Calc.

Here are the symptoms/process:
1. First new copy invariably fails to copy text, instead copies/stores a bitmap image.
2. If I "cut" instead of "copy" then I have to use the "undo" function to restore the text so I can attempt again.
3. Undoing my paste/cut operations consistently causes LibreOffice to crash.
4. Second attempt at cut/copy invariably succeeds.

I will try to grab a crash report as it seems specifically related to this bug.

I noticed this immediately upon upgrading from 19.04 to 19.10, all with latest stock kernel/software/updates. IE, using the standard versions in the repositories.

The behavior from this bug has the potential to cause data loss: When LibreOffice crashes before "undo" can restore the cut text, whatever chunk of data that was intended to be cut gets completely discarded and does not get recovered with the rest of the document, probably because it was stored in a buffer somewhere separate from the actual document data itself.

So all in all this bug converts text into image and then deletes the data altogether.

Revision history for this message
ethanay (ethan-y-us) wrote :

Attached backtrace of LibreOffice after crash as described in previous message

Changed in mutter:
status: Unknown → New
tags: added: rls-ee-incoming rls-ff-incoming
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

@adam-yorba, when you said you reproduced this copying from Geany into Geary what did you mean? That an image was pasted instead of text? Or that nothing was pasted?

Revision history for this message
Adam Dingle (adam-yorba) wrote :

@marcustomlinson, when copying/pasting from Geany into Geary, I didn't get an image. I believe I got the wrong text. But unfortunately I don't remember precisely.

I have seen this bug zillions of times in LibreOffice Writer, typically when copying in one window and pasting in another, and only a few times in other apps.

Thanks for your research determining that this is related to X11. That gives us a possible workaround: log into a Wayland session instead.

Revision history for this message
In , Marcus Tomlinson (marcustomlinson) wrote :

Description:
Lately on Linux (under an X11 session particularly), it would appear that text copied from a cell in Calc is sometimes stored in the clipboard as a bitmap.

Steps to Reproduce:
1. Open Calc.
2. Type "hello" into a cell.
3. Select the cell.
4. Press Ctrl+C / Ctrl+V over and over.

Actual Results:
Eventually, instead of text, an image containing "hello" will be pasted.

Expected Results:
The text should be copied and pasted as text always.

Reproducible: Always

User Profile Reset: No

Additional Info:

Changed in libreoffice (Ubuntu):
status: New → Triaged
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

@adam-yorba, thanks Adam, yeah it would seem there may be fault on both ends here (mutter and libreoffice). I'm going to re-add LibreOffice and report this upstream.

Revision history for this message
In , Marcus Tomlinson (marcustomlinson) wrote :

It's useful to know that a recent update to mutter is at least partly to blame for this, as I cannot reproduce the issue on versions older than 3.34.

Mutter 3.34 introduced a new clipboard manager: https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34-Clipboard-Manager

However, LibreOffice does seem to be doing something strange in its type requests from the clipboard (stand by for a comment from a colleague with more mutter knowledge), so I suspect there may be fault on both ends here.

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → New
Changed in libreoffice (Ubuntu):
importance: Undecided → High
Changed in mutter (Ubuntu):
importance: Undecided → High
Revision history for this message
In , Resort1-u (resort1-u) wrote :

Can confirm this suspected 'mutter' bad effect on calc 6.3.3 and mutter 3.34.1:

-happen with a calc spreadsheet when trying to copy/paste a formula cell:
 1) from a column's cell, right click to copy it
 2) select the first same column's cell to paste: get a graphic created (kind of image with 4 cells which are draggable and extendable) instead of the normal pasting result.
 3) deleting that graphic objet, then re-copying the original cell, finally the pasting is done as expected.

This has been seen for each copy/paste since calc 6.3.3 upgrade, not prior.

Also note that now LO is unable to load/open an ods file : after the Nov 11th upgrades; Does not get error from a terminal.
Only get a dialog box telling calc has silently crashed and will then try to recover the ods file: but there is no file listed to recover.
Indeed that ods file load/open as usual with version prior to Focal.

Revision history for this message
In , Resort1-u (resort1-u) wrote :

Note that when copy/paste is failing, some more icons are automatically added into the top taskbar, and then are removed when the graphic objet is deleted

Revision history for this message
d7rk (d7rk) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

This also happens in other office and text applications (geany, under ms office 2010 with wine, etc.) and other systems such as manjaro linux with gnome-shell 1:3.34.1+12+ga43c22e3a-1 and mutter 3.34.1+52+g403d8fcc-1 under Xorg.
Wouldn't it be a mutter bug linked to implementation of the new clipboard?

Changed in df-libreoffice:
status: New → Confirmed
tags: removed: rls-ee-incoming rls-ff-incoming
Changed in libreoffice (Ubuntu Eoan):
importance: Undecided → High
Changed in mutter (Ubuntu Eoan):
importance: Undecided → High
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Changed in libreoffice (Ubuntu Eoan):
assignee: nobody → Marcus Tomlinson (marcustomlinson)
Changed in mutter (Ubuntu Eoan):
status: New → Triaged
Changed in libreoffice (Ubuntu Eoan):
status: New → Triaged
Revision history for this message
Henio Junior (henioajunior) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10 and Fedora 31

In these environments, copy/cut/paste often fails. Specifically, the paste command sometimes does not paste the text that was cut/copied most recently. Instead, it pastes text that was cut/copied at some prior time.

Revision history for this message
Thomas M Steenholdt (tmus) wrote :

On a fully updated Ubuntu 19.10, I feel most of my problems occur, when copying from a Wayland application, and pasting to an XWindow application. Most of the time, that doesn't work at all.

As an example. Running my Firefox as a native Wayland application, I am experiencing problems copying a URL and pasting it into Chrome.

Revision history for this message
Tamas Kleiber (kleiber-tamas) wrote :

After upgrading to Ubuntu 19.10 from 19.04 I face similar issues with the clipboard. I experience these issues the most in Notepad-plus-plus which is installed via snap from stable branch. Under both Xorg and Wayland desktop servers the clipboard does not work between Notepad-plus-plus and other text editing applications reliably while switching to Gnome flashback (metacity) does not have these issues.
 In my case not only clipboard issues are present, but the favorites side bar and related windows also show graphical glitches on mouse hover over.

mutter (wayland?) version is 3.34.1
Xorg version is 7.7 if i am not mistaken
gnome-flashback/panel are 3.34.0
metacity is 3.34.1

Revision history for this message
René Vangsgaard (rene-vangsgaard) wrote :

I experience this on Ubuntu 19.10 using Wayland. To me it seems that the copy operation fails, because I use the Gnome extension Clipboard Indicator, and often the copied text is not present.

Copy and pasting screen shot does not work any more.

I started experiencing this approximately 2 weeks ago. Before that, I have have successfully run Ubuntu 19.10 without copy-paste issues.

Revision history for this message
Jeppe Bundsgaard (jeppe) wrote :

I experience this problem in all kinds of editors (LibreOffice, RStudio, Evolution, Kate), and also sometimes when creating screen dumps to the clipboard (ctrl+shift+print screen). I also thought it was connected to Clipboard Indicator, but it didn't help de-activating it.

But, hopefully good news ahead: The bug should be fixed in gtk3 3.24.13 and mutter 3.34.2 according https://gitlab.gnome.org/GNOME/mutter/issues/878#note_642048.

So now we just have to wait for Ubuntu to get to these versions. Anyway we could get this first in line of updates? - it is extremely annoying.

Revision history for this message
Ljiljan Veselinovic (ljiljan-veselinovic) wrote :

I experience this problem only with WPS office under Ubuntu 19.10. I usually need to copy text twice in order to send it to clipboard. Because copy option is actually broken, it happens that the previous text is pasted (not the one I copied). However, other programs work just fine most of the time.

Revision history for this message
Owen Williams (ywwg) wrote :

I have very inconsistent copy/paste under Wayland. Usually switching windows and trying again fixes it, but I'd give the success rate of a copy command working at 75%.

Revision history for this message
Owen Williams (ywwg) wrote :

This upstream bug looks like the same issue: https://gitlab.gnome.org/GNOME/mutter/issues/878

Revision history for this message
Adam Dingle (adam-yorba) wrote :

I think that the upstream bug

    https://gitlab.gnome.org/GNOME/mutter/issues/878

may not be the same issue.

This bug has "X11" in the title, and so it really refers to behavior under X11. On Ubuntu 19.10, if I run an X11 session then copying/pasting fails very often, especially in LibreOffice. For this reason I switched to Wayland several weeks ago. Under Wayland, copying/pasting still fails occasionally, but far less often. I saw copy/paste failures dozens of times per day under X11, and now they happen maybe once or twice per day in Wayland (with intensive use of LibreOffice in both cases).

In a comment in the mutter bug linked above, Carlos Garnacho wrote

    This is wayland specific.

So it is unclear to me that the patches linked there (which are to both GTK and mutter) will fix the problem in X11. Has anyone tried to reproduce this copy/paste problem after applying these patches under X11?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The upstream bug for X11 here is https://gitlab.gnome.org/GNOME/mutter/issues/919

Revision history for this message
In , timur (ba.timur) wrote :

*** Bug 129319 has been marked as a duplicate of this bug. ***

Revision history for this message
Vladimir Kondratyev (vladimirkondratyev) wrote :

I have the same problem with Wine applications. Ubuntu 19.10, both X11 and Wayland sessions. Copy/paste works very inconsistent.

Revision history for this message
Don Pierson (pchome) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

Often cannot copy and paste between Notepad++ and Firefox or even Terminal. If I open GEdit, I can paste there, then copy again which seems to be a workaround though not a very good one.

Revision history for this message
Don Pierson (pchome) wrote :

To add to my earlier comment, it also happens when copying between Ubuntu applications. In this case, a rather poor workaround is to copy twice or even three times which usually will eventually grab the text being copied.

Revision history for this message
In , timur (ba.timur) wrote :

*** Bug 129626 has been marked as a duplicate of this bug. ***

Revision history for this message
Michael Peter Nolan (michaeltechlan) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

I can't do screen capture - sometimes when i roll over a field in Chrome its like there is a list there of clipboard items. I have to copy 2 times to get text but other types of clipboard like captured images aren't working.
I'd fix this if I was up to speed with developing on this platform because it's driving me nuts.

Revision history for this message
In , Eike Rathke (erack) wrote :

Note that a selection's content is not stored in the clipboard (unless LibreOffice is exited) but upon pasting the target asks for the available formats and picks the best offered, that in this case should be the internal Calc format, which then would be transferred from source to target, but somehow here instead it gets a bitmap/image from the clipboard "manager" (apparently).

(In reply to Marcus Tomlinson from comment #1)
> However, LibreOffice does seem to be doing something strange in its type
> requests from the clipboard (stand by for a comment from a colleague with
> more mutter knowledge), so I suspect there may be fault on both ends here.
So what would that "doing something strange" be?

Revision history for this message
In , Eike Rathke (erack) wrote :

Reportedly, if the Clipboard Indicator GNOME Shell Extension was installed, removing that cured the symptom.

Revision history for this message
In , Eike Rathke (erack) wrote :

The corresponding Mutter bug is https://gitlab.gnome.org/GNOME/mutter/issues/919

Revision history for this message
Willem Pieterson (wpieterson) wrote :

Can also confirm being affected by this bug. Strangely it randomly happens in LibreOffice for me, but constantly in WPS Office. When I copy something it either pasts nothing (suggesting nothing was copied) or pasts as a bitmap. Sometimes this bitmap shows all content that was copied, sometimes a random bit. When it pasts a bitmap, re-copying everything and then pasting does always work.

Revision history for this message
Tom Peelen (tom-peelen) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

I'm experiencing the same bug since 2 weeks. Using Ubuntu 19.10, Libreoffice Calc 6.3.4.2 Build ID: 1:6.3.4-0ubuntu0.19.10.1.

Please help!

tags: added: eoan
Revision history for this message
In , Vladimir Kondratyev (vladimirkondratyev) wrote :

I do not have any GNOME shell extension, and extensions are disable in "Tweaks", but problem with copy paste/paste exits.

I can also confirm that double-copy works in some cases.

Revision history for this message
Taha Soomro (suryaya) wrote :

This happens to me in not just libreoffice but also other applications like firefox as well.

Revision history for this message
In , timur (ba.timur) wrote :

This bug is marked All and reproduced also on Windows.

Revision history for this message
In , Jna3427 (jna3427) wrote :

Please note, I filed this but with a complaint about my system shutting down, and also not auto-saving.
https://bugs.documentfoundation.org/show_bug.cgi?id=65509

As noted in that discussion, yesterday when I got the .bmp, LibreOffice shut down quickly thereafter. It may be that the bug causing the .bmp is also crashing the system.

Don't know where/if the auto-save fits in.

Revision history for this message
In , Gnguim (gnguim) wrote :

Now that this bug is confirmed what next? Its is really annoying and making me consider other desktop environments other than GNOME.

Revision history for this message
Benoit Tainturier (b-tainturier) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

The bug seems fixed, at least in Libreoffice.

Revision history for this message
Benoit Tainturier (b-tainturier) wrote :

The bug is not fixed, even in Libreoffice, but it occurs much less frequently (maybe 1 time out of 10 or 20).

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Benoit: What version of Ubuntu and LibreOffice are you running? Are you in an X11 or a Wayland session?

Revision history for this message
joshua pritikin (jpritikin73) wrote :

I'm running Eoan. After studying the comments here, I installed libgtk-3-0 from focal (https://packages.ubuntu.com/focal/libgtk-3-0). This forced me to upgrade CUPS. I'm not sure if printing still works, but the cut/copy/paste issue appears to be resolved.

Changed in mutter:
status: New → Fix Released
Revision history for this message
AJenbo (ajenbo) wrote :

This issue is present in 20.04. I'm mainly seeing it in CodeLite (probably because that is where I spend all my time), but one interesting thing is that it also affects VMs (Ubuntu 18.04) running in Boxes with shared copy paste.

tags: added: focal
tags: added: fixed-in-3.35.90 fixed-upstream
Revision history for this message
Benoit Tainturier (b-tainturier) wrote :

Adam: I am using Ubuntu 19.10, LibreOffice 6.3.4.2, and a default session (X11).
Actually, copy/paste worked really better on the 1st of February and during the days after. I thought it was fixed! Today, the issue is exactly the same as before.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

If the issue is https://gitlab.gnome.org/GNOME/mutter/issues/919 then it is fixed in mutter 3.35.90, which will come in Ubuntu 20.04.

Revision history for this message
In , Eike Rathke (erack) wrote :

Workaround: login to a Wayland session instead of X11 (or maybe X-Wayland?) session.

Revision history for this message
In , Eike Rathke (erack) wrote :

*** Bug 130816 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mike Gilmer (mike65535) wrote :

I've found:
1. The initial CTRL-C works fine.
2. Subsequent attempts are OK if one presses CTRL-C twice on the source cell which seems to function as a workaround.

Revision history for this message
Charles (bityard) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10

I encounter this bug pretty much daily. Roughly every other copy+paste action doesn't work, and I have quite a bit of copy+paste in my workflow.

It's not that I'm at all ungrateful for the work people do on Ubuntu, paid or not, I just want to make sure I understand: copy and paste is broken on Ubuntu 19.10 and it won't be fixed until users upgrade to Ubuntu 20.04. Do I have that right?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Ubuntu 19.10 might get fixed. However we require the development release (presently 20.04) to always have a fix before older releases can get it.

Changed in libreoffice (Ubuntu Eoan):
assignee: Marcus Tomlinson (marcustomlinson) → Heather Ellsworth (hellsworth)
Changed in libreoffice (Ubuntu Focal):
assignee: nobody → Heather Ellsworth (hellsworth)
Revision history for this message
In , Tom1williams (tom1williams) wrote :

I am having the same problem. My work-around was to install XFCE from the Ubuntu repository. As soon as I logged into an XFCE session instead of a GNOME session the problem disappeared completely. I think the people who support mutter have this as a high severity bug.

Revision history for this message
In , timur (ba.timur) wrote :

*** Bug 130880 has been marked as a duplicate of this bug. ***

Revision history for this message
Daniel Boros (trinimac) wrote :

I have this issue on Wayland (Pop OS) as well. About every 10th copy fails for me. Are you sure this is a X issue only?

Revision history for this message
Forage (forage) wrote :

I concur with Daniel, I use Wayland only on two different systems with Ubuntu 19.10 and they both show the same issue. Highly frustrating.

Revision history for this message
Jose-Gadelha (gadas) wrote :

I'm using the Ubuntu 20.04 daily build on VirtualBox with the updated mutter version (3.35.91) and I'm still finding this copy & paste issue on WPS office.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.35.91-1ubuntu1

---------------
mutter (3.35.91-1ubuntu1) focal; urgency=medium

  * Merge with debian. Remaining changes:
    + debian/control:
      - Update VCS flags to point to launchpad
    + debian/gbp.conf: update branch to point to ubuntu/master
    + debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
      - X11: Add support for fractional scaling using Randr

 -- Marco Trevisan (Treviño) <email address hidden> Wed, 26 Feb 2020 15:33:52 +0100

Changed in mutter (Ubuntu Focal):
status: Triaged → Fix Released
Revision history for this message
Dusty (dustyt) wrote :

I see a lot of comments about Libre and just wanted to add that it is not an office issue.

This is for sure a copy issue. It just brings a lot of comments about office stuff because there is text being copied and pasted.

Truth is the copy function only seems to work every other time after the first time.

You can copy some text, paste it, copy some more, and when you paste it will be the first text again. Go back copy new text again, paste it and it is the new text, repeat... In some desktop environments it pastes nothing at all instead of a duplicate. I am guessing this is because some DE's empty the clipboard after a paste instead of holding until overwritten?

Pressing Ctrl+C twice every time will allow pasting of the text. It's the copy function that's not working.

I am fuzzy about why it does not effect everything. But in my case I noticed this issue while trying to copy text from a PDF in Master PDF Editor and also Foxit Reader and paste to anything else. Text editor, browser, Libre Calc, etc.

I tested from the Ubuntu Budgie 2020-03-02 Daily build of 20.04 and the issue is still present.

I also think it is worth mentioning that I tested from Ubuntu Mate 19.10 and the problem isn't present.

I hope that helps.

Revision history for this message
Andrzej Mendel-Nykorowycz (kelner) wrote :

Are there plans to backport the fix to 19.10, seeing as 20.04 has already received the fix?

Revision history for this message
Ljiljan Veselinovic (ljiljan-veselinovic) wrote :

The bug is stil present in Ubuntu 20.04 Development Branch, with mutter version 3.35.91-1ubuntu1. The copy function in WPS office works every second time.

Revision history for this message
grn (gaurangarora) wrote :

No fixes yet!

Revision history for this message
Willem Pieterson (wpieterson) wrote :

I have mutter (3.35.91-1ubuntu1) installed and the bug is still there (on 20.04 development branch) in both WPS and LibreOffice.

Revision history for this message
Jose-Gadelha (gadas) wrote :

As pointed out this bug is still present on ubuntu 20.04 (mutter 3.35.91-1ubuntu1). It happens more rarely in LibreOffice but quite often in the WPS office.

Revision history for this message
Stefan Frings (stefan874224) wrote :

I have the same issue since upgrading to Ubuntu 19.10. SQLYog (with Wine and X11) became almost unusable. Only 1 of 10 attempts work.

For the moment, I use Heidi SQL (with Wine) where only 50% fail.

Simply pressing Ctrl-C repeatedly does not work for me because When I press Ctrl-C multiple times, then both SQLYog and HeidiSQL sometimes freeze for a minute, sometimes they freeze until I kill them hardly.

I cannot switch to Wayland because then the screen sharing function of Skype would not work, which I also need every day.

I hope that this will be fixed in the next LTS release.

Revision history for this message
AJenbo (ajenbo) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04

This is still broken in 20.04 mutter 3.36.0

summary: - [X11] copy/paste (clipboard) is broken in Ubuntu 19.10
+ [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04
AJenbo (ajenbo)
tags: removed: fixed-in-3.35.90 fixed-upstream
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in codelite (Ubuntu Eoan):
status: New → Confirmed
Changed in codelite (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Eike Rathke (erack) wrote :

*** Bug 131631 has been marked as a duplicate of this bug. ***

Revision history for this message
In , timur (ba.timur) wrote :

(In reply to Timur from comment #9)
> This bug is marked All and reproduced also on Windows.

Shall we open a separate bug for Windows?

Revision history for this message
In , Eike Rathke (erack) wrote :

Does it even occur on Windows? If so, that would be a different cause (though highly likely some clipboard destroyer (AKA "manager") involved then as well).
I'm marking this as not-All., i.e. Linux.

Revision history for this message
In , ethanay (ethan-y-us) wrote : Re: [Bug 1852183]

This bug occurs in Pop!_OS 19.10 for me with or without a clipboard manager
installed.

In addition, when I do have a clipboard manager installed, it occurs BEFORE
any clipboard manager i tried receives any information about what I tried
to copy or paste, so seems inaccurate to me that blaming a clipboard
manager will get to the root issue.

Ethan

On Mon, Mar 30, 2020, 07:10 Eike Rathke <email address hidden> wrote:

> Does it even occur on Windows? If so, that would be a different cause
> (though highly likely some clipboard destroyer (AKA "manager") involved
> then as well).
> I'm marking this as not-All., i.e. Linux.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04
>
> Status in LibreOffice:
> Confirmed
> Status in Mutter:
> Fix Released
> Status in codelite package in Ubuntu:
> Confirmed
> Status in libreoffice package in Ubuntu:
> Triaged
> Status in mutter package in Ubuntu:
> Fix Released
> Status in codelite source package in Eoan:
> Confirmed
> Status in libreoffice source package in Eoan:
> Triaged
> Status in mutter source package in Eoan:
> Triaged
> Status in codelite source package in Focal:
> Confirmed
> Status in libreoffice source package in Focal:
> Triaged
> Status in mutter source package in Focal:
> Fix Released
>
> Bug description:
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
In , Jna3427 (jna3427) wrote :

(In reply to Eike Rathke from comment #19)
> Does it even occur on Windows? If so, that would be a different cause
> (though highly likely some clipboard destroyer (AKA "manager") involved then
> as well).
> I'm marking this as not-All., i.e. Linux.

It seems to happen occasionally with my web browsers and Text Editor, but very rarely so I can't be sure it's not tied up with LibreOffice. (Using Ubuntu 19.10.)

Revision history for this message
In , timur (ba.timur) wrote :

(In reply to Eike Rathke from comment #19)
> Does it even occur on Windows?
I see now that all reports are Linux. I wrote that I reproduced once also on Windows, but I cannot repeat now. So fine to stay marked Linux.

Revision history for this message
Benoit Tainturier (b-tainturier) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04

Fun fact: today, after many hours of failed copy/paste with Ubuntu 19.10, things have changed. Copy/paste works perfectly well in LibreOffice and any other software. But if I copy a text in a software and paste it in another software, the text pasted is *different*.
For example, I can copy "word1" in Firefox and then paste "word1" in LibreOffice (it works). Then I copy "word2" in LibreOffice and paste "word2" in LibreOffice (it works). Then I paste "word1" in Firefox (it's weird!). At this point, I paste "word2" in LibreOffice and "word1" in Firefox.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes, X11 and GNOME have two separate clipboards. This has been true for as long as I remember (though not saying it's a good thing)...

To paste from the X11 one use your middle mouse button. To paste from the GNOME one use Ctrl+V or a right-click context menu.

Revision history for this message
Dusty (dustyt) wrote :

Interesting you should bring that up so I played around with middle click, right click and Ctrl+V

Although it can produce different paste results, it's not the issue I am having I don't think.

The issue is that it's taking more than one copy function to actually copy to the clipboard to have something new to paste from some applications. Whichever clipboard that is.

For example I can copy from Firefox and paste to a text editor. I can go copy text from Master PDF Editor by Ctrl+C twice. Ctrl+V or right click pastes the text from Master PDF Editor. Middle mouse click pastes text from Firefox still. I can copy new text in Master PDF Editor by Ctrl+C twice and paste the new text. Middle click continues to paste the text from Firefox until I copy some new text in firefox.

The middle click one seems to work just fine to paste from firefox. One copy one paste. It may work OK in other applications too I don't know. But it apparently doesn't work at all in some others like Master PDF Editor, while two Ctrl+C's does work in these other applications.

I'm dumb about this. I guess the X11 one works fine if it works at all in the application you are copying from? And the other one does not work reliably without doing Ctrl+C twice in some applications you are copying from.

I don't know. But it is certainly going to be April in a few minutes.

Revision history for this message
Benoit Tainturier (b-tainturier) wrote :

I didn't know that X11 and Gnome had two separate clipboards. In my previous example, I only used my keyboard.
I rebooted my computer this morning and copy/paste fail as usual with my keyboard. However, I tried the middle click of my mouse and it works (at least in LibreOffice). So this bug is not from X11.

Revision history for this message
el.poulpo (elpoulpoo) wrote :

Also affected: must really often copy twice to achieve the expected result (between, firefox / libreoffice / chromium / terminal) with ctrl-c + ctrcl+v. and then right click
I've also noticed the sometimes different paste result (from one or another clipboard)

bug since 19.10 and migrated yesterday to 20.04 ->the bug is still there
tested with X11 and wayland, no change noticed

Revision history for this message
Yoannjap (y-jolly) wrote :

Hey,

I had exactly the same problem as described above. Frankly, I tried everything.
Finally the solution was in removing GSConnect gnome extension.

Yoannjap

Revision history for this message
Willem Pieterson (wpieterson) wrote :

RE: Yoannjap

On my machine this is independent from the GSConnect extension. I did not have it installed and installing/removing makes no difference. Bug is there and is so consistently.

Revision history for this message
Jose-Gadelha (gadas) wrote :

After recent updates, Ubuntu 20.04 has some consistency in the copy&paste failure
on both WPS office and codeblocks softwares.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in codeblocks (Ubuntu Eoan):
status: New → Confirmed
Changed in codeblocks (Ubuntu):
status: New → Confirmed
Revision history for this message
forevertheuni (forevertheuni) wrote :

Same applies for me. I assumed it was WPS office. But I noticed other programs have it as well.

Revision history for this message
Lhuillier (xavlhuillier) wrote :

Same for me. Double copy is necessary, random but frequent under Libre Office.
Same for cut of course, although the cut is effectively made, but the content is not present in the clipboard (or whatsoever).

Libre office 6.4.2.2 / Ubuntu 19.10.1 / Gnome Shell 3.34.3 / DELL Latitude E7440

Revision history for this message
crisfercf (crisfercf) wrote :

Same annoying bug here, on ubuntu 19.10 64 bit.
Gnome 3.34.2.
Very frequently on libreoffice, but sometimes on other programs too.

Revision history for this message
Michael Wögerbauer (michael-woegerbauer) wrote :

For a long time, I have had the same bug here. Most of the time, the copied text appeared in gnome clipboard-indicator, but I had to click it once more there in order to be able to Ctrl-V it (or paste it by mouse/dropdown menu).
After reading the discussion here, I followed @Yoannjap (y-jolly)'s method, ie. uninstalled GSConnect, and - it seems that this worked (at least for copying froma Java app and terminal to LibreOffice and Firefox - but there is still a problem eg. with copying from Firefox to Firefox via Ctrl-C → Ctrl-V, while copying via dropdown menu and pasting via dropdown OR Ctrl-V works)...

Dell XPS15 (9650) | Gnome 3.34.2 | Wayland | Ubuntu 19.10.1 | no snap packages

Revision history for this message
Davide (tarski10) wrote :
Revision history for this message
Davide (tarski10) wrote :
Revision history for this message
Davide (tarski10) wrote :
Revision history for this message
erio (eri0) wrote :

I am on a Ubuntu 20.04 with mutter 3.36.1 and this bug still affects me.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks like it was fixed as https://gitlab.gnome.org/GNOME/mutter/-/issues/1113 in https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1206

That fix is in mutter 3.36.2 (which is not in Ubuntu yet).

Changed in mutter (Ubuntu Focal):
status: Fix Released → Fix Committed
no longer affects: libreoffice (Ubuntu)
no longer affects: libreoffice (Ubuntu Eoan)
no longer affects: libreoffice (Ubuntu Focal)
no longer affects: codelite (Ubuntu)
no longer affects: codelite (Ubuntu Eoan)
no longer affects: codelite (Ubuntu Focal)
no longer affects: codeblocks (Ubuntu)
no longer affects: codeblocks (Ubuntu Eoan)
no longer affects: codeblocks (Ubuntu Focal)
Changed in mutter:
status: Fix Released → Unknown
tags: added: fixed-in-3.36.2 fixed-upstream
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

In case anyone lands on the wrong bug, as often happens, please see also bug 1872527.

Revision history for this message
Jose-Gadelha (gadas) wrote :

Great Daniel! Thank you for keeping us updated and thanks to all developers by their valuable bug-fixing work. I look forward to upgrade my production machine to ubuntu 20.04 🙌.

Revision history for this message
franck (alcidi) wrote :

I'm using ubuntu gnomeshell 20.04, and libreoffice everyday during several hours a day.
No way to copy/paste without problem.
Especially in writer using the math module.

It seems the ubuntu mate doesn't reproduce the problem.

Revision history for this message
franck (alcidi) wrote :

If you have got this problem : in ubuntu session connexion clic on the logo down the screen and choose wayland.
If you use nvidia graphic card , you won't have wayland choice :( except if you install ubuntu without the option proprietary software.

Revision history for this message
erio (eri0) wrote :

I am using it with cinnamon desktop until this gets fixed - I unfortunately use a Nvidia graphics card.

Revision history for this message
In , JBF (jbf-faure) wrote :

If the root cause of this bug is Mutter, why not closing this one as NotOurBug ?

Best regards. JBF

Revision history for this message
In , JBF (jbf-faure) wrote :

*** Bug 132213 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Eike Rathke (erack) wrote :

Indeed, NOTOURBUG.

Changed in df-libreoffice:
status: Confirmed → Won't Fix
Revision history for this message
In , Larrywbradley (larrywbradley) wrote :

(In reply to Eike Rathke from comment #24)
> Indeed, NOTOURBUG.

Interesting attitude. If you buy a Toyota and the engine goes bad, do you expect Toyota to say, "Sorry, not our problem, they sold us bad engines." Your name is on the product. The product is broken. As a consumer, I look to you to fix it, not some nefarious mix of different manufacturers (each maker of an OS, in this case). Seems like it would be in the best interest of the Document Foundation to at least work with Linux, Windows and Mac developers to find an overarching solution, or separate solutions, for this problem. You simply cannot have a viable product by taking a flyer on these kinds of issues, essentially saying "tough luck, it's not our problem" to the end user. Again, it's your name on the product, and the end user could care less what environment he is in, all he knows that YOUR product is busted. Just my two cents.

Revision history for this message
In , ethanay (ethan-y-us) wrote : Re: [Bug 1852183]
Download full text (3.4 KiB)

But you are not a consumer, and this is free (libre) open-source software,
not something you bought. It is something you participate in. "Won't fix"
doesn't necessarily mean that they aren't going to participate in or assist
a solution, it means that the ultimate responsibility lies with the
upstream maintainer of the package.

In your analogy, toyota would pass the info (and offer support to) the
company that makes the defective part. Either that company comes through or
they end up needimg to select a different part (or package) from a
different company. It is a process that requires patience and good faith
coordination.

There are good reasons for this. Not just to avoid duplication of effort,
but also to avoid unnecessarily creating confusion, fragmentation, new
problems or even messing up the upstream efforts to solve the issue.

So from a fellow FLOSS end user (who unfortunately has few skills to offer
except bug reporting), I feel that your attitude is far more interesting to
examen.

Toward an open source world,

Ethan

On Mon, Apr 27, 2020, 17:20 Larrywbradley <email address hidden>
wrote:

> (In reply to Eike Rathke from comment #24)
> > Indeed, NOTOURBUG.
>
> Interesting attitude. If you buy a Toyota and the engine goes bad, do
> you expect Toyota to say, "Sorry, not our problem, they sold us bad
> engines." Your name is on the product. The product is broken. As a
> consumer, I look to you to fix it, not some nefarious mix of different
> manufacturers (each maker of an OS, in this case). Seems like it would
> be in the best interest of the Document Foundation to at least work with
> Linux, Windows and Mac developers to find an overarching solution, or
> separate solutions, for this problem. You simply cannot have a viable
> product by taking a flyer on these kinds of issues, essentially saying
> "tough luck, it's not our problem" to the end user. Again, it's your
> name on the product, and the end user could care less what environment
> he is in, all he knows that YOUR product is busted. Just my two cents.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Committed
> Status in mutter source package in Eoan:
> Triaged
> Status in mutter source package in Focal:
> Fix Committed
>
> Bug description:
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which ...

Read more...

Revision history for this message
In , Adolfo Jayme Barrientos (fitojb) wrote :

@Larry, no, that’s not how we roll in open source. Our communities identify problems in each other’s software all the time by forwarding bugs. In this case the problem was addressed in Mutter five months ago: https://gitlab.gnome.org/GNOME/mutter/-/commit/2fbbf657d51f14bdcb75c045637e6ebf4df10063

So the “NOTOURBUG” resolution is correct here.

Revision history for this message
mrjaika (mrjaika2) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04

Hey guys!
Just pls check WPS office, it is affected with this bug, copy/past sometime error, i press Ctrl+C but it not go in to clipboard. When i press ctrl+v, previous of it is pasted instead of what i want copy and past!! i try use librel office but same issue, pls fix it, i working all day with wps/librel.
Thank you!!

Revision history for this message
Jose-Gadelha (gadas) wrote :

This copy & paste issue on WPS and LibreOffice seems was fixed on X11, but only in mutter 3.36.2 (which is not in Ubuntu 20.04 yet). Please, see #93 and https://gitlab.gnome.org/GNOME/mutter/-/issues/1113.

Revision history for this message
In , Tom1williams (tom1williams) wrote :

I opened a bug report that was closed as a duplicate of this bug, so I think that this bug is the right place for me to post my comment now. I just want to point out that this problem still exists under Ubuntu 20.04 and Libre Office 6.4.2.2. Ubuntu 20.04 went into production status a few days ago and I did a clean install of it on my system. I use it exactly as it shipped with no customization of any kind. But my situation is worse now because the login screen no longer offers me an "Ubuntu on Wayland" session which was the work around for this bug.

Revision history for this message
tellapu (tellapu) wrote :

Hopefully mutter 3.36.2 will be backported to Ubuntu 20.04 soon!

Revision history for this message
In , JBF (jbf-faure) wrote :

@Larry, Mutter is not part of LibreOffice, it is part of your distribution.
There is a bug report against Mutter on Ubuntu bug tracker :
https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1852183
As reported there, this bug does not only impact LibreOffice. As read in the launchpad bug report, the Mutter bug seems fixed in its 3.36.2 version.

Best regards. JBF

Revision history for this message
In , Eike Rathke (erack) wrote :

(In reply to larrybradley from comment #25)
> Interesting attitude. If you buy a Toyota and the engine goes bad, do you
> expect Toyota to say, "Sorry, not our problem, they sold us bad engines."
Interesting approach. I hate car allegories, but the broken part is not even part of the car. So if the bridge you want to ride over is broken you go to the car manufacturer and tell him to make your car fly.

> Your name is on the product. The product is broken.
No, the clipboard manager of the compositor of your window manager of your operating system is broken. That's why there is the Mutter bug linked and this bug here is flagged as notourbug.

Additional findings from the linked Mutter bug are that the problem seems to be (also) related to the Clipboard Indicator GNOME Shell Extension, see already comment 7 here, so you may want to remove that.

Revision history for this message
J. B. Rainsberger (jbrains) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04

For the benefit of bystanders who might be using the Clipboard Indicator extension to Gnome, I've switched to CopyQ and been quite happy with the results. I'll know more in the next 2-3 weeks whether this problem persists in my environment when I complete my next expense report.

In the meantime, thanks to everyone involved in trying to diagnose and fix this problem. I share many people's frustrations about not getting a version of Mutter that seems to work, especially since it seems beyond me to try to upgrade Mutter independently of the rest of the operating system in order to evaluate the results. Coupling! :shrug:

Revision history for this message
ethanay (ethan-y-us) wrote : Re: [Bug 1852183] Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04

Copy Q does nothing to fix the issue for me. It exists with or without any
clipboard manager or extension on my Pop!_OS 19.10 install.

Fortunately for my workflow I do as much work as possible in programs not
affected by the bug such as gedit and zim and I believe focuswriter.

Much thanks to the people working to squash this bug! And apologies to real
life bugs for the violent analogy!

On Tue, Apr 28, 2020, 12:35 J. B. Rainsberger <email address hidden>
wrote:

> For the benefit of bystanders who might be using the Clipboard Indicator
> extension to Gnome, I've switched to CopyQ and been quite happy with the
> results. I'll know more in the next 2-3 weeks whether this problem
> persists in my environment when I complete my next expense report.
>
> In the meantime, thanks to everyone involved in trying to diagnose and
> fix this problem. I share many people's frustrations about not getting a
> version of Mutter that seems to work, especially since it seems beyond
> me to try to upgrade Mutter independently of the rest of the operating
> system in order to evaluate the results. Coupling! :shrug:
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Committed
> Status in mutter source package in Eoan:
> Triaged
> Status in mutter source package in Focal:
> Fix Committed
>
> Bug description:
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
In , ethanay (ethan-y-us) wrote : Re: [Bug 1852183]

the bug persists on my system with or without any clipboard manager or
extension installed. And others have reported the behavior in default
installs. so I feel a bit skeptical that a clipboard manager or extension
is implicated.

On Tue, Apr 28, 2020, 09:46 Eike Rathke <email address hidden> wrote:

> (In reply to larrybradley from comment #25)
> > Interesting attitude. If you buy a Toyota and the engine goes bad, do you
> > expect Toyota to say, "Sorry, not our problem, they sold us bad engines."
> Interesting approach. I hate car allegories, but the broken part is not
> even part of the car. So if the bridge you want to ride over is broken you
> go to the car manufacturer and tell him to make your car fly.
>
> > Your name is on the product. The product is broken.
> No, the clipboard manager of the compositor of your window manager of your
> operating system is broken. That's why there is the Mutter bug linked and
> this bug here is flagged as notourbug.
>
> Additional findings from the linked Mutter bug are that the problem
> seems to be (also) related to the Clipboard Indicator GNOME Shell
> Extension, see already comment 7 here, so you may want to remove that.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Committed
> Status in mutter source package in Eoan:
> Triaged
> Status in mutter source package in Focal:
> Fix Committed
>
> Bug description:
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
Andrew (hillsie) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04

Bug impacts cntl-c and and cntrl-v between txt documents and the terminal. It's intermittent as I can copy sometime. There is the strange effect if I am in the terminal and copy from the browser. Occasionally it copies text to the window I am not on. I'm surprised its not effecting more people. Really impact my productivity.

Revision history for this message
Andrew (hillsie) wrote :

Looking forward to this one being deployed. Really love my Ubuntu and 20.40

Revision history for this message
Andrew (hillsie) wrote :

I think it has a bigger impact. I have noticed that while trying to log in, some keys don't work. Is this restricted to only the cntr-c and cntrl-v? Strange behaviour when some keys don't seem to register.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Andrew,

Please wait until the fix for this bug is released. Then if you still have trouble after that open a new bug by running:

  ubuntu-bug mutter

Revision history for this message
Alexis Dinno (lexicat) wrote :

I had the on Ubuntu 19.10 (and have it still on Ubuntu 20.04). I agree that I see it more frequently in LibreOffice Writer, but I see it elsewhere. Unstable clipboard behavior is unhappy making.

Revision history for this message
jkelol111 [Nam] (jkelol111) wrote :

I see this happening very frequently with screenshots...they seem to get lost.

E.g: I use Ctrl+Prt Sc to get a screenshot of my entire display into my clipboard, and moments later I cannot paste it into Discord because somehow it got 'lost'. It takes several tries before the screenshot can finally be pasted into Discord.

Also, one other thing I have noticed is that while taking the screenshot, if I can hear the screenshot 'click' sound, it will almost certainly fail, whereas if I don't hear the 'click' sound, it copies it successfully into the clipboard.

I have seen this happening on Ubuntu 19.10 and 20.04 (currently on 20.04, seems worse than on 19.10)

Revision history for this message
erio (eri0) wrote :

I think I have a different bug with screenshot, they work, but I get the blue selection (when selecting a area for the screenshot) as part of the generated image.

Revision history for this message
Arvind Prasad (arvindprasad) wrote :

I have upgraded from ubuntu 19.10 to 20.04. I would like to report in both of these versions there is a problem with the copy-paste command. When we copy it does not paste. We have to redo this to paste it. Sometimes it pastes the previous item that has been copied. This is all across the programs used. It is not specific to any one program use. Also I confirm that this is a problem with Ubuntu OS as libre office when used in windows does not face this issue.

Davide (tarski10)
summary: - [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04
+ [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see
+ comment 93)
Davide (tarski10)
tags: added: fixed-in-3.34.6
Revision history for this message
Andrew (agreig-d) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see comment 93)

This copy/paste is also an Ubuntu 20.04 bug in wine 4 and 5 running Lotus Approach

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mutter - 3.36.2-1ubuntu1

---------------
mutter (3.36.2-1ubuntu1) groovy; urgency=medium

  * Merge with debian, including new upstream release:
    - Fix super key not working with secondary layout (LP: #1871913)
  * xrandr-scaling: Fix compiler warnings (LP: #1875608)
  * xrandr-scaling: Take care of global UI scale when restoring from config
    (LP: #1825593)
  * Remaining changes with debian:
    - debian/control:
      + Update VCS flags to point to ubuntu salsa branch
    - debian/gbp.conf: update branch to point to ubuntu/master
    - debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
      + X11: Add support for fractional scaling using Randr

mutter (3.36.2-1) unstable; urgency=medium

  * Team upload

  [ Simon McVittie ]
  * New upstream stable release
    - Fix FTBFS with Wayland disabled (non-Linux kernels)
    - X11 copy/paste/selection fixes (LP: #1852183)
    - Fix freeze with some DisplayLink devices
    - Fix a memory leak
    - Synchronize shadows to server-side decorations
    - Fix overview key on X11 when using multiple keyboard layouts
    - Fix painting the redraw clip with the damage region
    - Fix capturing with multiple stage views
    - Fix screencasting of non-maximized windows (LP: #1873942)
    - Various misc fixes and cleanups (LP: #1874818)
    - Update translation: de

  [ Marco Trevisan (Treviño) ]
  * debian/libmutter-6-0.symbols: Update
  * debian/rules: Ignore build failures on riscv64

mutter (3.36.1+git20200419-1) unstable; urgency=medium

  * Team upload

  [ Simon McVittie ]
  * New upstream snapshot from gnome-3-36 branch (3.36.1-42-gda9eb4718)
    - Fix trackball button scrolling
    - Fix tiled (MST) displays
    - Copy/paste fixes, particularly for large images and incremental
      transfers
    - Fall back to closed laptop lid configuration if no other available
      (LP: #1793496)

  [ Jeremy Bicha ]
  * Drop obsolete dh_strip dbgsym migration rule
  * Bump debhelper-compat to 13
    - dh_missing --fail-missing is the default
    - dh_auto_test has several default improvements
    - dh_autoreconf isn't needed with meson
  * debian/watch: Only watch for stable releases

mutter (3.36.1-4) unstable; urgency=medium

  * Team upload
  * Merge changelog from unstable
  * Upload to unstable (starts transition: #954422)
  * Update to upstream gnome-3-36 branch, commit 3.36.1-17-g9a2471db4
    - Fix caps-lock state becoming confused on VT switch
  * d/gbp.conf: Follow upstream/3.36.x branch

 -- Marco Trevisan (Treviño) <email address hidden> Thu, 07 May 2020 02:43:19 +0200

Changed in mutter (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
w (lwk32) wrote :

Thanks! Hope to see the fix in Ubuntu Focal soon!

Revision history for this message
tellapu (tellapu) wrote :

Great! Thank you very much!

description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Adam, or anyone else affected,

Accepted mutter into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/mutter/3.36.2-1ubuntu1~20.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-focal
Revision history for this message
Davide (tarski10) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see comment 93)

Ubuntu 20.04 LTS, focal proposed enabled, all package upgraded,
gir1.2-mutter-6 3.36.2-1ubuntu1~20.04.1
libmutter-6-0 3.36.2-1ubuntu1~20.04.1
mutter 3.36.2-1ubuntu1~20.04.1
mutter-common 3.36.2-1ubuntu1~20.04.1
libreoffice 6.4.3-0ubuntu0.20.04.1

Tested libreoffice calc on two different machines,
unfortunately for me the bug is still present:
I have to repeat the copy action twice to make sure it succeeds.

Same problem also with Gorilla Groovy (tested on a virtual machine).

tags: added: verification-failed-focal
removed: verification-needed-focal
Revision history for this message
Mohammad Ali Toufighi (alitou) wrote :

After upgrading to proposed packages, I can also confirm that unfortunately the bug is still present. But its effects are much less than previous.
I copied an image from Telegram and I was unable to paste it in Firefox (in a textbox where I could paste to it usually). However, I could paste it in Telegram itself and also LibreOffice. This also applies to texts.
Also copying from Firefox and pasting into anywhere (including Firefox itself) didn't work. Even copying multiple times doesn't make any effect.

P.S.: This problem doesn't happen always, but usually.
P.S. 2: It seems to me to be a problem with Firefox or whatever it uses.

firefox 75.0+build3-0ubuntu1
libreoffice-writer 1:6.4.2-0ubuntu3
gir1.2-mutter-6 3.36.2-1ubuntu1~20.04.1
mutter-common 3.36.2-1ubuntu1~20.04.1
mutter 3.36.2-1ubuntu1~20.04.1
libmutter-6-0 3.36.2-1ubuntu1~20.04.1

Running Ubuntu 20.04 Focal (Linux 5.4.0-26-generic #30-Ubuntu SMP Mon Apr 20 16:58:30 UTC 2020) on a x86_64 hardware.

Revision history for this message
Manfred Steiner (manfred-steiner) wrote :

Since 10 days the same effect (copy/paste broken) is visible in Ubuntu 18.04, also outside from Libre Office. Copy to clipboard is shown in Libreoffice (blinking border arround copied cells visible), but paste does not work. Is this the same bug or is there any other bug known for this effect.

Revision history for this message
Mohammad Ali Toufighi (alitou) wrote :

Regarding my previous comment, it seems I must've restarted the process before the upgrade taking effects. After restarting Firefox, I can copy-paste from and into it.

For me, the upgrade seems to have solved the issue!

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Davide, everyone, please don't use a VM to test this bug. You risk hitting bug 1872527 instead.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I think we need more votes on this, and particularly the opinion of the original reporter: Adam Dingle.

If it's solved for enough people we can close it. Then those still experiencing issues can open new bugs.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Hi Daniel - I'm the one who first reported this Launchpad bug back in November. :) I'm very happy to see that there is a proposed fix, since I (like many others) have continued to experience this bug on a daily basis for many months now. I appreciate your asking my opinion, though it certainly should not be the only one that counts here.

I am running Focal (20.04) and I just installed the proposed 3.36.2-1ubuntu1~20.04.1 package. I'll need to run with it for a day or two before I'll have an opinion about whether the fix is adequate. Keep fingers crossed. :)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

When bugs become oversubscribed like this one (86 people!) it becomes increasingly difficult to satisfy everyone at the same time. So the most pragmatic way to handle it in my experience is to rely on the vote of the original reporter.

Then if the bug gets closed and some people still have issues we can separate their duplicate bugs, making those bugs open again.

Revision history for this message
Davide (tarski10) wrote :

I was rushed sorry (comment #127). For me the problem occurs systematically only using the copy command from the context menu (right click), otherwise at the moment I was unable to reproduce it. This is probably another bug. I did the tests on two real machines.

tags: added: verification-needed-focal
removed: verification-failed-focal
Revision history for this message
Guillem Solivellas (garriguer) wrote : Re: [Bug 1852183] Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see comment 93)

I can tell you it's not. When using the cut-and-paste feature from
LibreOffice 8not first time..., the second and next...) you need to do the
copy action twice to get your string stored.

<email address hidden>

Missatge de Adam Dingle <email address hidden> del dia dv., 15 de maig 2020 a
les 6:26:

> Hi Daniel - I'm the one who first reported this Launchpad bug back in
> November. :) I'm very happy to see that there is a proposed fix, since
> I (like many others) have continued to experience this bug on a daily
> basis for many months now. I appreciate your asking my opinion, though
> it certainly should not be the only one that counts here.
>
> I am running Focal (20.04) and I just installed the proposed
> 3.36.2-1ubuntu1~20.04.1 package. I'll need to run with it for a day or
> two before I'll have an opinion about whether the fix is adequate. Keep
> fingers crossed. :)
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1876445).
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see
> comment 93)
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Released
> Status in mutter source package in Eoan:
> Triaged
> Status in mutter source package in Focal:
> Fix Committed
> Status in mutter source package in Groovy:
> Fix Released
>
> Bug description:
> [ Impact ]
>
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> [ Test case ]
>
> 1. Use use libreoffice writer/calc
> 2. Copy text around
> 3. Paste it and ensure it always work
>
> [ Regression potential ]
>
> Copy/paste won't work as expected, for non-text types
>
> -----
>
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
Heikki Moisander (moisander) wrote :
Download full text (4.9 KiB)

I updated proposed mutter 3.36.2 and tried Libreoffice Calc sheet copy -
paste, cut - paste in pretty much same way with the same pc I did at the
time I reported the bug - only few times more.
I did not run into error. I don't have any need for extensive copy - paste
activity any time soon, so will not get any additional testing done.

On Fri, 15 May 2020 at 16:25, Guillem Solivellas <email address hidden>
wrote:

> I can tell you it's not. When using the cut-and-paste feature from
> LibreOffice 8not first time..., the second and next...) you need to do the
> copy action twice to get your string stored.
>
>
> <email address hidden>
>
>
> Missatge de Adam Dingle <email address hidden> del dia dv., 15 de maig 2020 a
> les 6:26:
>
> > Hi Daniel - I'm the one who first reported this Launchpad bug back in
> > November. :) I'm very happy to see that there is a proposed fix, since
> > I (like many others) have continued to experience this bug on a daily
> > basis for many months now. I appreciate your asking my opinion, though
> > it certainly should not be the only one that counts here.
> >
> > I am running Focal (20.04) and I just installed the proposed
> > 3.36.2-1ubuntu1~20.04.1 package. I'll need to run with it for a day or
> > two before I'll have an opinion about whether the fix is adequate. Keep
> > fingers crossed. :)
> >
> > --
> > You received this bug notification because you are subscribed to a
> > duplicate bug report (1876445).
> > https://bugs.launchpad.net/bugs/1852183
> >
> > Title:
> > [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see
> > comment 93)
> >
> > Status in LibreOffice:
> > Won't Fix
> > Status in Mutter:
> > Unknown
> > Status in mutter package in Ubuntu:
> > Fix Released
> > Status in mutter source package in Eoan:
> > Triaged
> > Status in mutter source package in Focal:
> > Fix Committed
> > Status in mutter source package in Groovy:
> > Fix Released
> >
> > Bug description:
> > [ Impact ]
> >
> > I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
> >
> > In this environment, copy/cut/paste often fails. Specifically, the
> > paste command sometimes does not paste the text that was cut/copied
> > most recently. Instead, it pastes text that was cut/copied at some
> > prior time.
> >
> > [ Test case ]
> >
> > 1. Use use libreoffice writer/calc
> > 2. Copy text around
> > 3. Paste it and ensure it always work
> >
> > [ Regression potential ]
> >
> > Copy/paste won't work as expected, for non-text types
> >
> > -----
> >
> >
> > I use LibreOffice Writer a lot, and I now see this problem very often,
> > i.e. many times every day.
> >
> > There is some discussion of the problem here:
> >
> > https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> > libreoffice-calc/
> >
> > Several posters there say that they are also using Ubuntu 19.10.
> >
> > Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
> >
> > https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> > -Clipboard-Manager
> >
> > It seems like that could be related.
> >
> > To manage notifications about this bug go to:
> > https://bugs.la...

Read more...

Revision history for this message
erio (eri0) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see comment 93)

can someone explain how to set proposed and update just this package AND how to rollback? After enabling proposed I get `78 packages can be upgraded`. The rollback part is important for me since this is my work environment and this bug can't be tested in a VM because of bug 1872527.

Revision history for this message
Mohammad Ali Toufighi (alitou) wrote :

You can upgrade only related packages (Taken from https://launchpad.net/ubuntu/+source/mutter/3.36.2-1ubuntu1~20.04.1):

mutter
mutter-common
libmutter-6-0
gir1.2-mutter-6

To rollback, remove proposed packages from your sources.list. Then, run apt-update and install them.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

To roll back:

  sudo apt install --reinstall PACKAGENAME1/focal PACKAGENAME2/focal ...

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Once again I am the original reporter - Daniel recently asked for my opinion about whether this bug has been fixed.

I have now been running with the proposed 3.36.2-1ubuntu1~20.04.1 package for three days, during which I have done a fair amount of editing with copying and pasting. During that time I saw this copy/paste bug occur twice: once on 5/16 when I couldn't copy and paste from Epiphany (a web browser) to gedit, and once on 5/17 when I couldn't copy and paste from a LibreOffice Writer window into another LibreOffice Writer window.

My opinion is that the proposed fix is a definite improvement, because I am sure that without it I would have seen more copy/paste failures these last few days. However I believe that the bug is still not completely fixed.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yeah even if this is a partial fix, it sounds like an improvement.

Let's try to release this fix and then the first person still having problems after it's released can open a new bug by running:

  ubuntu-bug mutter

But please don't do that yet. We want to be sure about which version gets promoted from 'proposed' to 'updates' first.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

And once again a reminder:

If you are using a virtual machine you may also need to wait for bug 1872527 to be fixed in focal.

Revision history for this message
Heikki Moisander (moisander) wrote : Re: [Bug 1852183] Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see comment 93)

If there is a possibility that copy-paste will result to an error, whole
distro is useless for serious production use.
It is really sad, testing this kind of bug is so uncertain and difficult.
In my opinion programmer should be able to guarantee that such error can
not take place. Otherwise there are something fundamentally wrong in
design.

Sorry, I am a big fan of Ubuntu and would like to see open source success
in office environment, but this bug seems a show stopper for me if
community is incapable of fixing it 100%.

On Mon, 18 May 2020 at 07:05, Adam Dingle <email address hidden> wrote:

> Once again I am the original reporter - Daniel recently asked for my
> opinion about whether this bug has been fixed.
>
> I have now been running with the proposed 3.36.2-1ubuntu1~20.04.1
> package for three days, during which I have done a fair amount of
> editing with copying and pasting. During that time I saw this
> copy/paste bug occur twice: once on 5/16 when I couldn't copy and paste
> from Epiphany (a web browser) to gedit, and once on 5/17 when I couldn't
> copy and paste from a LibreOffice Writer window into another LibreOffice
> Writer window.
>
> My opinion is that the proposed fix is a definite improvement, because I
> am sure that without it I would have seen more copy/paste failures these
> last few days. However I believe that the bug is still not completely
> fixed.
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1873686).
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see
> comment 93)
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Released
> Status in mutter source package in Eoan:
> Triaged
> Status in mutter source package in Focal:
> Fix Committed
> Status in mutter source package in Groovy:
> Fix Released
>
> Bug description:
> [ Impact ]
>
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> [ Test case ]
>
> 1. Use use libreoffice writer/calc
> 2. Copy text around
> 3. Paste it and ensure it always work
>
> [ Regression potential ]
>
> Copy/paste won't work as expected, for non-text types
>
> -----
>
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see comment 93)

That's not a helpful comment.

Many of us actually have never encountered this bug so to say "whole
distro is useless for serious production use" is grossly inaccurate. And even those who do encounter this bug would not say it makes Ubuntu "useless".

Please only comment if you have productive, useful, information to add. And if you continue to experience any problems please report them by opening a new bug with the command:

  ubuntu-bug mutter

and/or reporting them to the developers at:

  https://gitlab.gnome.org/GNOME/mutter/-/issues

summary: - [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see
- comment 93)
+ [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10
+ & 20.04 (see comment 93)
Revision history for this message
Heikki Moisander (moisander) wrote : Re: [Bug 1852183] Re: [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see comment 93)

It was really meant to be helpful. You should understand this kind of bug
is truly critical. I believe this has not been the case.
I am sorry, I am not able to help in any other way for now and will not
participate in any further discussions or bug reporting.
I wish you all the best.

On Mon, 18 May 2020 at 07:50, Daniel van Vugt <email address hidden>
wrote:

> That's not a helpful comment.
>
> Many of us actually have never encountered this bug so to say "whole
> distro is useless for serious production use" is grossly inaccurate. And
> even those who do encounter this bug would not say it makes Ubuntu
> "useless".
>
> Please only comment if you have productive, useful, information to add.
> And if you continue to experience any problems please report them by
> opening a new bug with the command:
>
> ubuntu-bug mutter
>
> and/or reporting them to the developers at:
>
> https://gitlab.gnome.org/GNOME/mutter/-/issues
>
>
> ** Summary changed:
>
> - [X11] copy/paste (clipboard) is broken in Ubuntu 19.10 & 20.04 (see
> comment 93)
> + [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10
> & 20.04 (see comment 93)
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1873686).
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu
> 19.10 & 20.04 (see comment 93)
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Released
> Status in mutter source package in Eoan:
> Triaged
> Status in mutter source package in Focal:
> Fix Committed
> Status in mutter source package in Groovy:
> Fix Released
>
> Bug description:
> [ Impact ]
>
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> [ Test case ]
>
> 1. Use use libreoffice writer/calc
> 2. Copy text around
> 3. Paste it and ensure it always work
>
> [ Regression potential ]
>
> Copy/paste won't work as expected, for non-text types
>
> -----
>
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
Tim Passingham (tim-8aw3u04umo) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

I have just started having this problem, having updated to 20.04. So far I have only encountered it with libreoffice writer, about 30% of the time I copy/cut and paste (whether by menu or keyboard shortcuts). I do this a lot due to the nature of my writing.

This is the first time since I moved to ubuntu many years ago that I have encountered a bug that causes me to wonder whether to continue with it. It's driving me crazy every hour of every day. To those who are unsure if it is a real problem, there's a video of it happening at https://bugs.documentfoundation.org/show_bug.cgi?id=133029

It has been said that the vanilla build of libreoffice doesn't have this problem, so I'll have to try that. Until my report #1879078 was marked as a duplicate of this bug I had no idea that it was so common in ubuntu. In my view this is really serious.

I my case I am on X11, and the problem affects Libreoffice Version: 6.4.3.2
Build ID: 1:6.4.3-0ubuntu0.20.04.1
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3;
Locale: en-GB (en_GB.UTF-8); UI-Language: en-GB
Calc: threaded

Revision history for this message
Buzea Bogdan (bogdanke8) wrote :

I updated to 20.04 and this bug is very annoying.
It's not what users expect.

Version: 6.4.3.2
Build ID: 1:6.4.3-0ubuntu0.20.04.1
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3;
Locale: ro-RO (ro_RO.UTF-8); UI-Language: en-US
Calc: threaded

I mention that I don't have the same problems with LO installed from .deb packages from official website and not any problem with AppImages.

Also I remember Snap version is better. I am not 100% sure now.

Revision history for this message
Buzea Bogdan (bogdanke8) wrote :

This is my video with bug recently.

Revision history for this message
Tim Passingham (tim-8aw3u04umo) wrote :

I have tested using the vanilla version (debs) of libreoffice and had the same problem as in the ubuntu-specific build. (I also tested on Windows 10 and did not have the problem).

I have failed to replicate the problem with geany on ubuntu.

Revision history for this message
Tim Passingham (tim-8aw3u04umo) wrote :

I would like to try upgrading mutter (proposed) and testing and using it if possible but a mass of other stuff is also said to be required (By synaptic), including kernel. Is that correct?

Revision history for this message
In , timur (ba.timur) wrote :

*** Bug 130012 has been marked as a duplicate of this bug. ***

Revision history for this message
Pablo San Martín (san-wablo) wrote :

On Ubuntu 20.04, I had the issue of copy-paste working every other time, specifically on LibreOffice apps (Writer, Calc and Draw), not in any other apps (Gedit, Firefox, Thunderbird, etc.) or in the GNOME Shell.

However, disabling the Clipboard Indicator extension fixed this for me.

Revision history for this message
In , Carlos Sevcik (carlos-sevcik-s-gmail) wrote :

All reports suggest that the bug occurs under Linux+GNOME, yet all other Linux+GNOME applications do mouse copy/pastes OK.

Revision history for this message
In , Carlos Sevcik (carlos-sevcik-s-gmail) wrote :

Occurs in LO 7.0.0-Alpha too Linux+GNOME

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

Remember you can select 'Ubuntu on Wayland' on the login screen and that will avoid this bug. At least those people not using Nvidia can...

Revision history for this message
Dusty (dustyt) wrote :

I am sorry. I tend to agree with others. A lot of us are endearing folks. And when I say us I mean people already exposed and using a distro. Only a portion of us though, so the rest will get fed up.

99% of new users will encounter this and just can the distro guys. The majority would not even fool with it long enough to realize there's the non-productive work around of pressing ctrl+c twice every time. Most will just see it fails at something really basic and wonder what else it fails at that they don't see yet, or just get frustrated and move on.

A basic function like this being broke should be a huge priority. But from what I am reading here it has carried on into the next LTS version without a fix as well...

Daniel, I don't see an option to select Ubuntu on Wayland on the login screen? I will have to figure that out. I haven't moved to 20.04 yet. Since the bug was still present I didn't get motivated to.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Setting Invalid for Ubuntu 19.10, since the problem right now is in mutter 3.36 and that's not in Ubuntu 19.10. But also 19.10 is just over a month away from reaching end-of-life so I wouldn't bother with that release even if it was affected.

Changed in mutter (Ubuntu Eoan):
status: Triaged → Invalid
no longer affects: mutter (Ubuntu Eoan)
Revision history for this message
Tim Passingham (tim-8aw3u04umo) wrote :

I used 'developer options' to install all the proposed updates last night. I could not find a way to just update the 4 mutter files - it insisted on updating many files including the kernel.

So far, so good. I've done 30 or so cut/copy and paste with no errors so far.

I wouldn't know how to back out of all these updates, so I'm just crossing my fingers. If someone could explain for others how to install only the 4 updates that would help people using more critical systems than mine.

I hope this fix (even if only partial as suggested above) makes it into focal ASAP.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

Tim and others: It is certainly possible to install just this upgraded mutter package without installing all the other pending updates in proposed. See the page

   https://wiki.ubuntu.com/Testing/EnableProposed

Follow the instructions in the section "Selective upgrading from -proposed". That's what I did, since I didn't want to risk destabilizing my system by installing anything I didn't have to.

Revision history for this message
In , Ilmari-lauhakangas (ilmari-lauhakangas) wrote :

*** Bug 133140 has been marked as a duplicate of this bug. ***

Revision history for this message
Tim Passingham (tim-8aw3u04umo) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

Thanks Adam. I've made a note for then next time I need to try this.

Revision history for this message
In , Carlos Sevcik (carlos-sevcik-s-gmail) wrote :

"Workaround: login to a Wayland session instead of X11 (or maybe X-Wayland?) session."

Wayland is not suppoeted by Ubuntu 20.04 LTS. Probably neither in eny Debian based Linux.

Revision history for this message
In , Larrywbradley (larrywbradley) wrote :

In reply to Eike Rathke, Comment 29
Thank you for looking at this issue and for your feedback. I appreciate the work you do and respect your thoughts and opinions.

Revision history for this message
Tim Passingham (tim-8aw3u04umo) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

Just for info, I've never used the 'clipboard indicator extension', so disabling it wasn't an option for me.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

A brief update: I am still running with the proposed mutter package on Ubuntu 20.04, and hae seen this copy/paste problem occur several more times in the last few days. I continue to believe that the new mutter is an improvement, but that the bug has not been fixed completely.

Revision history for this message
ethanay (ethan-y-us) wrote : Re: [Bug 1852183] Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

I am running $ uname -a
Linux pop-os 5.4.0-7626-generic #30~1588169883~20.04~bbe668a-Ubuntu SMP
Wed Apr 29 21:00:02 UTC x86_64 x86_64 x86_64 GNU/Linux

$ apt show mutter
Package: mutter
Version: 3.36.1-3ubuntu3

This is the default install configuration for Pop!_OS. Under this
configuration, the bug is no longer reproduceable in LibreOffice Calc,
but is consistently present in LibreOffice Writer.

I am installing --proposed updates and will reboot and retest.

On Wed, May 20, 2020 at 05:10, Adam Dingle <email address hidden> wrote:
> A brief update: I am still running with the proposed mutter package on
> Ubuntu 20.04, and hae seen this copy/paste problem occur several more
> times in the last few days. I continue to believe that the new mutter
> is an improvement, but that the bug has not been fixed completely.
>
> --
> You received this bug notification because you are subscribed to the
> bug
> report.
> <https://bugs.launchpad.net/bugs/1852183>
>
> Title:
> [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu
> 19.10 & 20.04 (see comment 93)
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Released
> Status in mutter source package in Focal:
> Fix Committed
> Status in mutter source package in Groovy:
> Fix Released
>
> Bug description:
> [ Impact ]
>
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> [ Test case ]
>
> 1. Use use libreoffice writer/calc
> 2. Copy text around
> 3. Paste it and ensure it always work
>
> [ Regression potential ]
>
> Copy/paste won't work as expected, for non-text types
>
> -----
>
>
> I use LibreOffice Writer a lot, and I now see this problem very
> often, i.e. many times every day.
>
> There is some discussion of the problem here:
>
>
> <https://ask.libreoffice.org/en/question/213510/copypaste-issues>-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard
> manager:
>
> <https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34>
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> <https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions>

Revision history for this message
ethanay (ethan-y-us) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

$ uname -a
Linux pop-os 5.4.0-7626-generic #30~1588169883~20.04~bbe668a-Ubuntu SMP Wed Apr 29 21:00:02 UTC x86_64 x86_64 x86_64 GNU/Linux

$ apt show mutter
Package: mutter
Version: 3.36.2-1ubuntu1~20.04.1

The bug is not reproducible under this configuration on my system, using default install + proposed repository.

Revision history for this message
ethanay (ethan-y-us) wrote :

Also I don't understand how the comments implying that this problem isn't being given "high enough priority" are a. valid (as in true; in my experience this bug is getting a lot of attention, and the main thing holding back the release of the fix right now is *user testing* e.g., from the people complaining?) and b. helpful to resolving the bug.

Revision history for this message
Tim Passingham (tim-8aw3u04umo) wrote :

Ethany - is there something else I can do? I've installed the proposed update, retested, and so far all seems well (as I said in #159).

It's difficult to test and report on a problem which doesn't happen every time you do something. I never found a pattern to it, just when it did start to happen it was infuriating :-)

As to why more people haven't reported and retested, I don't know. Maybe Libreoffice Fresh users on ubuntu 20.04 are still quite rare?

Revision history for this message
Guillem Solivellas (garriguer) wrote : Re: [Bug 1852183] Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

For the moment, the only way to avoid this ennoying problem is the use of
Ubuntu with Wayland session, which has other bugs, but not this one...
<email address hidden>

Missatge de Tim Passingham <email address hidden> del dia dc., 20 de
maig 2020 a les 9:35:

> Ethany - is there something else I can do? I've installed the proposed
> update, retested, and so far all seems well (as I said in #159).
>
> It's difficult to test and report on a problem which doesn't happen
> every time you do something. I never found a pattern to it, just when
> it did start to happen it was infuriating :-)
>
> As to why more people haven't reported and retested, I don't know.
> Maybe Libreoffice Fresh users on ubuntu 20.04 are still quite rare?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1876445).
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu
> 19.10 & 20.04 (see comment 93)
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Released
> Status in mutter source package in Focal:
> Fix Committed
> Status in mutter source package in Groovy:
> Fix Released
>
> Bug description:
> [ Impact ]
>
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> [ Test case ]
>
> 1. Use use libreoffice writer/calc
> 2. Copy text around
> 3. Paste it and ensure it always work
>
> [ Regression potential ]
>
> Copy/paste won't work as expected, for non-text types
>
> -----
>
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
ethanay (ethan-y-us) wrote :

Tim, I don't know, I am just "another user"

But I appreciate you testing! For me, the pattern has always been quite
consistent for the first cut/copy to fail, and so is fairly easy for me to
test.

The different symptoms are curious, with it being very predictable for some
and random for others!

It is also interesting to me that the problem appears only in copying to
clipboard from some programs but not others.

Lastly, it is interesting that it was fixed first in some programs (eg for
me, LO calc) before others (LO Writer).

I don't know enough about how different sources for clipboard data interact
with the clipboard manager, but it leads me to believe there is actually
more than one clipboard bug. If so, it will take users being vigilant to
collect log and other debug info as they try to reproduce the more
intermittent symptoms, and submit in a different report.

On Wed, May 20, 2020, 00:35 Tim Passingham <email address hidden> wrote:

> Ethany - is there something else I can do? I've installed the proposed
> update, retested, and so far all seems well (as I said in #159).
>
> It's difficult to test and report on a problem which doesn't happen
> every time you do something. I never found a pattern to it, just when
> it did start to happen it was infuriating :-)
>
> As to why more people haven't reported and retested, I don't know.
> Maybe Libreoffice Fresh users on ubuntu 20.04 are still quite rare?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu
> 19.10 & 20.04 (see comment 93)
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Released
> Status in mutter source package in Focal:
> Fix Committed
> Status in mutter source package in Groovy:
> Fix Released
>
> Bug description:
> [ Impact ]
>
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> [ Test case ]
>
> 1. Use use libreoffice writer/calc
> 2. Copy text around
> 3. Paste it and ensure it always work
>
> [ Regression potential ]
>
> Copy/paste won't work as expected, for non-text types
>
> -----
>
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
Launchpad Janitor (janitor) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

This bug was fixed in the package mutter - 3.36.2-1ubuntu1~20.04.1

---------------
mutter (3.36.2-1ubuntu1~20.04.1) focal; urgency=medium

  * Backport to focal (LP: #1877209)
  * debian/gbp.conf: Set branch to ubuntu/focal
  * debian/control: Update VCS references to focal branch
  * debian/rules: Revert groovy/debian build changes as per dh 13

mutter (3.36.2-1ubuntu1) groovy; urgency=medium

  * Merge with debian, including new upstream release:
    - Fix super key not working with secondary layout (LP: #1871913)
  * xrandr-scaling: Fix compiler warnings (LP: #1874207)
  * xrandr-scaling: Take care of global UI scale when restoring from config
    (LP: #1825593)
  * Remaining changes with debian:
    - debian/control:
      + Update VCS flags to point to ubuntu salsa branch
    - debian/gbp.conf: update branch to point to ubuntu/master
    - debian/patches/x11-Add-support-for-fractional-scaling-using-Randr.patch:
      + X11: Add support for fractional scaling using Randr

mutter (3.36.2-1) unstable; urgency=medium

  * Team upload

  [ Simon McVittie ]
  * New upstream stable release
    - Fix FTBFS with Wayland disabled (non-Linux kernels)
    - X11 copy/paste/selection fixes (LP: #1852183)
    - Fix freeze with some DisplayLink devices
    - Fix a memory leak
    - Synchronize shadows to server-side decorations
    - Fix overview key on X11 when using multiple keyboard layouts
    - Fix painting the redraw clip with the damage region
    - Fix capturing with multiple stage views
    - Fix screencasting of non-maximized windows (LP: #1873942)
    - Various misc fixes and cleanups (LP: #1874818)
    - Update translation: de

  [ Marco Trevisan (Treviño) ]
  * debian/libmutter-6-0.symbols: Update
  * debian/rules: Ignore build failures on riscv64

mutter (3.36.1+git20200419-1) unstable; urgency=medium

  * Team upload

  [ Simon McVittie ]
  * New upstream snapshot from gnome-3-36 branch (3.36.1-42-gda9eb4718)
    - Fix trackball button scrolling
    - Fix tiled (MST) displays
    - Copy/paste fixes, particularly for large images and incremental
      transfers
    - Fall back to closed laptop lid configuration if no other available
      (LP: #1793496)

  [ Jeremy Bicha ]
  * Drop obsolete dh_strip dbgsym migration rule
  * Bump debhelper-compat to 13
    - dh_missing --fail-missing is the default
    - dh_auto_test has several default improvements
    - dh_autoreconf isn't needed with meson
  * debian/watch: Only watch for stable releases

mutter (3.36.1-4) unstable; urgency=medium

  * Team upload
  * Merge changelog from unstable
  * Upload to unstable (starts transition: #954422)
  * Update to upstream gnome-3-36 branch, commit 3.36.1-17-g9a2471db4
    - Fix caps-lock state becoming confused on VT switch
  * d/gbp.conf: Follow upstream/3.36.x branch

 -- Marco Trevisan (Treviño) <email address hidden> Thu, 07 May 2020 03:22:16 +0200

Changed in mutter (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for mutter has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
iGadget (igadget) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

Pretty curious why this bug isn't mentioned on https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Desktop ?
Since this is a real show stopper for anyone using Ubuntu Desktop seriously AND the issue was reported months before the release of 20.04, it should at the very least have been clearly communicated via i.e. the release notes mentioned above.

Where can I file bugs so the process is improved an users will never (unknowingly) run into issues such as these again?

Revision history for this message
In , Carlos Sevcik (carlos-sevcik-s-gmail) wrote :

(In reply to Eike Rathke from comment #29)
> (In reply to larrybradley from comment #25)
> > Interesting attitude. If you buy a Toyota and the engine goes bad, do you
> > expect Toyota to say, "Sorry, not our problem, they sold us bad engines."
> Interesting approach. I hate car allegories, but the broken part is not even
> part of the car. So if the bridge you want to ride over is broken you go to
> the car manufacturer and tell him to make your car fly.
>
> > Your name is on the product. The product is broken.
> No, the clipboard manager clipboard manager of the compositor of your window manager of your
> operating system is broken. That's why there is the Mutter bug linked and
> this bug here is flagged as notourbug.
>
> Additional findings from the linked Mutter bug are that the problem seems to
> be (also) related to the Clipboard Indicator GNOME Shell Extension, see
> already comment 7 here, so you may want to remove that.

I may be nave or ignorant, you guess, but 20some programs running on Gnome daily work just fine. so my guess is that they programmed their applications for Gnome and it works. Why LO be an exception?.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

It's nice to see that the mutter fix has landed in focal-updates.

Above, Daniel wrote "Let's try to release this fix and then the first person still having problems after it's released can open a new bug." OK - I am that person. I have the new Mutter package, and I can still easily reproduce the problem. I just opened two LibreOffice Writer windows side by side and tried repeatedly copying in the left window and pasting in the right window, and occasionally the paste visibly fails to paste the text I just copied.

So I have opened a new bug, namely bug #1879968. If other people experience copy/paste trouble even after they receive the mutter fix, just like I have, then that bug is the right place for further discussion.

Revision history for this message
Pablo San Martín (san-wablo) wrote :

Thanks! This fixed it for me! Glad to be able to use Clipboard Indicator and LibreOffice at the same time again"

Revision history for this message
In , timur (ba.timur) wrote :

Carlos, there is no reason to reply you.
You seem to be ignorant to read ubuntu bug report and test fix in 20.04.

Revision history for this message
In , Carlos Sevcik (carlos-sevcik-s-gmail) wrote :

I certainly ignore many things. Thank you.

Revision history for this message
Adrian Jones (adrianjones506) wrote :

This is still happening despite the Ubuntu 20.04LTS installation being fully patched using Liveupdate as at 25 May 2020.

In LibreOffice I have to hit Cntrl C repeatedly (more than 2 times or click the copy icon sometimes 9 times or more to get some data.... and this is just staying within Office so office related only.

In the desktop other attempts to copy also to other applications and WINE applications still results in failures.
The fix therefore has not worked. If mutter was changed and has rendered the computer useless (I regard it as such right now as it is highly unreliable and induces errors) then it should be removed until the module has been fixed and tested. DO NOT get the users to fix the problem.. that is why users have been driven away from Microsoft.

Revision history for this message
Adrian Jones (adrianjones506) wrote :

Incidentally this bug has been happening and someone suggested updating Mutter to the latest version.

I had to install mutter to then update it to try and fix it .. so now there are bugs due to software that was never installed in the first place !!!

Revision history for this message
In , Luca (samsau-o) wrote :

Happens to me as well on FF 20.04 using Word 2010, both on X11 and Wayland. If I switch back to Unity the bug is gone

Revision history for this message
In , ethanay (ethan-y-us) wrote : Re: [Bug 1852183] Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

I wonder if there are residual components of the problem that go away when
you upgrade against or do a fresh install? I never tested 3.36.2 against my
original 19.10 install, I just went to 20.04 when the fix was released.

So, for example, maybe if I had installed 3.36.2 while running my original
19.10 install and config, I would be seeing problems still. Just a thought!

On Wed, May 27, 2020, 03:15 Luca <email address hidden> wrote:

> Happens to me as well on FF 20.04 using Word 2010, both on X11 and
> Wayland. If I switch back to Unity the bug is gone
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1852183
>
> Title:
> [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu
> 19.10 & 20.04 (see comment 93)
>
> Status in LibreOffice:
> Won't Fix
> Status in Mutter:
> Unknown
> Status in mutter package in Ubuntu:
> Fix Released
> Status in mutter source package in Focal:
> Fix Released
> Status in mutter source package in Groovy:
> Fix Released
>
> Bug description:
> [ Impact ]
>
> I'm running LibreOffice 6.3.2.2 on Ubuntu 19.10.
>
> In this environment, copy/cut/paste often fails. Specifically, the
> paste command sometimes does not paste the text that was cut/copied
> most recently. Instead, it pastes text that was cut/copied at some
> prior time.
>
> [ Test case ]
>
> 1. Use use libreoffice writer/calc
> 2. Copy text around
> 3. Paste it and ensure it always work
>
> [ Regression potential ]
>
> Copy/paste won't work as expected, for non-text types
>
> -----
>
>
> I use LibreOffice Writer a lot, and I now see this problem very often,
> i.e. many times every day.
>
> There is some discussion of the problem here:
>
> https://ask.libreoffice.org/en/question/213510/copypaste-issues-
> libreoffice-calc/
>
> Several posters there say that they are also using Ubuntu 19.10.
>
> Ubuntu 19.10 includes Mutter 3.34, which has a new clipboard manager:
>
> https://www.phoronix.com/scan.php?page=news_item&px=GNOME-3.34
> -Clipboard-Manager
>
> It seems like that could be related.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/df-libreoffice/+bug/1852183/+subscriptions
>

Revision history for this message
Ron Houk (houk-ron) wrote : Re: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10 & 20.04 (see comment 93)

Hello,

I'm on 20.04 using mutter version 3.36.2-1ubuntu1~20.04.1. I see that this bug is marked as fixed, but I am still experiencing this issue.

Davide (tarski10)
summary: [X11] copy/paste (clipboard) with LibreOffice is broken in Ubuntu 19.10
- & 20.04 (see comment 93)
+ & 20.04 (see comment 93 and 176)
Revision history for this message
Xand Meaden (xandm) wrote :

I'm using 20.04 and also experience this issue pasting between applications including Gnome Terminal and Atom (Snap package). I initially thought the mutter upgrade had resolved the issue but it "feels like" this problem gets worse over time.

Revision history for this message
Adam Dingle (adam-yorba) wrote :

For anyone who is still experiencing this issue after the mutter upgrade, the right place to comment or discuss on Launchpad is the followup bug #1879968, not here. You may also wish to discuss the problem at the corresponding upstream GNOME bug https://gitlab.gnome.org/GNOME/mutter/issues/1268 .

Revision history for this message
In , timur (ba.timur) wrote :

*** Bug 134517 has been marked as a duplicate of this bug. ***

Revision history for this message
erio (eri0) wrote :

The cause has been found here: https://gitlab.gnome.org/GNOME/mutter/-/issues/1338 but no solution has been created yet.

Revision history for this message
erio (eri0) wrote :

Finally, it's fixed here: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1369

Will probably take some time to reach Ubuntu 20.04.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please use bug 1879968 now.

ScareCrow (layalhasan)
affects: mutter (Ubuntu Focal) → focal (Ubuntu Focal)
Paul White (paulw2u)
affects: focal (Ubuntu) → mutter (Ubuntu)
Revision history for this message
In , Albertoma (albertoma) wrote :

This happens to me too but I don't use Mutter. I use Manjaro KDE (with Plasma) https://ask.libreoffice.org/t/lo-detects-ctrl-v-and-ctrl-z-twice/68041

Changed in df-libreoffice:
status: Won't Fix → Confirmed
Revision history for this message
In , Eike Rathke (erack) wrote :

@albertoma/Moshpirit: Please create a new bug as this one here is specifically about the Mutter situation.

Changed in df-libreoffice:
status: Confirmed → Won't Fix
Changed in mutter:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.