Bug 443265 - Sometimes text added to the clipboard can't be pasted until manually clicked on
Summary: Sometimes text added to the clipboard can't be pasted until manually clicked on
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (show other bugs)
Version: 5.21.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-03 16:58 UTC by David
Modified: 2024-02-22 20:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kwrite_no_paste (837.90 KB, image/gif)
2021-10-03 16:58 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2021-10-03 16:58:04 UTC
Created attachment 142125 [details]
kwrite_no_paste

SUMMARY
At random times, Kate and Kwrite will stop pastying text from the clipboard, even if said text had been copied from the same kate/kwrite window where it is attempted to be pasted. Attached is a video with kwrite. I think this started happening in frameworks 5.86.0 but I'm not sure. The problem will even persist in newly-opened instances of both kate and kwrite, and will keep affecting them until sending something new to the clipboard.

STEPS TO REPRODUCE
Not sure.

OBSERVED RESULT
Kate and Kwrite do not paste the text that is in the clipboard, and which was copied from the same Kate/Kwrite app.

EXPECTED RESULT
Should paste the text that is in the clipboard.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2021-10-04 23:44:31 UTC
Is this happening on X11 or Wayland?
Comment 2 David 2021-10-04 23:45:25 UTC
(In reply to Nate Graham from comment #1)
> Is this happening on X11 or Wayland?

In X11.
Comment 3 Nate Graham 2021-10-04 23:46:33 UTC
And just Kate and KWrite? Or any other apps? How about KDevelop?
Comment 4 David 2021-10-04 23:49:09 UTC
(In reply to Nate Graham from comment #3)
> And just Kate and KWrite? Or any other apps? How about KDevelop?

No idea, never used KDevelop, next time it happens will try notepadqq just in case. But GTK apps work fine as far as I can remember.
Comment 5 Nate Graham 2021-10-05 00:21:58 UTC
Cool, thanks. The information about GTK apps is helpful. I'm trying to get a sense of whether the problem might be caused by the Plasma clipboard system, or by the KTextEditor framework (which is used by KWrite, Kate, and KDevelop--hence my question). It would also be nice to know if it happens in any other KDE apps, like Okular, Gwenview, or Konsole.
Comment 6 David 2021-10-11 15:14:05 UTC
(In reply to Nate Graham from comment #5)
> Cool, thanks. The information about GTK apps is helpful. I'm trying to get a
> sense of whether the problem might be caused by the Plasma clipboard system,
> or by the KTextEditor framework (which is used by KWrite, Kate, and
> KDevelop--hence my question). It would also be nice to know if it happens in
> any other KDE apps, like Okular, Gwenview, or Konsole.

From some more experimentation, when this happens it actually does not paste in either GTK or QT apps, and I think it might actually be an issue about sending it incorrectly to the clipboard.

If I open the clipboard, I see the entry is actually there even though it doesn't paste, but if I click it (so as to make it the current selection), then next time I try to paste it, it will work correctly.
Comment 7 Bug Janitor Service 2021-10-26 04:35:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 David 2021-10-26 13:18:27 UTC
All requested info is already provided.
Comment 9 Nate Graham 2021-11-08 22:39:56 UTC
Thanks. Seems like it could be an issue with the Clipboard subsystem itself.
Comment 10 Nate Graham 2024-02-22 20:26:54 UTC
I'm occasionally still able to reproduce this issue in Plasma 6 on Wayland.