Description: Paste is sometimes deactivated in (context) menu even though text is copied to clipboard and CTRL+V functioning Technically the same as bug 116983. Except way to many comments already Steps to Reproduce: 1. Download https://www.nirsoft.net/utils/insideclipboard.zip 2. Download the attached file 3. Open Inside Clipboard 4. File -> Clear all clipboard data (Inside Clipboard ) 5. Launch Writer 6. Right Click in side the document -> Disabled -> Fine 7. File -> Load .CLP with Inside Clipboard 8. Right click inside the Writer document -> Paste enabled (fine) 9. Repeat step 7-8 number of times (say 5x) Similar approach in bug 116983 comment 55 Actual Results: Paste fails/disabled Expected Results: Not so Reproducible: Always User Profile Reset: No Additional Info: Version: 7.1.0.0.alpha0+ (x64) Build ID: 6640d7f405d2970ba2825a9455926cc803284d01 CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL
Created attachment 164742 [details] Inside Clipboard file
https://gerrit.libreoffice.org/c/core/+/111825 I must express greatest gratitude to Telesto for nice reliable test case in a clear bug report, and to jasonkres for great solution strategy.
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/cf1c835e8016f8f1eefea6d625a913c0ac343a63 tdf#116983 tdf#136175: retry if failed It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Resolving this one, since the specific issue reproduced by steps in comment 0 should be fixed now with the commit above. I do not close bug 116983, since I don't know if there's no other bugs in clipboard handling that are somehow got mixed there. Still possibly the best would be to close also that one, and in case when another problem appears, just have a new clean issue.
I was able to reproduce the bug in 7.1.1.2 and after testing, I can confirm it's fixed in build https://git.libreoffice.org/core/+log/8e49505fa7352023c252bf794ae84c9082d7264e
> It will be available in 7.2.0. Meaning it's not in 7.1.
(In reply to Timur from comment #6) > > It will be available in 7.2.0. > Meaning it's not in 7.1. Which means it can be used for reference that the bug was reproducible.
(In reply to Timur from comment #6) Yes I forgot to backport, sorry. It is waiting review now at https://gerrit.libreoffice.org/c/core/+/112075 and https://gerrit.libreoffice.org/c/core/+/112076 - these two must be merged only together.
Seems like this also fixes Bug 57147 :) Just hope the fix will be backported to 7.0 and 7.1 too ... Thanks to all who helped fix this nasty bug :D
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/316bebbbbd19cdccde05eba5f6098d301f032df2 tdf#116983 tdf#136175: retry if failed It will be available in 7.1.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
This is looking very good. Have been using 7.2 all day with lots of copy and paste work from Acrobat into LO and naturallyspeaking into LO - no errors whereas previously they would have been numerous. Thank you.
Mike, please comment on backport to 7.0. I reduce my backport requests only to important issues and this one it is because it's very visible. I had a workaround all this time, I used "Paste from Web" extension. If you can, it would be interesting to explain how that one worked.
(In reply to Timur from comment #12) > Mike, please comment on backport to 7.0. No, I will not backport there, because there were big changes of clipboard code since then (partially because we tried to address the annoying clipboard problems blindly, partially because of other needs), and backporting would require much effort I can't spend now. > I had a workaround all this time, I used "Paste from Web" extension. > If you can, it would be interesting to explain how that one worked. Yes. If you reproduce the bug in e.g. current 7.1.1 (i.e., you copy something e.g. from terminal until you see that the Paste button in Writer is inactive), you may continue the test: now create another Writer document (press relevant toolbar button), and see that in the new document, the Paste button is active (unlike the old one, where it's still inactive). This was accidentally "used" in the mentioned extension [1], which created an invisible intermediate document, pasted there, processed, then copied from there into existing document. The process of creating the hidden new document did the trick - the clipboard content was refreshed (and at that moment, the clipboard was not locked by another application, unlike at initial attempt to update the state), so paste into that internal document succeeded. [1] https://extensions.openoffice.org/en/project/paste-web
*** Bug 141645 has been marked as a duplicate of this bug. ***
@Timur: > I had a workaround all this time, I used "Paste from Web" extension. Can you please post a link to this extension. I am forced to use an older LibreOffice version where the bug https://bugs.documentfoundation.org/show_bug.cgi?id=65606 is not fixed yet.
I see :-) https://extensions.openoffice.org/en/project/paste-web