hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.75k stars 445 forks source link

Wayland does not support QWindow::requestActivate() | ELAPSED 6733 ms accessing "imageData" & "text/plain" #2356

Open thracyturnix opened 1 year ago

thracyturnix commented 1 year ago

Before creating a new issue, see list of known issues. OK.

Describe the bug Warning [2023-05-04 22:31:15.731] : [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-05 04:33:03.970] : [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-05 04:33:03.974] : ELAPSED 6887 ms accessing "imageData" Note [2023-05-05 09:17:16.436] : Command “copyq --clipboard-…s monitorClipboard” Note [2023-05-05 09:17:16.436] : Error: Process crashed Note [2023-05-05 09:17:16.436] : 1. copyq --clipboard-access monitorClipboard Warning [2023-05-05 13:31:01.978] : [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-05 13:31:01.986] : ELAPSED 6733 ms accessing "imageData" Warning [2023-05-05 13:38:00.406] : Failed to set global shortcut "Ctrl+" for command "Show/hide main window". Warning [2023-05-05 13:38:03.594] <Server-4>: [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-05 13:38:03.605] <Server-4>: [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-05 13:39:36.212] <Server-4>: [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-05 16:49:52.985] <monitorClipboard-1245>: [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-05 16:49:52.988] <monitorClipboard-1245>: ELAPSED 6635 ms accessing "imageData" Warning [2023-05-05 17:51:33.993] <monitorClipboard-1245>: [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-05 17:51:34.004] <monitorClipboard-1245>: ELAPSED 6696 ms accessing "imageData" Warning [2023-05-06 06:44:46.969] <monitorClipboard-1245>: [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-06 06:44:46.980] <monitorClipboard-1245>: ELAPSED 7085 ms accessing "imageData" Warning [2023-05-06 07:38:54.022] <Server-4>: [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-06 07:39:10.402] <Server-4>: Failed to set global shortcut "Ctrl+" for command "Show/hide main window". Warning [2023-05-06 07:39:11.497] : Failed to set global shortcut "Ctrl+`" for command "Show/hide main window". Warning [2023-05-06 07:39:16.318] : [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-06 07:39:16.354] : [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-06 15:30:39.983] : [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-06 15:30:39.986] : ELAPSED 6725 ms accessing "imageData" Warning [2023-05-06 15:42:47.611] : [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-06 18:24:50.984] : [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-06 18:24:51.018] : ELAPSED 6720 ms accessing "imageData" Warning [2023-05-07 06:47:22.974] : [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-07 06:47:22.992] : ELAPSED 6783 ms accessing "imageData" Warning [2023-05-07 07:26:07.923] : [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-07 07:31:47.707] : [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate() Warning [2023-05-07 07:49:48.408] : [default] QtWarning: DataControlOffer: timeout reading from pipe Warning [2023-05-07 07:49:48.419] : ELAPSED 1011 ms accessing "text/plain" Warning [2023-05-07 07:49:48.419] : ELAPSED 1012 ms accessing "UTF8:text/plain" Warning [2023-05-07 08:03:33.361] : [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate()

To Reproduce

Expected behavior Cant set hotkey. Crashy,

Screenshots If applicable, add screenshots to help explain your problem.

Version, OS and Environment Steps to reproduce the behavior: LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: Fedora Description: Fedora release 38 (Thirty Eight) Release: 38 Codename: ThirtyEight Wayland Plasma

Additional context Sorry to bug you with this. Probably something I am doing. I could probably just swap it out for another clipboard manager but have been using copyq for years in ubuntu without any problem and am kind of attached to it at this point. Any chance someone could run an eye over this and tell me what I have done wrong?

thracyturnix commented 1 year ago

additional logs

Warning [2023-05-08 07:16:52.210] <monitorClipboard-11521>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-08 07:16:52.234] <monitorClipboard-11521>: ELAPSED 6742 ms accessing "imageData"
Warning [2023-05-08 16:38:04.388] <monitorClipboard-11521>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-08 16:38:04.416] <monitorClipboard-11521>: ELAPSED 6973 ms accessing "imageData"
Warning [2023-05-08 16:49:54.326] <monitorClipboard-11521>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-08 16:49:54.364] <monitorClipboard-11521>: ELAPSED 6709 ms accessing "imageData"
Warning [2023-05-08 20:43:49.357] <monitorClipboard-11521>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-08 20:43:49.364] <monitorClipboard-11521>: ELAPSED 6670 ms accessing "imageData"
Warning [2023-05-09 07:21:41.354] <monitorClipboard-11521>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-09 07:21:41.368] <monitorClipboard-11521>: ELAPSED 6690 ms accessing "imageData"
Warning [2023-05-09 08:30:10.390] <monitorClipboard-11521>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-09 08:30:10.421] <monitorClipboard-11521>: ELAPSED 6679 ms accessing "imageData"
Warning [2023-05-09 10:12:21.390] <monitorClipboard-11521>: ELAPSED 6758 ms accessing "imageData"
Warning [2023-05-09 13:37:06.390] <monitorClipboard-11521>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-09 13:37:06.414] <monitorClipboard-11521>: ELAPSED 6714 ms accessing "imageData"
Warning [2023-05-10 13:50:52.424] <Server-4>: [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate()
Warning [2023-05-10 20:29:31.354] <Server-4>: [default] QtWarning: The Wayland connection broke. Did the Wayland compositor die?
Warning [2023-05-10 20:29:31.378] <monitorClipboard-17993>: [default] QtWarning: The Wayland connection broke. Did the Wayland compositor die?
ERROR [2023-05-10 20:29:31.448] <Client-5783>: Connection lost!
Warning [2023-05-11 07:44:53.140] <Server-4>: Failed to set global shortcut "Ctrl+`" for command "Show/hide main window".
Warning [2023-05-11 07:44:53.194] <Server-4>: [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate()
Warning [2023-05-11 07:53:36.845] <monitorClipboard-20>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Warning [2023-05-11 07:53:36.881] <monitorClipboard-20>: ELAPSED 1036 ms accessing "text/plain"
Warning [2023-05-11 07:53:36.881] <monitorClipboard-20>: ELAPSED 1037 ms accessing "UTF8:text/plain"
Warning [2023-05-11 07:53:44.534] <monitorClipboard-20>: [default] QtWarning: DataControlOffer: timeout reading from pipe
Note [2023-05-11 07:53:45.192] <Server-4>: Command “copyq --clipboard-…s monitorClipboard”
Note [2023-05-11 07:53:45.192] <Server-4>:    Error: Process crashed
Note [2023-05-11 07:53:45.192] <Server-4>:    1. copyq --clipboard-access monitorClipboard
Warning [2023-05-11 08:00:32.233] <Server-4>: [qt.qpa.wayland] QtWarning: Wayland does not support QWindow::requestActivate()
hluk commented 1 year ago

CopyQ on Wayland does not support global shortcuts. You need to define them in your desktop environment. For example to show/hide main window assign shortcut to command copyq toggle.

You can also try running CopyQ as X11 app instead under Wayland (XWayland): https://copyq.readthedocs.io/en/latest/known-issues.html#on-linux-global-shortcuts-pasting-or-clipboard-monitoring-does-not-work

Some of the warning are just informative and come from the Qt framework (getting rid of them would potentially make the source code unnecessarily complex).

Not sure about the other warnings:

Something seems to be wrong with the compositor and maybe the application that sets clipboard.