CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Pinned empty piece of content sometimes created when copying pinned item

Open TheOnlyOnlyName opened this issue 6 months ago • 11 comments

Describe the bug I've noticed a bug where sometimes it fails to copy pinned items and instead creates an <EMPTY> item and pins it - This is quite annoying to have to manually unpin. Sometimes it also just creates a pinned duplicate of what you're trying to copy. I unfortunately do not have reliable repro steps.

To Reproduce

  • Pin some text
  • Copy the text

Expected behavior The text is always correctly copied like normal

Version, OS and Environment 10.0.0, Windows 11

TheOnlyOnlyName avatar Aug 18 '25 11:08 TheOnlyOnlyName

To show how annoying this is I didn't touch the pins for a few days and this is what happened 😭 (I have a habit of copying the letter a to keep something in my clipboard)

Image

TheOnlyOnlyName avatar Aug 22 '25 06:08 TheOnlyOnlyName

Similar issue here: when pasting a pinned item from a custom tab it occasionally gets added to the "default" tab and gets pinned there as well. Might be some timeout or race condition?

cioma avatar Sep 16 '25 08:09 cioma

Possibly related to #3147 and #3042.

I haven't seen any issue with pinned items myself. It could be related to some specific behavior on Windows. 🤔

hluk avatar Oct 04 '25 06:10 hluk

Strange, well it's been a constant annoying issue for me. Do you copy your pinned items often or do it from the right click tray icon menu like with pushing the corresponding numbers on your keyboard? Just throwing out some ideas of how I use it.

TheOnlyOnlyName avatar Oct 04 '25 06:10 TheOnlyOnlyName

Do you copy your pinned items often or do it from the right click tray icon menu like with the corresponding numbers?

I do not have many pinned item, and use them only in a separate tabs from the one that is used for clipboard. I also can test this only on Linux.

My testing does not show any problems when copying items from tray menu on my side either.

BTW, is your tab synchronized to a folder on the disk?

hluk avatar Oct 04 '25 07:10 hluk

BTW, is your tab synchronized to a folder on the disk?

Yes, in my case the tab that contains only pinned items is synchronized to a folder on the disk. I use Windows 10.

cioma avatar Oct 04 '25 12:10 cioma

Could someone explain exactly what reordering the things in the items tab does?

TheOnlyOnlyName avatar Oct 04 '25 17:10 TheOnlyOnlyName

Yes, in my case the tab that contains only pinned items is synchronized to a folder on the disk.

Synchronization may affect this.

Did you try the latest version of CopyQ? There was some important fix in v11.0.0 ("Fix missing data in the last item when tab is full").

Could someone explain exactly what reordering the things in the items tab does?

The plugin order should not change behavior, but it changes the order in which items/tabs are processed. Anyway, I tested it with the default plugin order and still cannot see any issues with pinned items.

hluk avatar Oct 05 '25 07:10 hluk

I will try downloading the latest version. Also, fwiw I changed my item order to match yours and haven't been able to reproduce since!

TheOnlyOnlyName avatar Oct 05 '25 07:10 TheOnlyOnlyName

@hluk Ever since changing my items tab to yours as well as updating, I have not experienced this issue!

TheOnlyOnlyName avatar Oct 07 '25 01:10 TheOnlyOnlyName

It still occasionally happens for me in v12 under Windows 10 with tab sync disabled. But it seems to happen less often than with tab sync enabled

cioma avatar Oct 08 '25 11:10 cioma