cosmic-utils / clipboard-manager

Clipboard manager for COSMIC™
GNU General Public License v3.0
55 stars 7 forks source link

Libreoffice hang when copy/paste many cells #104

Open Thatoo opened 6 days ago

Thatoo commented 6 days ago

Bug Description

If I enable the clipboard applet and I copy/paste many cells from libreoffice calc (I can't tell from how many it does), it will make libreoffice freeze and crash.

Plus, most of the time, when pasting, it pastes an image of the cells so I need to cancel, copy again and paste.

Expected Result

It should copy the content of celles as text within cells and paste it as it was.

Steps to Reproduce

Select many lines of libreoffice calc and copy paste it somewhere else.

Libreoffice might freeze and crash.

Additional Information

Logs

wiiznokes commented 6 days ago

I think i can reproduce. I get this error from libreoffice

libreoffice
/home/fedasus/.config/libreoffice/4/user/config/javasettings_Linux_X86_64.xml:1: parser error : Document is empty

^
javaldx failed!
Warning: failed to read path from javaldx

It does not freeze but crash. Sometime, an image is copied. This make the clipboard manager freeze (maybe due to a lot of image.

Btw, i think the clipboard prioritize some mime type over other. But if its a direct copy and paste, the source should still be libreoffice so it should not cause problem in theory. But x11 may behave weirdly.

I think it would help if you can get some log from libreoffice, and give an idea of how many cells you copied

Thatoo commented 6 days ago

If I open libreoffice from terminal and I copy 20 lines then I get these error in terminal and libreoffice crashes :

thatoo@computer:~$ libreoffice javaldx: Could not find a Java Runtime Environment! Warning: failed to read path from javaldx

(soffice:422802): Gdk-WARNING **: 22:54:49.736: Error writing selection data: Erreur d’écriture vers le descripteur de fichier : Broken pipe

(soffice:422802): Gdk-WARNING **: 22:54:49.736: Error writing selection data: Erreur d’écriture vers le descripteur de fichier : Broken pipe Gdk-Message: 22:55:32.223: Lost connection to Wayland compositor. thatoo@computer:~$