hluk / CopyQ

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

CopyQ application on Fedora Cinnamon shows controls but no text #2548

Open barkeratGitHub opened 7 months ago

barkeratGitHub commented 7 months ago

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

Describe the bug When I open CopyQ, I see control elements: check boxes, pick lists, etc. There is NO descriptive text visible. BUT: when I click on the Start button, the "missing" text appears. If I open Screenshot (because I certainly want to do a screen capture), the CopyQ application text appears. Because these are windowed, I can place them side by side... and if I select CopyQ, the text disappears.

To Reproduce Steps to reproduce the behavior:

  1. Install
  2. Open... no text
  3. Click on the start button... the CopyQ application text appears.
  4. Click on the CopyQ application... the text hides.

Expected behavior I expect to see text describing the various control elements (check boxes, pick lists, etc.)

Screenshots Taken with a cell phone CopyQ_bug

Version, OS and Environment (Get details from copyq version command if possible.)

Additional context Add any other context about the problem here.

barkeratGitHub commented 7 months ago

Additionally, if I click on the title bar (as if I were going to move the window), the text in that window appears.

hluk commented 7 months ago

That looks like an issue with the system theme.

You can try overriding QT_STYLE_OVERRIDE (adwaita, adwaita-dark or other) and QT_QPA_PLATFORMTHEME (or set to empty "") from command line (exit any app instance first):

env QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=adwaita copyq

You can also override the theme for CopyQ on command line:

# List styles
❯ copyq styles
HighContrastInverse
HighContrast
Adwaita-HighContrastInverse
Adwaita-HighContrast
Adwaita-Dark
Adwaita
Breeze
kvantum-dark
kvantum
Windows
Fusion

❯ copyq config style Adwaita-Dark
Adwaita-Dark

# Restart CopyQ for this to take effect.

To reset the style to system one, run copyq config style "".

barkeratGitHub commented 7 months ago

I read through your instructions and, through a little trial and error, I noted several things that might help you help the next person who encounters this; that is, you were right, but there was more to it. Follow me...

As user (I mistakenly tried this as root, but my system didn't like it and told me so), I did the env command and it returned:

env QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=adwaita copyq
Warning: [qt.qpa.qgnomeplatform.theme] QtWarning: The desktop style
for QtQuick Controls 2 applications is not available on the system
(qqc2-desktop-style). The application may look broken.

I ran the copyq styles command it returned what you said it would. But when I tried the copyq config styles "" command, it ran but nothing changed in CopyQ.

It looks like my system was missing something.

First, with the reference to adwaita, I checked my system and found the following:

rpm -qa | grep adwaita
adwaita-cursor-theme-44.0-1.fc38.noarch
adwaita-icon-theme-44.0-1.fc38.noarch
libadwaita-qt5-1.4.2-2.fc38.x86_64
adwaita-qt5-1.4.2-2.fc38.x86_64
adwaita-qt6-1.4.2-2.fc38.x86_64
libadwaita-qt6-1.4.2-2.fc38.x86_64
adwaita-gtk2-theme-3.28-16.fc38.x86_64
libadwaita-1.3.4-1.fc38.x86_64
qadwaitadecorations-qt6-0.1.3-2.fc38.x86_64
qadwaitadecorations-qt5-0.1.3-2.fc38.x86_64

No -devel packages; I've found over the years that the -devel packages have often resolved several application issues. I did a dnf search for adwaita and found that there /were/ -devel packages to match my installed adwaita modules:

libadwaita-devel
libadwaita-qt5-devel
libadwaita-qt6-devel
adwaita-icon-theme-devel

I installed those four and the dependencies.

I tried again, but no change. They probably didn't fix anything.

Also, the warning referred to qqc2-desktop-style not being available. I did an rpm -qa search for that... I didn't find it, so I did a dnf search, found it and installed it. Then I retried the env command. Now it runs without an error, but doesn't return the command line. But CopyQ started and it looks like it's supposed to. However, when I cancel that and the command prompt returns, CopyQ also exits, and when I re-open CopyQ, the text is missing again. But it's a positive step.

Now, with CopyQ still open, sans text, I ran  the copyq styles command again... no change. BUT this time, when I ran copyq config style Adwaita with CopyQ open, it runs, and CopyQ looks correct. Exit CopyQ, re-open... the text is visible still! It looks fixed! I tried copyq config style "" to go with system default... unchanged. Apparently, adwaita is default. I might play with the different themes... later.

But all that appears to have solved my issue. the missing qqc2 binary was probably THE underlying problem. That should be a dependency, I think...

Oh, and this is what my system now has regarding adwaita:

rpm -qa | grep adwaita
adwaita-cursor-theme-44.0-1.fc38.noarch
adwaita-icon-theme-44.0-1.fc38.noarch
libadwaita-qt5-1.4.2-2.fc38.x86_64
adwaita-qt5-1.4.2-2.fc38.x86_64
adwaita-qt6-1.4.2-2.fc38.x86_64
libadwaita-qt6-1.4.2-2.fc38.x86_64
adwaita-gtk2-theme-3.28-16.fc38.x86_64
libadwaita-1.3.4-1.fc38.x86_64
qadwaitadecorations-qt6-0.1.3-2.fc38.x86_64
qadwaitadecorations-qt5-0.1.3-2.fc38.x86_64
libadwaita-demo-1.3.4-1.fc38.noarch
libadwaita-devel-1.3.4-1.fc38.x86_64
libadwaita-doc-1.3.4-1.fc38.noarch
libadwaita-qt5-devel-1.4.2-2.fc38.x86_64
libadwaita-qt6-devel-1.4.2-2.fc38.x86_64
adwaita-icon-theme-devel-44.0-1.fc38.noarch

I could test by removing the 4 devel packages... or leave well enough alone...

Thank you!

On 11/23/23 06:48, Lukas Holecek wrote:

That looks like an issue with the system theme.

You can try overriding |QT_STYLE_OVERRIDE| (|adwaita|, |adwaita-dark| or other) and |QT_QPA_PLATFORMTHEME| (or set to empty |""|) from command line (exit any app instance first):

env QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=adwaita copyq

You can also override the theme for CopyQ on command line:

List styles

❯ copyq styles HighContrastInverse HighContrast Adwaita-HighContrastInverse Adwaita-HighContrast Adwaita-Dark Adwaita Breeze kvantum-dark kvantum Windows Fusion

❯ copyq config style Adwaita-Dark Adwaita-Dark

Restart CopyQ for this to take effect.

To reset the style to system one, run |copyq config style ""|.

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2548#issuecomment-1824559017, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQH5TDHH7ENUKZUQYAF5S3YF5O5TAVCNFSM6AAAAAA7MSWAY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGU2TSMBRG4. You are receiving this because you authored the thread.Message ID: @.***>

barkeratGitHub commented 6 months ago

Apparently, there's another bug... CopyQ coredumps. I've tried reporting it via abrt, but it fails. But according to https://retrace.fedoraproject.org/faf/problems/bthash/?bth=acd1898a60ceb875e1bec7b1e2eb34c08c9474e3&bth=56bee967f837a46b339f0915a7493738a23f1c22&bth=baa8fc0fe6c982cd3c7ae2369ace0fe1a838dbdc&bth=cc7c7fabd80a3e82d606b24d1d45882a0d4d9306 https://retrace.fedoraproject.org/faf/problems/bthash/?bth=acd1898a60ceb875e1bec7b1e2eb34c08c9474e3&bth=56bee967f837a46b339f0915a7493738a23f1c22&bth=baa8fc0fe6c982cd3c7ae2369ace0fe1a838dbdc&bth=cc7c7fabd80a3e82d606b24d1d45882a0d4d9306, it's a bug.

Ward

On 11/23/23 06:48, Lukas Holecek wrote:

That looks like an issue with the system theme.

You can try overriding |QT_STYLE_OVERRIDE| (|adwaita|, |adwaita-dark| or other) and |QT_QPA_PLATFORMTHEME| (or set to empty |""|) from command line (exit any app instance first):

env QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=adwaita copyq

You can also override the theme for CopyQ on command line:

List styles

❯ copyq styles HighContrastInverse HighContrast Adwaita-HighContrastInverse Adwaita-HighContrast Adwaita-Dark Adwaita Breeze kvantum-dark kvantum Windows Fusion

❯ copyq config style Adwaita-Dark Adwaita-Dark

Restart CopyQ for this to take effect.

To reset the style to system one, run |copyq config style ""|.

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2548#issuecomment-1824559017, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQH5TDHH7ENUKZUQYAF5S3YF5O5TAVCNFSM6AAAAAA7MSWAY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGU2TSMBRG4. You are receiving this because you authored the thread.Message ID: @.***>

hluk commented 6 months ago

This is a bug in Fedora - more specifically its custom patches for Qt.

I already replied here:

Not sure what system configuration triggers this, because I never encountered the issue (could be caused by specific fonts or themes).

Lukas

On Thu, Dec 14, 2023 at 9:44 PM barkeratGitHub @.***> wrote:

Apparently, there's another bug... CopyQ coredumps. I've tried reporting it via abrt, but it fails. But according to

https://retrace.fedoraproject.org/faf/problems/bthash/?bth=acd1898a60ceb875e1bec7b1e2eb34c08c9474e3&bth=56bee967f837a46b339f0915a7493738a23f1c22&bth=baa8fc0fe6c982cd3c7ae2369ace0fe1a838dbdc&bth=cc7c7fabd80a3e82d606b24d1d45882a0d4d9306 < https://retrace.fedoraproject.org/faf/problems/bthash/?bth=acd1898a60ceb875e1bec7b1e2eb34c08c9474e3&bth=56bee967f837a46b339f0915a7493738a23f1c22&bth=baa8fc0fe6c982cd3c7ae2369ace0fe1a838dbdc&bth=cc7c7fabd80a3e82d606b24d1d45882a0d4d9306>,

it's a bug.

Ward

On 11/23/23 06:48, Lukas Holecek wrote:

That looks like an issue with the system theme.

You can try overriding |QT_STYLE_OVERRIDE| (|adwaita|, |adwaita-dark| or other) and |QT_QPA_PLATFORMTHEME| (or set to empty |""|) from command line (exit any app instance first):

env QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=adwaita copyq

You can also override the theme for CopyQ on command line:

List styles

❯ copyq styles HighContrastInverse HighContrast Adwaita-HighContrastInverse Adwaita-HighContrast Adwaita-Dark Adwaita Breeze kvantum-dark kvantum Windows Fusion

❯ copyq config style Adwaita-Dark Adwaita-Dark

Restart CopyQ for this to take effect.

To reset the style to system one, run |copyq config style ""|.

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2548#issuecomment-1824559017, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACQH5TDHH7ENUKZUQYAF5S3YF5O5TAVCNFSM6AAAAAA7MSWAY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGU2TSMBRG4>.

You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2548#issuecomment-1856560757, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJJJXK4RP4WBMGVLF65ETYJNQJXAVCNFSM6AAAAAA7MSWAY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGU3DANZVG4 . You are receiving this because you commented.Message ID: @.***>

barkeratGitHub commented 6 months ago

Revisiting my journalctl...

Process 3467735 (copyq) crashed in
QFontconfigDatabase::setupFontEngine(QFontEngineFT*, QFontDef
const&) const()

copyq[3035]: segfault at 0 ip 00007f8120562791 sp 00007ffded2aff20
error 4 in libQt5XcbQpa.so.5.15.11[7f81204df000+bb000] likely on CPU
3 (core 3, socket 0)

I'll follow these. Thank you.

W

On 12/15/23 03:36, Lukas Holecek wrote:

This is a bug in Fedora - more specifically its custom patches for Qt.

I already replied here:

Not sure what system configuration triggers this, because I never encountered the issue (could be caused by specific fonts or themes).

Lukas

On Thu, Dec 14, 2023 at 9:44 PM barkeratGitHub @.***> wrote:

Apparently, there's another bug... CopyQ coredumps. I've tried reporting it via abrt, but it fails. But according to

https://retrace.fedoraproject.org/faf/problems/bthash/?bth=acd1898a60ceb875e1bec7b1e2eb34c08c9474e3&bth=56bee967f837a46b339f0915a7493738a23f1c22&bth=baa8fc0fe6c982cd3c7ae2369ace0fe1a838dbdc&bth=cc7c7fabd80a3e82d606b24d1d45882a0d4d9306 <

https://retrace.fedoraproject.org/faf/problems/bthash/?bth=acd1898a60ceb875e1bec7b1e2eb34c08c9474e3&bth=56bee967f837a46b339f0915a7493738a23f1c22&bth=baa8fc0fe6c982cd3c7ae2369ace0fe1a838dbdc&bth=cc7c7fabd80a3e82d606b24d1d45882a0d4d9306>,

it's a bug.

Ward

On 11/23/23 06:48, Lukas Holecek wrote:

That looks like an issue with the system theme.

You can try overriding |QT_STYLE_OVERRIDE| (|adwaita|, |adwaita-dark| or other) and |QT_QPA_PLATFORMTHEME| (or set to empty |""|) from command line (exit any app instance first):

env QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=adwaita copyq

You can also override the theme for CopyQ on command line:

List styles

❯ copyq styles HighContrastInverse HighContrast Adwaita-HighContrastInverse Adwaita-HighContrast Adwaita-Dark Adwaita Breeze kvantum-dark kvantum Windows Fusion

❯ copyq config style Adwaita-Dark Adwaita-Dark

Restart CopyQ for this to take effect.

To reset the style to system one, run |copyq config style ""|.

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2548#issuecomment-1824559017, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ACQH5TDHH7ENUKZUQYAF5S3YF5O5TAVCNFSM6AAAAAA7MSWAY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGU2TSMBRG4>.

You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2548#issuecomment-1856560757, or unsubscribe

https://github.com/notifications/unsubscribe-auth/AAAJJJXK4RP4WBMGVLF65ETYJNQJXAVCNFSM6AAAAAA7MSWAY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGU3DANZVG4 . You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/hluk/CopyQ/issues/2548#issuecomment-1857736253, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQH5TE2VQ4YQSBLJGXWZWLYJQY35AVCNFSM6AAAAAA7MSWAY2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJXG4ZTMMRVGM. You are receiving this because you authored the thread.Message ID: @.***>