Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libreoffice hang when copy/paste many cells #104

Open
Thatoo opened this issue Nov 24, 2024 · 3 comments
Open

Libreoffice hang when copy/paste many cells #104

Thatoo opened this issue Nov 24, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Thatoo
Copy link

Thatoo commented Nov 24, 2024

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

@Thatoo Thatoo added the bug Something isn't working label Nov 24, 2024
@wiiznokes
Copy link
Collaborator

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
Copy link
Author

Thatoo commented Nov 24, 2024

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:~$

@wiiznokes
Copy link
Collaborator

Here are all mime type provider by libreoffice

mime type {
    "text/plain;charset=utf-16",
    "image/bmp",
    "application/x-libreoffice-internal-id-40085",
    "application/x-openoffice-bitmap;windows_formatname=\"Bitmap\"",
    "text/plain",
    "application/x-openoffice-objectdescriptor-xml;windows_formatname=\"Star Object Descriptor (XML)\";classname=\"47BBB4CB-CE4C-4E80-a591-42d9ae74950f\";typename=\"Classeur LibreOffice 24.8\";viewaspect=\"1\";width=\"24836\";height=\"14902\";posx=\"0\";posy=\"0\"",
    "text/html",
    "UTF8_STRING",
    "text/plain;charset=utf-8",
    "application/x-openoffice-gdimetafile;windows_formatname=\"GDIMetaFile\"",
    "application/x-openoffice-wmf;windows_formatname=\"Image WMF\"",
    "image/png",
    "application/x-openoffice-dif;windows_formatname=\"DIF\"",
    "application/x-libreoffice-tsvc",
    "application/x-openoffice-emf;windows_formatname=\"Image EMF\"",
    "image/svg+xml;windows_formatname=\"image/svg+xml\"",
    "text/richtext",
    "application/x-openoffice-sylk;windows_formatname=\"Sylk\"",
    "STRING",
    "application/x-openoffice-link;windows_formatname=\"Link\"",
    "application/x-openoffice-embed-source-xml;windows_formatname=\"Star Embed Source (XML)\"",
    "text/rtf",
    "SAVE_TARGETS",
}

Maybe we should request all mime type every time, but it would take place. And the db can't do that rn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants