The main window opens with a delay after a while
Describe the bug After some period of time after pressing the shortcut key for opening the CopyQ window (to show the clipboard items listing) it takes between 2 to 3 seconds to display the CopyQ window.
To Reproduce Install CopyQ. Assign shortcut from Plasma (Meta-V) (actual value makes no difference). First use the computer for some time to fill the history; after some time using the computer WITHOUT ENGAGING the CopyQ clipboard items listing window notice that pressing the shortcut to engage CopyQ results in a three seconds delay before displaying the window.
Expected behavior CopyQ window should have been displayed instantaneous the same way it is displayed after two or three calls to CopyQ (or immediately after install)
Version, OS and Environment CopyQ Clipboard Manager 9.0.0 Qt: 5.15.14 KNotifications: 5.116.0 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Fedora Linux 40 (Workstation Edition)
Plasma on X11 running on Intel Core i9-12900K with both "E" and "P" cores but the problem manifests itself on other classic Intel architecture and the same Fedora configuration.
free -h
total used free shared buff/cache available
Mem: 62Gi 14Gi 27Gi 3.8Gi 25Gi 47Gi
Swap: 23Gi 0B 23Gi
Additional context Definitely not a keyboard problem and not an issue with the "E"/"P" Intel Core architecture: it happens on completely different Intel systems too. The problem is actually difficult to reproduce because once you notice it, it disappears (almost like a "heisenbug") and the application window will appear immediately.
What can be said for sure is that it takes about two to five minutes of regular use of the computer without displaying the CopyQ window to then get between one and three delayed displays of the clipboard window. So it's not always that it's only the first "call" to the CopyQ window which has the delay, sometimes multiple attempts result in the same two or three seconds delay. Sometimes simply swapping between items fixes the problem and the CopyQ window appears instantaneously. I tried reducing the number of items in history from 200 to 100 and for a short period of time that appeared to solve the problem.
I would like to underline that the issue is strictly related to the display of the clipboard items window, using the regular copy/paste is never delayed. At times the regular clipboard and the X clipboard become messed up though in the sense that no matter what I put into the clipboard, SHIFT-INSERT will paste the same item (most likely to occur after an image copy). The only way out of that problem is to display the clipboard items, chose any other item than the current selected one (and which should have been pasted...) then select back the item you're interested in.
The time it took me to write and edit the paragraphs above (from "Additional Context" downwards) was enough to produce the problem ONCE. Took two seconds to display the window when I pressed Win-V but additional presses of the keyboard shortcut resulted in the immediate display of the window.
Tried deleting the images from clipboard, made no difference. Following an older bug report from 2020 I disabled the tray icon, it made no difference either. The only thing that is most likely to fix the issue for a few minutes, is interacting with the CopyQ window one way or another.
copyq log comes empty but the GUI Help options produces this:
Warning [2024-10-22 09:18:30.450] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-22 09:18:30.451] <monitorClipboard-93093>: ELAPSED 5002 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:18:30.452] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 09:19:49.778] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-22 09:19:49.780] <monitorClipboard-93093>: ELAPSED 5002 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:19:49.781] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 09:19:49.802] <synchronizeToSelection-146689>: ELAPSED 5001 ms accessing [data:text/plain]
Warning [2024-10-22 09:19:49.804] <synchronizeToSelection-146689>: ELAPSED 5002 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:19:49.805] <synchronizeToSelection-146689>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 09:19:49.779] <synchronizeFromSelection-146691>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-22 09:19:49.880] <synchronizeFromSelection-146691>: ELAPSED 5101 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:19:49.880] <synchronizeFromSelection-146691>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 09:33:55.592] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-22 09:33:55.602] <monitorClipboard-93093>: ELAPSED 5011 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:33:55.603] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 09:36:46.540] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-22 09:36:46.550] <monitorClipboard-93093>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:36:46.550] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 09:52:40.314] <monitorClipboard-93093>: ELAPSED 5001 ms accessing [data:text/plain]
Warning [2024-10-22 09:52:40.323] <monitorClipboard-93093>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:52:40.324] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 09:58:53.944] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-22 09:58:53.954] <monitorClipboard-93093>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-22 09:58:53.955] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-22 10:05:28.419] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-22 10:05:28.421] <monitorClipboard-93093>: ELAPSED 5002 ms accessing [UTF8:text/plain]
Warning [2024-10-22 10:05:28.422] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-23 14:41:10.559] <monitorClipboard-93093>: ELAPSED 5001 ms accessing [data:text/plain]
Warning [2024-10-23 14:41:10.560] <monitorClipboard-93093>: ELAPSED 5002 ms accessing [UTF8:text/plain]
Warning [2024-10-23 14:41:10.560] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-23 15:12:46.026] <monitorClipboard-93093>: ELAPSED 5001 ms accessing [data:text/plain]
Warning [2024-10-23 15:12:46.036] <monitorClipboard-93093>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-23 15:12:46.036] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-23 15:20:57.486] <synchronizeFromSelection-288071>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-23 15:20:57.486] <synchronizeFromSelection-288071>: ELAPSED 5001 ms accessing [UTF8:text/plain]
Warning [2024-10-23 15:20:57.487] <synchronizeFromSelection-288071>: Clipboard data expired, refusing to access old data
Warning [2024-10-23 15:20:57.512] <synchronizeToSelection-288070>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-23 15:20:57.512] <synchronizeToSelection-288070>: ELAPSED 5000 ms accessing [UTF8:text/plain]
Warning [2024-10-23 15:20:57.513] <synchronizeToSelection-288070>: Clipboard data expired, refusing to access old data
Warning [2024-10-23 15:20:57.486] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-23 15:20:57.587] <monitorClipboard-93093>: ELAPSED 5101 ms accessing [UTF8:text/plain]
Warning [2024-10-23 15:20:57.587] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-23 18:55:24.368] <monitorClipboard-93093>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-23 18:55:24.377] <monitorClipboard-93093>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-23 18:55:24.378] <monitorClipboard-93093>: Clipboard data expired, refusing to access old data
Warning [2024-10-23 20:01:53.280] <Server-3153>: CopyQ server is already running.
Warning [2024-10-24 15:17:56.841] <monitorClipboard-3450>: ELAPSED 5002 ms accessing [data:text/plain]
Warning [2024-10-24 15:17:56.851] <monitorClipboard-3450>: ELAPSED 5012 ms accessing [UTF8:text/plain]
Warning [2024-10-24 15:17:56.852] <monitorClipboard-3450>: Clipboard data expired, refusing to access old data
Warning [2024-10-25 10:44:20.649] <monitorClipboard-3450>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-25 10:44:20.650] <monitorClipboard-3450>: ELAPSED 5001 ms accessing [UTF8:text/plain]
Warning [2024-10-25 10:44:20.651] <monitorClipboard-3450>: Clipboard data expired, refusing to access old data
Warning [2024-10-25 13:44:49.041] <monitorClipboard-3450>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-25 13:44:49.050] <monitorClipboard-3450>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-25 13:44:49.051] <monitorClipboard-3450>: Clipboard data expired, refusing to access old data
Warning [2024-10-25 14:21:27.234] <monitorClipboard-3450>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-25 14:21:27.235] <monitorClipboard-3450>: ELAPSED 5002 ms accessing [UTF8:text/plain]
Warning [2024-10-25 14:21:27.235] <monitorClipboard-3450>: Clipboard data expired, refusing to access old data
Warning [2024-10-25 14:21:27.235] <synchronizeFromSelection-99162>: ELAPSED 5002 ms accessing [data:text/plain]
Warning [2024-10-25 14:21:27.336] <synchronizeFromSelection-99162>: ELAPSED 5103 ms accessing [UTF8:text/plain]
Warning [2024-10-25 14:21:27.336] <synchronizeFromSelection-99162>: Clipboard data expired, refusing to access old data
Warning [2024-10-27 20:35:10.527] <synchronizeFromSelection-212728>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-27 20:35:10.537] <synchronizeFromSelection-212728>: ELAPSED 5009 ms accessing [UTF8:text/plain]
Warning [2024-10-27 20:35:10.537] <synchronizeFromSelection-212728>: Clipboard data expired, refusing to access old data
Warning [2024-10-27 20:35:10.533] <monitorClipboard-3450>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-27 20:35:10.633] <monitorClipboard-3450>: ELAPSED 5101 ms accessing [UTF8:text/plain]
Warning [2024-10-27 20:35:10.633] <monitorClipboard-3450>: Clipboard data expired, refusing to access old data
Warning [2024-10-27 20:35:20.882] <synchronizeFromSelection-212728>: ELAPSED 5001 ms accessing [data:text/plain]
Warning [2024-10-27 20:35:20.891] <synchronizeFromSelection-212728>: ELAPSED 5009 ms accessing [UTF8:text/plain]
Warning [2024-10-27 20:35:20.891] <synchronizeFromSelection-212728>: Clipboard data expired, refusing to access old data
Warning [2024-10-27 20:35:20.982] <monitorClipboard-3450>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-27 20:35:20.983] <monitorClipboard-3450>: ELAPSED 5001 ms accessing [UTF8:text/plain]
Warning [2024-10-27 20:35:20.983] <monitorClipboard-3450>: Clipboard data expired, refusing to access old data
Warning [2024-10-28 13:29:39.413] <monitorClipboard-3408>: ELAPSED 605 ms accessing [data:text/plain;charset=utf-8]
Warning [2024-10-28 13:29:39.423] <monitorClipboard-3408>: ELAPSED 615 ms accessing [UTF8:text/plain;charset=utf-8]
Warning [2024-10-28 18:00:10.308] <monitorClipboard-3408>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-28 18:00:10.317] <monitorClipboard-3408>: ELAPSED 5009 ms accessing [UTF8:text/plain]
Warning [2024-10-28 18:00:10.317] <monitorClipboard-3408>: Clipboard data expired, refusing to access old data
Warning [2024-10-28 18:00:10.552] <synchronizeFromSelection-46434>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-28 18:00:10.560] <synchronizeFromSelection-46434>: ELAPSED 5009 ms accessing [UTF8:text/plain]
Warning [2024-10-28 18:00:10.561] <synchronizeFromSelection-46434>: Clipboard data expired, refusing to access old data
Warning [2024-10-28 18:00:20.653] <monitorClipboard-3408>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-28 18:00:20.662] <monitorClipboard-3408>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-28 18:00:20.662] <monitorClipboard-3408>: Clipboard data expired, refusing to access old data
Warning [2024-10-28 18:00:21.039] <synchronizeFromSelection-46434>: ELAPSED 5001 ms accessing [data:text/plain]
Warning [2024-10-28 18:00:21.048] <synchronizeFromSelection-46434>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-28 18:00:21.048] <synchronizeFromSelection-46434>: Clipboard data expired, refusing to access old data
Warning [2024-10-28 18:01:56.892] <synchronizeFromSelection-46434>: ELAPSED 5001 ms accessing [data:text/plain;charset=utf-8]
Warning [2024-10-28 18:01:56.902] <synchronizeFromSelection-46434>: ELAPSED 5011 ms accessing [UTF8:text/plain;charset=utf-8]
Warning [2024-10-28 18:01:56.902] <synchronizeFromSelection-46434>: Clipboard data expired, refusing to access old data
Warning [2024-10-29 09:37:30.245] <synchronizeFromSelection-64119>: Failed to provide clipboard
Warning [2024-10-29 10:35:38.498] <synchronizeFromSelection-68628>: Failed to provide clipboard
Warning [2024-10-29 10:35:41.656] <synchronizeFromSelection-68647>: Failed to provide clipboard
Warning [2024-10-29 10:57:22.203] <synchronizeFromSelection-72584>: Failed to provide clipboard
Warning [2024-10-29 11:00:21.463] <synchronizeFromSelection-73146>: Failed to provide clipboard
Warning [2024-10-29 11:05:13.825] <synchronizeFromSelection-73903>: Failed to provide clipboard
Warning [2024-10-29 11:15:18.264] <synchronizeFromSelection-75113>: Failed to provide clipboard
Warning [2024-10-29 11:27:08.936] <synchronizeFromSelection-76702>: Failed to provide clipboard
Warning [2024-10-29 13:48:40.964] <synchronizeFromSelection-86220>: Failed to provide clipboard
Warning [2024-10-30 13:08:52.162] <monitorClipboard-3408>: ELAPSED 5000 ms accessing [data:text/plain]
Warning [2024-10-30 13:08:52.172] <monitorClipboard-3408>: ELAPSED 5010 ms accessing [UTF8:text/plain]
Warning [2024-10-30 13:08:52.172] <monitorClipboard-3408>: Clipboard data expired, refusing to access old data
Can you try CopyQ 9.1.0? I've fixed some context menu update problems.
OK, upgraded to 9.1.0. Sorry to have to report but, after what appeared to be a promising start the issue is back.
What I can confirm though is that on a freshly booted Fedora Linux the rate at which the issue appears is way lower. I mean in three hours after the update I've only noticed the issue twice. But, after several "computer sleep -> computer wake" cycles the problem re-appeared.
Will need more experimentation but it would seem as if heavy usage of am HTML rendering engine (either Gecko or the Chrome equivalent) to edit / work with complex JavaScript (e.g. this text editor here) would make the problem appear faster.
Before you ask: no, echo 1 | sudo tee /proc/sys/vm/compact_memory made no difference.
Hi, I had a similar problem, but read somewhere that using nVidia GPU might have to do with it. Are you using nVidia GPU? What I did, as a experiment is that I disabled the Composing with Shift+Alt+F12 and CopyQ started behaving really fast. So then, I went to System Settings -> Window Management -> Window Rules, added a new profile for CopyQ:
- Window Class (Substring Match): copyq
- Window Role (Exact Match): main
- Block Composing (Force): Yes
Now, I have Composing enabled, like always and CopyQ w/o composing, which makes it fast and responsive. Good luck!
Hi, thanks for your suggestions.
Silly me, I thought I specified the GPU... apparently I didn't.
Right now I'm running on i9-12900K's native GPU (whatever that is) and in all cases where I've encountered the issue it was X11 on Intel GPUs. I will try your suggestion though, who knows.
Hi, I had a similar problem, but read somewhere that using nVidia GPU might have to do with it. Are you using nVidia GPU? What I did, as a experiment is that I disabled the Composing with Shift+Alt+F12 and CopyQ started behaving really fast. So then, I went to System Settings -> Window Management -> Window Rules, added a new profile for CopyQ:
- Window Class (Substring Match): copyq
- Window Role (Exact Match): main
- Block Composing (Force): Yes
Now, I have Composing enabled, like always and CopyQ w/o composing, which makes it fast and responsive. Good luck!
I've tried this and indeed the CopyQ shows up instantly, no delay for the window to show up. However, now when closing the window by performing an action such as selecting what to paste, the whole screen flashes black and it seems to redraw everything. That's on X11, on wayland that doesn't seem to happen.
me too.
I am AMD GPU.
but I delete all log files, and all clip items, that is OK!
Thank you very much for reporting @cmvizitiu
Does this persist with CopyQ 13 or ulterior? If so, by “the context menu”, do you mean the tray menu?
License
This comment and any other from myself on this ticket is offered under the terms of CC0 1.0.
@chrapuch, @xkonglong: Which operating system do you use?
@chrapuch, @xkonglong: Which operating system do you use?
It used to happen on MX Linux 23 (Debian 12) and now is still happening on MX Linux 25 (Debian 13). I had nvidia before, now I have amd - no difference.
Thank you very much for reporting @cmvizitiu
Does this persist with CopyQ 13 or ulterior? If so, by “the context menu”, do you mean the tray menu?
13.0.0 and now with a NVIDIA board (but no specific NVIDIA measures taken); I'll test on Intel boards as soon as I get a chance. You are right I should have been more specific: What I meant was the window which appears if you right-click on the icon in the system tray and choose "Show main window under mouse cursor".
OK so problem is very much here but I've just noticed a peculiar aspect (can't possibly say whether is new or it was there from the beginning) and I think it helps in debugging:
If you press META-V (the assigned key for "Show main window under mouse cursor") AND the mouse cursor is above a window's title bar, the delay will happen almost 100%. If the mouse cursor is somewhere else it's fair chance... one out of four or five calls you get a delay then three or four correct ones, just like in the original description above. It makes no difference whether the application is QT or GTK. It doesn't even matter whether it's the window in focus or not.
Greetings,
Thank you very much for reporting @cmvizitiu Does this persist with CopyQ 13 or ulterior? If so, by “the context menu”, do you mean the tray menu?
13.0.0 and now with a NVIDIA board (but no specific NVIDIA measures taken); I'll test on Intel boards as soon as I get a chance.
Thanks again @cmvizitiu
You are right I should have been more specific: What I meant was the window which appears if you right-click on the icon in the system tray and choose "Show main window under mouse cursor".
So, if I understand correctly, the delay happens when opening the main window? It would help to clarify your reproduction steps.
OK so problem is very much here but I've just noticed a peculiar aspect (can't possibly say whether is new or it was there from the beginning) and I think it helps in debugging:
If you press META-V (the assigned key for "Show main window under mouse cursor") AND the mouse cursor is above a window's title bar
Do you mean over (on) the title bar? If you really mean above, would you mind providing a screencast?
the delay will happen almost 100%. If the mouse cursor is somewhere else it's fair chance... one out of four or five calls you get a delay then three or four correct ones, just like in the original description above.
Thank you According to this ticket’s title, this happens after "a while" (about two to five minutes of regular use of the computer). Do you maintain that, or would you say the time needed to reproduce is highly proportional to the number of times you open the main window (i.e., you would reproduce in less than 1 minute if you open/close the main window continuously)?
If I understand correctly, I find your process a little unusual. Are you aware that you can set a keyboard shortcut for the "Show main window under mouse cursor" command?
Can you provide a new extract of your CopyQ logs while specifying at which time(s) (at least which minute) the bug occurred?
https://github.com/user-attachments/assets/55ae31f3-ec04-4daf-9fe1-e8daeb6bb1a7 https://github.com/user-attachments/assets/257f33e3-3516-42cf-9a86-60934e288a91
I recorded also the keyboard sound so that you can see and hear the delay between the keyboard shortcut and the window reaction.
I know I can set a shortcut for that, as I wrote I'm using META-V (the "Win" key)
As for the usage pattern: it's about renaming some stupid files based on various criteria... I've tried everything and eventually got back to simply using the keyboard and the clipboard.
OK, I'd better give up on trying to predict the bug's behavior: the only predictable thing is that following a fresh start I've got hours of work before delay starts creeping in. Then it's pure luck it would seem.
https://github.com/user-attachments/assets/55ae31f3-ec04-4daf-9fe1-e8daeb6bb1a7 https://github.com/user-attachments/assets/257f33e3-3516-42cf-9a86-60934e288a91
I recorded also the keyboard sound so that you can see and hear the delay between the keyboard shortcut and the window reaction.
Thank you very much Note that these videos use the Opus codec, which Firefox < 147 does not support. VLC and Chromium can play fine.
I know I can set a shortcut for that, as I wrote I'm using META-V (the "Win" key)
Ah, I had misunderstood. Apologies I could not reproduce this with ~50 attempts using Ctrl+Shift+Backspace on 2 PCs, both running 13.0.0-101-gb8b0493e on Windows 11 25H2.
As for the usage pattern: it's about renaming some stupid files based on various criteria... I've tried everything and eventually got back to simply using the keyboard and the clipboard.
OK, I'd better give up on trying to predict the bug's behavior: the only predictable thing is that following a fresh start I've got hours of work before delay starts creeping in. Then it's pure luck it would seem.
If audio is properly synced with video, it sounds like the delay is more 1 s than 2 to 3 s. Is that correct? Could it be that the delay gradually increases over time?
Does this happen if you use “Show/hide main window” (instead of "Show main window under mouse cursor")?
I could not reproduce this with ~50 attempts using Ctrl+Shift+Backspace on 2 PCs, both running 13.0.0-101-gb8b0493e on Windows 11 25H2.
If you've been using that windows for a long period of time (days...) with multiple resumes from sleep then it looks like Linux specific. I wonder if a virtual machine would be of any help.
If audio is properly synced with video, it sounds like the delay is more 1 s than 2 to 3 s. Is that correct?
I watched the videos again: the audio is properly synced and it confirms my original description of the bug which was "2 to 3s delay".
Note that the longer video manages to catch the really annoying irregular manifestation of the bug: some times CopyQ works as it should sometimes you get a delay (in that case depending on the cursor position on the screen but it's not a definite rule).
Could it be that the delay gradually increases over time?
The delay doesn't increase over time: when it first happens it's the same 2 to 3s delay from the beginning. What increases over time is the number of delays: freshly booted not delay occurrences, CopyQ works as it should; many hours (if not days) of work later and especially one or two resumes from sleep? Increased number of delays.
Does this happen if you use “Show/hide main window” (instead of "Show main window under mouse cursor")?
Lemme get back to you on this.
I watched the videos again: the audio is properly synced and it confirms my original description of the bug which was "2 to 3s delay".
Thanks, but I watched them again, this time right next to a timer, and I believe it always took less than 2 s. However, this may depend on when we start counting. There can be significant time between the moment you push down V and release Win. One thing which might simplify debugging is to use a single-key shortcut.
Note that the longer video manages to catch the really annoying irregular manifestation of the bug: some times CopyQ works as it should sometimes you get a delay (in that case depending on the cursor position on the screen but it's not a definite rule).
Right, that is clear.
The delay doesn't increase over time: when it first happens it's the same 2 to 3s delay from the beginning. What increases over time is the number of delays: freshly booted not delay occurrences, CopyQ works as it should; many hours (if not days) of work later and especially one or two resumes from sleep? Increased number of delays.
Thanks
Please also check whether X.org logs something when this occurs.
我删除程序,清空相关文件. 重装的copyQ才正常.
I deleted the program and cleared the relevant files. The newly reinstalled CopyQ worked properly.
Can you share copyq version output?
What is your Desktop Environment / Window Manager?
Do you still use X11?
Is it possibly happening because of the ELAPSED XYZ ms accessing in the logs? I think those should be rare - maybe caused by a misbehaving application that currently provide the clipboard (but it could be also CopyQ itself).
What could possibly help to investigate the issue it to enable debug logs.
Operating System: Fedora Linux 43 KDE Plasma Version: 6.6.2 KDE Frameworks Version: 6.24.0 Qt Version: 6.10.2 Kernel Version: 6.18.16-200.fc43.x86_64 (64-bit) Graphics Platform: X11 Processors: 24 × 12th Gen Intel® Core™ i9-12900K Memory: 64 GiB of RAM (62.6 GiB usable) Graphics Processor 1: NVIDIA GeForce RTX 4070 Graphics Processor 2: Intel® UHD Graphics 770
@Chealer modifying the shortcut to "Show/hide main window" instead of "Show window under cursor" made no difference.
@hluk I followed the instructions to enable the debug log and so far there's a very interesting thing to report: with CopyQ running from a terminal and debug enabled, the problem seems to disappear. Will keep trying eventually I will wrap the executable in a shell script to pass the ENV variables.
@hluk wrote:
Is it possibly happening because of the
ELAPSED XYZ ms accessingin the logs?
I cannot exclude that both issues are related, but they visibly do not occur at the same time, since the delays reported are much shorter than 5 s. Although the log did indicate 1 (or 2) delay(s) of ~6 ds.
Thank you very much @cmvizitiu
Can you join what CopyQ logs specifically in the timeframe where such a delayed opening occurs?
Does this sometimes happen when opening by clicking the tray icon?
