Calc keeps copying and pasting cells as images

I’ve used Calc for years and have copied and pasted cells without any problems. For some reason starting today, when I copy and paste cells, the cells get pasted as an image.

If I do a “Paste Special”, the selection source shows up as “Unknown source”.

The GIF below shows the behavior:

https://gifyu.com/image/bblxr

I did see previous topics about the same behavior, but in those cases the problem seemed intermittent and could be attributed to a clipboard manager. In my case, I can’t get ever get Calc to paste the content of the cells instead of the image. I’m not using any clipboard manager and have never used one in the past.

System: Linux Mint 21.3 (based on Ubuntu 22.04)
Calc version: 7.3.7-0ubuntu.22.04.8 (latest version in the Ubuntu 22.04 repositories)

After I couldn’t fix the problem, I decided to update to the latest LibreOffice version from the PPA, so my current version is 24.8.5~rc2-0ubuntu0.22.04.1~lo1. It still exhibits the same problem.

I looked through my software updates from the last day, but nothing jumps out as being an obvious problem:

Start-Date: 2025-03-05  10:55:59
Commandline: /usr/bin/apt install zulu21-jdk
Requested-By: [username] (1000)
Install: zulu21-ca-jdk:amd64 (21.0.6-1, automatic), zulu21-ca-jre:amd64 (21.0.6-1, automatic), zulu2
1-ca-jre-headless:amd64 (21.0.6-1, automatic), zulu21-ca-jdk-headless:amd64 (21.0.6-1, automatic), z
ulu21-jre-headless:amd64 (21.0.6-1, automatic), zulu21-jdk-headless:amd64 (21.0.6-1, automatic), zul
u21-doc:amd64 (21.0.6-1, automatic), zulu21-jdk:amd64 (21.0.6-1), zulu21-jre:amd64 (21.0.6-1, automa
tic), zulu21-ca-doc:amd64 (21.0.6-1, automatic)
End-Date: 2025-03-05  10:56:07

Start-Date: 2025-03-05  14:17:07
Commandline: /usr/sbin/synaptic --hide-main-window --non-interactive --parent-window-id 69206030 -o 
Synaptic::closeZvt=true --set-selections-file /tmp/tmpkr9gu21v
Requested-By: [username] (1000)
Install: linux-modules-extra-5.15.0-134-generic:amd64 (5.15.0-134.145, automatic), linux-headers-5.1
5.0-134-generic:amd64 (5.15.0-134.145, automatic), linux-headers-5.15.0-134:amd64 (5.15.0-134.145, a
utomatic), linux-image-5.15.0-134-generic:amd64 (5.15.0-134.145, automatic), linux-modules-5.15.0-13
4-generic:amd64 (5.15.0-134.145, automatic)
Upgrade: firefox-locale-en:amd64 (135.0.1+linuxmint2+virginia, 136.0+linuxmint1+virginia), linux-hea
ders-generic:amd64 (5.15.0.133.132, 5.15.0.134.133), google-chrome-stable:amd64 (133.0.6943.141-1, 1
34.0.6998.35-1), linux-generic:amd64 (5.15.0.133.132, 5.15.0.134.133), firefox:amd64 (135.0.1+linuxm
int2+virginia, 136.0+linuxmint1+virginia), linux-image-generic:amd64 (5.15.0.133.132, 5.15.0.134.133
), linux-libc-dev:amd64 (5.15.0-133.144, 5.15.0-134.145)
End-Date: 2025-03-05  14:17:55

Start-Date: 2025-03-06  09:18:17
Commandline: /usr/sbin/synaptic --hide-main-window --non-interactive --parent-window-id 69206030 -o 
Synaptic::closeZvt=true --set-selections-file /tmp/tmp3v02rd5d
Requested-By: [username] (1000)
Upgrade: signal-desktop:amd64 (7.44.0, 7.45.0)
End-Date: 2025-03-06  09:18:25

Start-Date: 2025-03-06  13:21:45
Commandline: /usr/bin/apt purge linux*-5.15.0-131-*
Requested-By: [username] (1000)
Purge: linux-modules-extra-5.15.0-131-generic:amd64 (5.15.0-131.141), linux-headers-5.15.0-131-gener
ic:amd64 (5.15.0-131.141), linux-image-5.15.0-131-generic:amd64 (5.15.0-131.141), linux-modules-5.15
.0-131-generic:amd64 (5.15.0-131.141)
End-Date: 2025-03-06  13:21:55

Start-Date: 2025-03-06  13:22:01
Commandline: /usr/bin/apt autoremove
Requested-By: [username] (1000)
Remove: linux-headers-5.15.0-131:amd64 (5.15.0-131.141)
End-Date: 2025-03-06  13:22:02

Not having copy/paste functionality in Calc makes it borderline unusable for me. Anyone have any ideas?

1 Like

Test to restart in safe mode.

I restarted in Safe Mode and tested copy and paste. It still pastes the cells as an image.

1 Like

Some clipboard-utility in your OS interfering…

I am having the same issue. The only way to past the content is get inside the cell and copy then go to destiny cell and past. that way is past the way we expected. But I did not work if the cell content is a formula.

As I stated in the original post, I have never used a clipboard manager. I even did a search for the most popular Ubuntu clipboard managers and confirmed that none of them are installed on my system.

1 Like

Yes, individually editing and then copy/pasting the cell content does work. But that obviously isn’t workable if you have a whole column or row of data that you want to copy/paste.

1 Like

Few more test: Copy/past is useless if we copy from Calc cell and past in a text editor also does not work.
I have a cell with this =CONCAT("Line 1 of ",$O$7) it appear Line 1 of 10 for example and copy that cell to LibreOffice Writer, the content past as image as well. If I try to past that cell in another plain text editor, or some plain text field in a web page, it does not work at all.

This issue is kind critical!!! Any one have any idea how to solve it?

I am not a Linux Mint expert but I will try helping you with some ideas.

  • First, I would install a clipboard viewer. Two are mentioned in this thread, ClipIt and Diodon.
  • Second, I would try copy/paste from other LO applications: Writer, Impress, Draw, to see if they show the same behavior. I would also try to copy/paste using the keyboard (Ctrl+c, Ctrl+v), not the menu.
  • Third, I will try Cut/Paste to see if it is the same issue. If not, Cut/Paste, then Paste again to the destination may be a workaround.
  • Fourth, I would try with two disjoint groups of cells, what is the behavior?
  • Fifth, I would search for possibilities to start X11 in failsafe mode in Linux Mint.

Thanks for the suggestions. Here are the results (not necessarily in the same order):

  • Using Ctrl+c, Ctrl-v vs. the menu makes no difference. I normally use keyboard shortcuts, but didn’t do that in the example GIF so everyone could see what was happening.

  • Cut/Paste exhibits the same behavior as Copy/Paste

  • Copying and pasting disjoint cells exhibits the same behavior
    image

  • Copying text from LO Writer and then pasting it into LO Calc does work

  • I installed Diodon to see what was happening with the clipboard. It does reveal something interesting. When I copy text from LO Writer, one text clipboard entry appears in Diodon. When I copy cells from LO Calc, two clipboard entries appear in Diodon–a text/cell entry and an image entry:


    If I then select the text entry in Diodon, the Text Import dialog pops up in Calc and the cells get imported correctly:

So what seems to be happening is that copying cells in Calc performs two copies–first as text/cells, and then second as an image. Since the image copy is the last action, that is what gets pasted.

  • I’ll look into starting X11 in failsafe mode, but I suspect that isn’t the problem

Neither image nor plain text is correct. You seem to have a clipboard manager which does not store LibreOffice Calc format.

It seems from recent comments that clipboard managers are being included in the build of some Linux distributions, initiated at startup.

Look through running processes to try and indentify it so you can prevent it running at start.

As I mentioned in the original post, I didn’t have a clipboard manager installed when the problem started occurring. I only installed Diodon at the suggestion of @Steph1 in order to diagnose the problem further.

@beaucoup, I tested on my Lubuntu virtual machine and I have only one entry in the clipboard. If you are using KDE Plasma, I posted (below or above this comment) a link which indicates how to purge the clipboard.

@Steph1 I am using the Cinnamon desktop, which doesn’t come with a default clipboard manager.

Similar problem just appeared on my system as well. Running KDE Plasma, latest version on latest version of Tuxedo OS
LibreOffice Calc, (latest version) copy cells and then it pastes images back into LO Calc, also pastes image into any other app, including LO Writer and even composing an email

But I can copy cell contents and it then pastes cell contents correctly

If I do same action, copy cells, from another spreadsheet, I have tried Caligra sheets and Jamovi and copy and paste functions correctly

I see comments indicating this is a clipboard problem, but I suggest, based on the above, that its an LO problem. If it was a clipboard problem, then other spreadsheet apps would suffer same issue

So where to post this to get LO attention?

You can open a bug report here:
https://bugs.documentfoundation.org/

@prisby, for KDE Plasma, you may try this fix:

HI Steph1
Thanks for the suggestion, I looked up the thread, but nothing I found made any difference. It did give me an idea which I think now changes my previous conclusion

  1. I rebooted the laptop
  2. Removed LO Calc and re-installed, no difference
  3. Downloaded LO as an Appimage and tried again - no difference
  4. Typed into a cell, highlighted and Ctrl C, then looked at clipboard contents, the content is text
    I then clicked on the cell into which I had typed and Ctrl C again, clipboard now shows an image

Therefore I suspect that the copy function for Plasma 6 is somehow now recognising LO Calc cell as an image and not the cell contents as text.

Perhaps its not LO bug but a clipboard bug?

Strange it has only just happened in last 24 hours, it all was working fine before yesterday