CopyQ not showing in Ubuntu 18.04.2 LTS

Created on 12 Apr 2019  Â·  14Comments  Â·  Source: hluk/CopyQ

CopyQ was working fine on my relatively new system and I was depending heavily on the stock clips I'd set up in in and the clip history. Then it appeared to crash and since then it hasn't worked. I've rebooted, reinstalled CopyQ (after a complete purge and moving the ~/.config/copyq directory) but all the same: I launch it and nothing visible happens but if I look in the process table a single CopyQ process is there with a RAM level going up and down. In desperation I have purged the version I had (from your PPA) and installed the source code and compiled the debug version and running the tests suggests to me that CopyQ is failing because the OS/gnome are failing to provide a lot of other things it needs. I've noticed some screen handling oddities with CloudBerry, a backup system but otherwise everything else seems to be working OK so I'm a bit lost and would love some advice if anyone has it. I'm attaching the CopyQ output from xvfb-run sh -c 'openbox & sleep 1; copyq tests' &> copyq_tests_CE_Aether_20190412b.txt

copyq_tests_CE_Aether_20190412b.txt

TIA,

Chris

Most helpful comment

+1

All 14 comments

Looks like the test are failing just because they see this warning:

QtWarning: Qt: Session management error: None of the authentication protocols specified are supported (:0, )

I've never seen this one but there is list of other warnings that tests need to ignore.

The warning above doesn't look like something that could cause any trouble.

After launching CopyQ, what does copyq show command do?

I hope I can reply by Email.

Many thanks Lukas, I saw that and, with due acknowledgement of really being a complete ignoramus here, I too suspected that wasn't the issue.

As root (perhaps a red herring) I got:

~# copyq show command
DEBUG: Waiting for server to start
ERROR: Cannot connect to server! Start CopyQ server first.
~#

as an ordinary user I get:

$ copyq show command
ERROR: Failed to open session mutex: QSystemSemaphore::handle: permission denied
DEBUG: Waiting for server to start
ERROR: Cannot connect to server! Start CopyQ server first.
$

If I start CopyQ from the (ordinary user) command line I get:

ERROR: Failed to create session mutex: QSystemSemaphore::handle: permission denied
DEBUG: Server "/home/chris/.config/copyq/.copyq_s" started.
DEBUG: Geometry: Window "MainWindow": New geometry for "Options/MainWindow_geometry_62x35"
DEBUG: Focus window is "Zimbra: Reply - Mozilla Firefox"
DEBUG: Loading configuration
DEBUG: Tab "&clipboard": Creating new tab
DEBUG: Tab "&clipboard": Saving 0 items
DEBUG: Tab "&clipboard": Items saved
DEBUG: Tab "&clipboard": 0 items loaded
DEBUG: Configuration loaded
DEBUG: Starting monitor
DEBUG: Executing: copyq monitorClipboard
DEBUG: Starting callback: onStart
DEBUG: Executing: copyq onStart
DEBUG: QtWarning: QPainter::begin: Paint device returned engine == 0, type: 3 (:0, )
DEBUG: QtWarning: QPainter::save: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setRenderHint: Painter must be active to set rendering hints (:0, )
DEBUG: QtWarning: QPainter::setRenderHint: Painter must be active to set rendering hints (:0, )

and many, many more lines of warnings after that. Th en # ps aux | grep copyq as root gives me this:

chris 27194 101 0.1 645996 44244 pts/0 Rl+ 12:27 0:12 copyq
root 27207 0.0 0.0 21536 1096 pts/1 S+ 12:27 0:00 grep --color=auto copyq

So it looks to me as if a CopyQ server process tries to launch but can't communicate with a CopyQ client process that dies (or vice versa ). That looks more informative and fatal to me than the warnings. Does it help you help me?! ps aux | grep copyq after the "copyq show command" alone shows no processes running with "copyq" in their names so I'm guessing that "copyq show command" is expecting to find a server process that isn't there.

The link you gave, [ https://github.com/hluk/CopyQ/blob/d84e941f39045275f6f0659fc84d5102ec96a181/src/tests/tests.cpp#L113, | https://github.com/hluk/CopyQ/blob/d84e941f39045275f6f0659fc84d5102ec96a181/src/tests/tests.cpp#L113, ]
jumps me into the middle of a lot of code so I wasn't sure if you were asking me to rerun the tests setting some warnings to be ignored.
I'm very happy to do that if you can make it easier for a luser to follow!

TIA,

Chris

From: "Lukas Holecek" notifications@github.com
To: "hluk/CopyQ" CopyQ@noreply.github.com
Cc: "cpsyctc2" ce_github@psyctc.org, "Author" author@noreply.github.com
Sent: Saturday, 13 April, 2019 08:18:38
Subject: Re: [hluk/CopyQ] CopyQ not showing in Ubuntu 18.04.2 LTS (#1125)

Looks like the test are failing just because they see this warning:
QtWarning: Qt: Session management error: None of the authentication protocols
specified are supported (:0, )

I've never seen this one but there is list of other [
https://github.com/hluk/CopyQ/blob/d84e941f39045275f6f0659fc84d5102ec96a181/src/tests/tests.cpp#L113
| warnings that tests need to ignore ] .

The warning above doesn't look like something that could cause any trouble.

After launching CopyQ, what does copyq show command do?

—
You are receiving this because you authored the thread.
Reply to this email directly, [
https://github.com/hluk/CopyQ/issues/1125#issuecomment-482780691 | view it on
GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AukAktXr7MRHkZqWStEJb42kZv9foPX8ks5vgXa-gaJpZM4csAdt
| mute the thread ] .

--
Chris Evans chris@psyctc.org Skype: chris-psyctc
Visiting Professor, University of Sheffield chris.evans@sheffield.ac.uk
I do some consultation work for the University of Roehampton chris.evans@roehampton.ac.uk and other places but this chris@psyctc.org remains my main Email address.
I have "semigrated" to France, see: https://www.psyctc.org/pelerinage2016/semigrating-to-france/ if you want to book to talk, I am trying to keep that to Thursdays and my diary is now available at: https://www.psyctc.org/pelerinage2016/ecwd_calendar/calendar/
Beware: French time, generally an hour ahead of UK. That page will also take you to my blog which started with earlier joys in France and Spain!

Whoa, there are a lot of suspicious errors.

Do you use CopyQ installed from main repositories? Looks like it could be caused by incompatible libraries.

What does copyq version and ldd /usr/bin/copyq print on console?

Quite. The version I have now is the one I compiled locally with your instructions to create the debug version, having had the same experience with the default Ubuntu version (I think it was that one, not from your PPA). I did then try purging that one and reinstalling and then purging and adding your PPA and installing that before purging again and rolling up this debug version. (I ended with "make install" after your instructions as I assumed that was how to get it installed!)

$ copyq version
CopyQ Clipboard Manager v3.8.0
Qt: 5.9.5
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 18.04.2 LTS

I thought I should see if I could get you more information about the
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic

I don't think that "No LSB modules are available." is as scary as it looks nor pertinent but I see that I could do " apt-get install lsb-core" if I wanted to add the core LSB modules. I'm happy to do that if you think it would help but don't want to make changes that may be irrelevant.

It looks as if my "make install" has put my compiled CopyQ executable in /usr/local/bin/ not /usr/bin. I guess that's the correct behaviour for a locally compiled version. So I get:

~/.config$ ldd /usr/bin/copyq
ldd: /usr/bin/copyq: No such file or directory
~/.config$ ldd /usr/local/bin/copyq
linux-vdso.so.1 (0x00007fff47e89000)
libQt5Test.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Test.so.5 (0x00007f43175c3000)
libXtst.so.6 => /usr/lib/x86_64-linux-gnu/libXtst.so.6 (0x00007f43173bd000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f4317085000)
libQt5X11Extras.so.5 => /usr/lib/x86_64-linux-gnu/libQt5X11Extras.so.5 (0x00007f4316e81000)
libQt5Network.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f4316af5000)
libQt5Svg.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Svg.so.5 (0x00007f43168a0000)
libQt5Script.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Script.so.5 (0x00007f431640a000)
libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f4315bc3000)
libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f431545a000)
libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f4314d0f000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4314986000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f43145e8000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f43143d0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4313fdf000)
/lib64/ld-linux-x86-64.so.2 (0x00007f4317f58000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4313dc0000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f4313bae000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f4313986000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4313782000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4313565000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f43132d9000)
libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f43130a7000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f4312e09000)
libicui18n.so.60 => /usr/lib/x86_64-linux-gnu/libicui18n.so.60 (0x00007f4312968000)
libicuuc.so.60 => /usr/lib/x86_64-linux-gnu/libicuuc.so.60 (0x00007f43125b1000)
libdouble-conversion.so.1 => /usr/lib/x86_64-linux-gnu/libdouble-conversion.so.1 (0x00007f43123a0000)
libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f431208a000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f4311e86000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f4311c80000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f4311a4f000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f4311799000)
libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f43114e5000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f43112b8000)
libicudata.so.60 => /usr/lib/x86_64-linux-gnu/libicudata.so.60 (0x00007f430f70f000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f430f49d000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f430f288000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f430f080000)

Very best and, as ever, thanks for the help,

Chris

From: "Lukas Holecek" notifications@github.com
To: "hluk/CopyQ" CopyQ@noreply.github.com
Cc: "cpsyctc2" ce_github@psyctc.org, "Author" author@noreply.github.com
Sent: Saturday, 13 April, 2019 13:29:02
Subject: Re: [hluk/CopyQ] CopyQ not showing in Ubuntu 18.04.2 LTS (#1125)

Whoa, there are a lot of suspicious errors.

Do you use CopyQ installed from main repositories? Looks like it could be caused
by incompatible libraries.

What does copyq version and ldd /usr/bin/copyq print on console?

—
You are receiving this because you authored the thread.
Reply to this email directly, [
https://github.com/hluk/CopyQ/issues/1125#issuecomment-482801078 | view it on
GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AukAklTMg_0m5_crwYcaIBVQxwFaBDu1ks5vgb9-gaJpZM4csAdt
| mute the thread ] .

--
Chris Evans chris@psyctc.org Skype: chris-psyctc
Visiting Professor, University of Sheffield chris.evans@sheffield.ac.uk
I do some consultation work for the University of Roehampton chris.evans@roehampton.ac.uk and other places but this chris@psyctc.org remains my main Email address.
I have "semigrated" to France, see: https://www.psyctc.org/pelerinage2016/semigrating-to-france/ if you want to book to talk, I am trying to keep that to Thursdays and my diary is now available at: https://www.psyctc.org/pelerinage2016/ecwd_calendar/calendar/
Beware: French time, generally an hour ahead of UK. That page will also take you to my blog which started with earlier joys in France and Spain!

Check permissions on the configuration files -- ls -l ~/.config/copyq and ls -ld ~/.config/copyq.

Also try removing the build directory and rebuilding from start.

$ ls -l ~/.config/copyq
total 44
-rw-r--r-- 1 chris chris 1099 Apr 13 12:28 copyq-bak.conf
-rw-r--r-- 1 chris chris 1099 Apr 13 12:28 copyq.conf
-rw-r--r-- 1 chris chris 36 Apr 13 12:28 copyq-filter.ini
-rw-r--r-- 1 chris chris 676 Apr 13 13:30 copyq_geometry.ini
-rw-r--r-- 1 chris chris 144 Apr 13 12:28 copyq_no_session.ini
-rw------- 1 chris chris 32 Apr 13 12:28 copyq.pub
-rw-r--r-- 1 chris chris 13168 Apr 13 13:22 'copyq_tab_JmNsaXBib2FyZA==.dat'
-rw-r--r-- 1 chris chris 154 Apr 13 13:30 copyq_tabs.ini

$ ls -ld ~/.config/copyq
drwxr-xr-x 2 chris chris 4096 Apr 13 13:30 /home/chris/.config/copyq#

"Also try removing the build directory and rebuilding from start."
Sure, but perhaps best if I'm 100% sure I'm doing the right thing here:

cd ~/Downloads/CopyQ-3.8.0
rm -R build
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE = Debug -DWITH_TESTS = ON ..
make
make install

Is that right? I assume I should check first that there is no running copyq process and kill it if there is. (There isn't now.) and that I should rm /usr/local/bin/copyq first to be 100% there is no trace of the earlier compilation.

From: "Lukas Holecek" notifications@github.com
To: "hluk/CopyQ" CopyQ@noreply.github.com
Cc: "cpsyctc2" ce_github@psyctc.org, "Author" author@noreply.github.com
Sent: Saturday, 13 April, 2019 14:22:36
Subject: Re: [hluk/CopyQ] CopyQ not showing in Ubuntu 18.04.2 LTS (#1125)

Check permissions on the configuration files -- ls -l ~/.config/copyq and ls -ld
~/.config/copyq .

Also try removing the build directory and rebuilding from start.

—
You are receiving this because you authored the thread.
Reply to this email directly, [
https://github.com/hluk/CopyQ/issues/1125#issuecomment-482804584 | view it on
GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AukAkgBFczeoDuy92uv-Um05Y1Dn5qMVks5vgcwMgaJpZM4csAdt
| mute the thread ] .

--
Chris Evans chris@psyctc.org Skype: chris-psyctc
Visiting Professor, University of Sheffield chris.evans@sheffield.ac.uk
I do some consultation work for the University of Roehampton chris.evans@roehampton.ac.uk and other places but this chris@psyctc.org remains my main Email address.
I have "semigrated" to France, see: https://www.psyctc.org/pelerinage2016/semigrating-to-france/ if you want to book to talk, I am trying to keep that to Thursdays and my diary is now available at: https://www.psyctc.org/pelerinage2016/ecwd_calendar/calendar/
Beware: French time, generally an hour ahead of UK. That page will also take you to my blog which started with earlier joys in France and Spain!

Looks OK. BTW, you can install the app to custom prefix so as not to get /usr cluttered.

cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_TESTS=ON -DCMAKE_INSTALL_PREFIX=$PWD/install ..

Done. Still no usable CopyQ sadly. Launching it starts with this:

~/Downloads/CopyQ-3.8.0/build/install/bin$ ./copyq
ERROR: Failed to create session mutex: QSystemSemaphore::handle: permission denied
DEBUG: Server "/home/chris/.config/copyq/.copyq_s" started.

and "ps aux | grep copy" as root showed this sequence

:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin# ps aux | grep copy
chris 22879 100 0.1 646420 44280 pts/0 Rl+ 15:52 0:29 ./copyq
root 22903 0.0 0.0 21536 1152 pts/1 S+ 15:52 0:00 grep --color=auto copy
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin# ps aux | grep copy
chris 22879 99.4 0.1 720448 58736 pts/0 Rl+ 15:52 1:37 ./copyq
chris 22919 0.0 0.0 2503560 23780 pts/0 Sl+ 15:53 0:00 /home/chris/Downloads/CopyQ-3.8.0/build/install/bin/copyq monitorClipboard
chris 22920 0.0 0.0 2265904 17836 pts/0 Sl+ 15:53 0:00 /home/chris/Downloads/CopyQ-3.8.0/build/install/bin/copyq onStart
chris 22931 0.0 0.0 2265904 18148 pts/0 Sl+ 15:53 0:00 /home/chris/Downloads/CopyQ-3.8.0/build/install/bin/copyq eval -- runMenuCommandFilters()
root 22948 0.0 0.0 21536 1008 pts/1 S+ 15:53 0:00 grep --color=auto copy
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin# ps aux | grep copy
chris 22879 80.0 0.2 724292 87400 pts/0 Sl+ 15:52 2:28 ./copyq
chris 22919 0.1 0.0 2561432 31344 pts/0 Sl+ 15:53 0:00 /home/chris/Downloads/CopyQ-3.8.0/build/install/bin/copyq monitorClipboard
root 22992 0.0 0.0 21536 1028 pts/1 R+ 15:55 0:00 grep --color=auto copy
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin# ps aux | grep copy
chris 22879 70.5 0.2 724292 87400 pts/0 Sl+ 15:52 2:28 ./copyq
chris 22919 0.0 0.0 2561432 31344 pts/0 Sl+ 15:53 0:00 /home/chris/Downloads/CopyQ-3.8.0/build/install/bin/copyq monitorClipboard
root 23004 0.0 0.0 21536 1080 pts/1 R+ 15:55 0:00 grep --color=auto copy
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin# ps aux | grep copy
chris 22879 53.4 0.2 724292 87400 pts/0 Sl+ 15:52 2:28 ./copyq
chris 22919 0.0 0.0 2561432 31344 pts/0 Sl+ 15:53 0:00 /home/chris/Downloads/CopyQ-3.8.0/build/install/bin/copyq monitorClipboard
root 23067 0.0 0.0 21536 1088 pts/1 R+ 15:56 0:00 grep --color=auto copy
:/home/chris/Downloads/CopyQ-3.8.0/build/install/bin#

You will know better than me but my reading of this is that CopyQ launches but is looking for some way it communicates with the qt or gnome interface handlers and isn't getting it wants back so it isn't appearing but is sitting there. In the console window in which I launched it it is spewing out warnings. Yes, it spews out a torrent more if I copy something to the clipboard: I think you can see where it starts to spew the warnings after the NewItem: adding message. There is loads more below but it looks very repetitive. Is the "painter" something you use for CopyQ that many other programs don't use? That would explain why all my main "heavy" programs/apps seem fine. The one other that seems to be having problems is CloudBerry. If I launch that a very distorted window for it comes up which is clearly totally failing to communicate with gnome to fit itself to the screen and paint its internal details properly.

I installed the list of dependencies you have for Ubuntu when I compiled it. There were no error messages I saw. Yes, just tried that again:
"0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade." so it doesn't look as if missing dependencies are the issue, and it was running fine until I think it was late last week.

OK, back to you with my fingers crossed. Chris

DEBUG: QtWarning: QPainter::end: Painter not active, aborted (:0, )
DEBUG: QtWarning: QPixmap::scaled: Pixmap is a null pixmap (:0, )
DEBUG: Tab "&clipboard": Saving 5 items
DEBUG: Tab "&clipboard": Items saved
DEBUG: Executing: copyq onClipboardChanged
DEBUG: Executing: copyq onClipboardChanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardChanged
DEBUG: Executing: copyq onClipboardChanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardUnchanged
DEBUG: Executing: copyq onClipboardChanged
DEBUG: New item: Adding
DEBUG: QtWarning: QPainter::begin: Paint device returned engine == 0, type: 3 (:0, )
DEBUG: QtWarning: QPainter::save: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setRenderHint: Painter must be active to set rendering hints (:0, )
DEBUG: QtWarning: QPainter::setRenderHint: Painter must be active to set rendering hints (:0, )
DEBUG: QtWarning: QPainter::worldTransform: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setWorldTransform: Painter not active (:0, )
DEBUG: QtWarning: QPainter::brush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::worldTransform: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setWorldTransform: Painter not active (:0, )
DEBUG: QtWarning: QPainter::opacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::brush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setOpacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::drawPath: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setOpacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::drawPath: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setOpacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setWorldTransform: Painter not active (:0, )
DEBUG: QtWarning: QPainter::brush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::opacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::brush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setOpacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::drawPath: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setOpacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::drawPath: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setOpacity: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setPen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::brush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::setBrush: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )
DEBUG: QtWarning: QPainter::pen: Painter not active (:0, )

I don't think that CopyQ does anything by itself that could cause those errors. Looks like some permissions on system are broken.

Try launching new session, e.g. copyq -s session2, this will make use of different config directory (~/.config/copyq-session2). It should be then possible to show main window with copyq -s session2 show.

Thanks Lukas,

Those commands clearly did launch a new instance of CopyQ. Before:

ps aux | grep copyq

chris 30674 99.3 0.1 646476 44516 pts/0 Rl+ 11:37 0:40 copyq -s session2
root 30694 0.0 0.0 21536 1100 pts/1 S+ 11:37 0:00 grep --color=auto copyq

After:

ps aux | grep copyq

chris 30674 99.2 0.1 720368 62672 pts/0 Rl+ 11:37 1:45 copyq -s session2
chris 30705 0.1 0.0 2503560 23560 pts/0 Sl+ 11:38 0:00 /usr/local/bin/copyq monitorClipboard
chris 30706 0.0 0.0 2265904 17800 pts/0 Sl+ 11:38 0:00 /usr/local/bin/copyq onStart
chris 30716 0.0 0.0 2265904 17964 pts/0 Sl+ 11:38 0:00 /usr/local/bin/copyq eval -- runMenuCommandFilters()
root 30729 0.0 0.0 21536 1096 pts/1 S+ 11:39 0:00 grep --color=auto copyq

And the new .config folder is there:

ls -lsart /home/chris/.config/copyq-session2

total 28
0 srwxr-xr-x 1 chris chris 0 Apr 15 11:37 .copyq-session2_s
4 drwx------ 51 chris chris 4096 Apr 15 11:37 ..
4 -rw-r--r-- 1 chris chris 4 Apr 15 11:38 'copyq-session2_tab_JmNsaXBib2FyZA==.dat'
4 -rw-r--r-- 1 chris chris 36 Apr 15 11:38 copyq-session2-filter.ini
4 -rw------- 1 chris chris 32 Apr 15 11:38 copyq-session2.pub
4 -rw-r--r-- 1 chris chris 1099 Apr 15 11:38 copyq-session2-bak.conf
4 -rw-r--r-- 1 chris chris 1099 Apr 15 11:38 copyq-session2.conf
4 drwxr-xr-x 2 chris chris 4096 Apr 15 11:38 .

But another eruption of Qtwarnings at the ordinary user console following the launch and no usable CopyQ window instance.

I agree that this is 99% certainly not a fundamental problem of CopyQ's making but done to something it calls failing to operate properly. As I said, I think, it's almost only CopyQ that is having these problems though perhaps the unusably distorted windowing of CloudBerry is related. I think it's a problem with the Qt "painter" system and I assume that CopyQ uses this when my main applications don't use it or use it differently. I have done nothing that seems remotely likely to have caused this other than fairly regular apt-get update/upgrade cycles, and the machine is only about three months old. That makes it very frustrating. Though "small" in many ways (and all the better for that) CopyQ was really helping me be efficient and I'd set up the tabs and sets of boilerplate things I use a lot which was great, as was having the clipboard history. Sadly, I don't even seem to be able to access my tabs/collections as they're stored in CopyQ's internal way not raw files (and I'm sure that's wise, it's not a criticism!)

I am praying that it's possible to correct the issues by reinstalling some gnome or Qt components but I don't know where to start. Can I force reinstallation of the dependencies you list for CopyQ. As I said, apt is telling me that I have the latest versions but presumably one might have been corrupted somehow or permissions for it changed and perhaps forcing reinstallation would correct that? However, I don't want to uninstall things to force that as I have no idea whether they would take out other things I need to keep the system going. I know in theory that apt(itude) will tell me about consequences of uninstalling but it feels risky for what may be very fundamental shared components. Is simple forcing of reinstallation possible and a sensible place to start? Do you have any other suggestions?

TIA,

Chris

From: "Lukas Holecek" notifications@github.com
To: "hluk/CopyQ" CopyQ@noreply.github.com
Cc: "cpsyctc2" ce_github@psyctc.org, "Author" author@noreply.github.com
Sent: Monday, 15 April, 2019 11:06:43
Subject: Re: [hluk/CopyQ] CopyQ not showing in Ubuntu 18.04.2 LTS (#1125)

I don't think that CopyQ does anything by itself that could cause those errors.
Looks like some permissions on system are broken.

Try launching new session, e.g. copyq -s session2 , this will make use of
different config directory ( ~/.config/copyq-session2 ). It should be then
possible to show main window with copyq -s session2 show .

—
You are receiving this because you authored the thread.
Reply to this email directly, [
https://github.com/hluk/CopyQ/issues/1125#issuecomment-483170462 | view it on
GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AukAkoR-bHM0e34Z9qu33m5k1ZMJ56v5ks5vhEEjgaJpZM4csAdt
| mute the thread ] .

--
Chris Evans chris@psyctc.org Skype: chris-psyctc
Visiting Professor, University of Sheffield chris.evans@sheffield.ac.uk
I do some consultation work for the University of Roehampton chris.evans@roehampton.ac.uk and other places but this chris@psyctc.org remains my main Email address.
I have "semigrated" to France, see: https://www.psyctc.org/pelerinage2016/semigrating-to-france/ if you want to book to talk, I am trying to keep that to Thursdays and my diary is now available at: https://www.psyctc.org/pelerinage2016/ecwd_calendar/calendar/
Beware: French time, generally an hour ahead of UK. That page will also take you to my blog which started with earlier joys in France and Spain!

Can you explain what CloudBerry is?

The main problem is that you cannot open main window, right? Looks like related to the QSystemSemaphore error.

On start CopyQ is usually minimized in tray, so you need to either click the icon to show menu or main window or use execute copyq show (or use global shortcut, but it behaves basically the same).

The Painter issues could be related to custom icon engine CopyQ uses, but I cannot reproduce the issue.

CloudBerry is a backup system: [ http://www.cloudberrylab.com/ | www.cloudberrylab.com ] .

It's not just the main window: no icon appears in the top bar of the Ubuntu/Gnome combination I'm using so nothing to click on and copyq show produces nothing.

It sounds as if what I'm saying about their being a broken bit of gnome/Qt failing to act on messages CopyQ is passing asking to create things, icon and windows, isn't making sense to you. I guess, with great regret, I need to write off CopyQ. That's a real shame as I'm sure the key problem is more with something else.

Thank you for trying to fix this anyway, and for CopyQ!

Chris

From: "Lukas Holecek" notifications@github.com
To: "hluk/CopyQ" CopyQ@noreply.github.com
Cc: "cpsyctc2" ce_github@psyctc.org, "Author" author@noreply.github.com
Sent: Monday, 15 April, 2019 12:38:22
Subject: Re: [hluk/CopyQ] CopyQ not showing in Ubuntu 18.04.2 LTS (#1125)

Can you explain what CloudBerry is?

The main problem is that you cannot open main window, right? Looks like related
to the QSystemSemaphore error.

On start CopyQ is usually minimized in tray, so you need to either click the
icon to show menu or main window or use execute copyq show (or use global
shortcut, but it behaves basically the same).

The Painter issues could be related to custom icon engine CopyQ uses, but I
cannot reproduce the issue.

—
You are receiving this because you authored the thread.
Reply to this email directly, [
https://github.com/hluk/CopyQ/issues/1125#issuecomment-483199964 | view it on
GitHub ] , or [
https://github.com/notifications/unsubscribe-auth/AukAkhTvNpYIUR-EyYJzUhUNuGhW3t32ks5vhFaegaJpZM4csAdt
| mute the thread ] .

--
Chris Evans chris@psyctc.org Skype: chris-psyctc
Visiting Professor, University of Sheffield chris.evans@sheffield.ac.uk
I do some consultation work for the University of Roehampton chris.evans@roehampton.ac.uk and other places but this chris@psyctc.org remains my main Email address.
I have "semigrated" to France, see: https://www.psyctc.org/pelerinage2016/semigrating-to-france/ if you want to book to talk, I am trying to keep that to Thursdays and my diary is now available at: https://www.psyctc.org/pelerinage2016/ecwd_calendar/calendar/
Beware: French time, generally an hour ahead of UK. That page will also take you to my blog which started with earlier joys in France and Spain!

+1

I installed Gnome (like in Ubuntu 18.04) on my Ubuntu 16.04, then
I could not see copyq on the tray, so could not right click to open the main window.

$ copyq
Warning: CopyQ server is already running.

As @hluk suggested, copyq show solves the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gatopeich picture gatopeich  Â·  3Comments

pacid picture pacid  Â·  3Comments

nmat picture nmat  Â·  6Comments

Gitoffthelawn picture Gitoffthelawn  Â·  8Comments

happysurf picture happysurf  Â·  9Comments