Copy paste bug in libre writer

I have some text, I copied (ctrl-c) from outside librewriter, and it pastes into notepad just fine

But if I try to paste it into Libre Writer, then something previously in the clipboard appears! (Or if nothing was in the clipboard at a previous time then nothing appears).

I have copy pasted before so I can see this is a bug. I don’t know the cause. (well, I know to the extent that clearly Librewriter has its own copy of what is in the clipboard, that it uses, and sometimes doesnt update it!)

I’m running Windows 7. I can’t restart the Windows OS now 'cos I have a lot of unsaved notepad windows open.

I can fix it by going within librewriter, copying some text to the clipboard from within librewriter. Then copy some text from outside librewriter then it pastes into librewriter.

I haven’t quite gotten to a point where I can reproduce the bug at will. But the bug appears from time to time.

Here is version information

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: en-GB (en_GB); UI: en-US
Calc: CL

Thanks

I suppose it, that issue is related to a third party Clipboard manager software or to some Clipboard manager feature of the operating system.
Try to find it and to stop it.

tdf#148647. Still no reliable reproducer scenario, to enable to debug and fix. Cf. to tdf#116983, where jasonkres eventually provided a way to debug and fix a bunch of related problems - but until that, we could do nothing for years.

In recent version(s) of Writer I’m finding the same bug i.e. ctrl+C text from another program, ctrl+V into Writer but instead of the new clipboard text, previous clipboard text is pasted. If I ctrl+V into another program the correct clipboard contents are pasted. If I exit & re-run Writer then ctrl+V the correct clipboard contents are now pasted, so appears to me to be Writer related as copy/paste isn’t an issue with any other program.

Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 12; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-GB
Calc: threaded

1 Like

If you have Clipboard history turned on in Start menu > Settings > System > Clipboard, that is generally not a problem other than a loss of paste formats later on. Maybe you have Sync across your devices in the same place, turned on which might cause problems.

If you use another clipboard manager then that is a good place to start looking. A badly designed program not releasing the clipboard could be the culprit.

Thanks for your tip on clipboard history - I never knew that trick. I don’t have Sync across your devices enabled, and as I said it is only an issue with LibreOffice, both Writer & now confirmed with Calc. When it occurs I can still correctly paste the latest clipboard entry into any other program to confirm correct contents, eg Notepad. I can see the latest entry in the clipboard history list, but ctrl+V in Writer & Calc pastes the 2nd to latest item. As I’ve said, if I then restart Writer, ctrl+V pastes the latest item.

And if you use Win+V?

Win+V - yes I said (or at least implied) I was using Win+V to confirm the “clipboard history”.

Never any progress on this frustrating bug. It only ever happens to LibreOffice products (I’m using Calc & Writer). Pasting into other programs is never a problem. When the paste is ignored I exit/ restart all LibreOffice products, then ctrl+V of the latest item in the clipboard is again accepted. After a general search I see quite a few other topics with other frustrated users that seem to have no solution either. How to progress this?

Try turning off Suggested Actions in clipboard. Assuming you have a North American version of Windows, otherwise you won’t have that optio.

Maybe you have a YouTube downloader installed? They intercept the clipboard and can lock it

@robleyd - thanks - Suggested Actions in clipboard - how? Settings > System > Clipboard doesn’t have a setting like that. BTW I’ve now turned off Clipboard history. North American version of Windows? I have Windows 11 Home 23H2 22631.3737. I’m in Australia but Settings > System > About makes no mention of “North American version” or any other country.
@EarnestAl - thanks - but no, I don’t have a YouTube downloader installed. As I said this ONLY affects pasting to LibreOffice Calc & Writer. Restart them & they will accept the paste.

I don’t use LibreOffice Draw much, but now find exactly the same bug there too. ctrl+V worked a few times then not pasting. Paste into Notepad OK. Exit/ restart Draw, and ctrl+V then works again in Draw, presumably until the next lockout. Although I didn’t test/ check, I guess that precisely when the lockout occurred, Writer & Calc would have then shared the same issue.

I believe I may have had this occur on my system also, but I didn’t know to look out for it so haven’t kept details on the specifics. Each time I worked around it by pasting into notepad, then copying that text and pasting it into LibreOffice. A LibreOffice restart wasn’t required (?same or different bug?)

This makes me wonder whether there is an issue with formatting or non-printing characters causing the paste into LibreOffice to fail without error?!

Windows 10
LibreOffice versions from 7.? to 24.2.4.2
Also Australian locale

Found a report of accented characters causing the issue, which may have been the issue I was having as I do regularly copy/paste Norwegian text.

@AndrewHeard you might be interested in the following thread. The Windows clipboard is known to be outdated but is yet to be fixed. The thread contains a link at the bottom for a small program to return the program that has the clipboard open, it seems to be fine and was originally available on the microsoft developer site. If you don’t trust old programs though the thread also contains a VBS script to do the same thing.

1 Like

Thanks a lot @Ash733. I’m pretty sure not related to accented characters (not 100%, will confirm next time it happens); just plain ASCII. When LibreOffice fails to accept the latest clipboard, I often paste into Notepad (Sublime Text) & Vivaldi (plain text boxes) simply to confirm they are both OK, and I have indeed copied text, and they are always OK. Thanks for the link - I downloaded GetOpenClipboardWindow.zip. Next time I will run GetOpenClipboardWindow.exe & report back here.

1 Like

Excellent. I’ve done the same and will try to remember to document it here, mind you that’s probably fixed it now :joy:

Interestingly a similar perhaps related issue on a Mac with Kazakh/Russian language but works with English.

Finally got this bug to expose itself again. Clipboard has plain ASCII text “INSERT INTO public.instances(instance_timestamp) VALUES (NOW());” in it (without the double quotes). I can paste it into this very multiline textbox, notepad, various other textboxes, BUT LibreWriter will paste the previous clipboard contents! I can run the VB GetOpenClipboardWindow.exe and it displays the message “Successfully opened & closed the clipboard”. Interestingly the VB EXE filename I pasted here was using the clipboard with keyboard sequence: F2 (in Windows Explorere) > ctrl+Insert > shift+Insert sequence, and Writer now also accepts that clipboard text. Unfortunately I can’t go back & check whether the act of running GetOpenClipboardWindow.exe made a difference or not. Interesting! I’ll check this behavior when LW next does the wrong thing.

1 Like

OK some useful information - when LibreOffice is rejecting a clipboard paste (although other programs still paste OK), and I then run VB GetOpenClipboardWindow.exe, AND NOW LibreOffice will paste the clipboard correctly. Where do we go with issue now?