CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Strange blank history items without visible content

Open Emulator000 opened this issue 3 years ago • 24 comments

Describe the bug When I open the main history window, I can't see selectable items as expected

To Reproduce Steps to reproduce the behavior:

  1. Go to 'CopyQ main window
  2. See error

Expected behavior Items listed as expected

Screenshots image

Version, OS and Environment CopyQ Clipboard Manager v4.1.0~focal Qt: 5.12.8 KNotifications: 5.68.0 Compiler: GCC Arch: x86_64-little_endian-lp64 OS: Ubuntu 20.04.2 LTS

Additional context I tried to see the Log window in order to check if there are some errors but I can't find anyting significant, screenshot here: image

Also, when I go into the Appearance window, CopyQ crashes after few seconds, I tried to set another theme manually without luck.

Emulator000 avatar Aug 07 '21 21:08 Emulator000

Can you share backtrace if possible? It might be possible with coredumpctl info copyq.

hluk avatar Aug 16 '21 07:08 hluk

@hluk unfortunately no coredumps, here what I receive:

$ coredumpctl info copyq
No coredumps found.

Also, the first time I opened CopyQ when I rebooted the system, I saw the Apparence window with not selectable items and empty list for fonts etc 😢

image

Emulator000 avatar Aug 16 '21 10:08 Emulator000

That looks like something is wrong with Qt libraries or system theme.

Maybe updating system packages would help. Where did you install CopyQ from?

hluk avatar Aug 19 '21 17:08 hluk

@hluk packages all updated, do you have any hint to set default values for Qt? I never touched but maybe the issue is there...

I installed CopyQ from your PPA

Emulator000 avatar Aug 19 '21 18:08 Emulator000

Can you try installing CopyQ from flatpak instead? See: https://copyq.readthedocs.io/en/latest/installation.html

hluk avatar Aug 29 '21 10:08 hluk

@hluk sorry for the delay, is the same thing unfortunately...

Emulator000 avatar Sep 28 '21 18:09 Emulator000

That's interesting, the Flatpak should use different Qt libraries and clean configuration, so I would assume that the result would be different.

Can you check the debug logs when you launch the app with the following command?

env COPYQ_LOG_LEVEL=DEBUG copyq

hluk avatar Oct 03 '21 06:10 hluk

Not sure what happend, but cant say this is happening to me any more. No update of copyQ as far as I know and it is working...

Only change which might be related is I have uninstalled https://micheleg.github.io/dash-to-dock/ gnome extension.

So maybe some conflict or this dash to dock gnome extension is doing something nasty...

LubosRemplik avatar Jan 11 '22 11:01 LubosRemplik

Not sure what happend, but cant say this is happening to me any more. No update of copyQ as far as I know and it is working...

Only change which might be related is I have uninstalled https://micheleg.github.io/dash-to-dock/ gnome extension.

So maybe some conflict or this dash to dock gnome extension is doing something nasty...

Yep, exaclty as I said... same as version as per #1861

CopyQ Clipboard Manager 5.0.0-115-gf9c668f7
Qt: 5.15.2
KNotifications: 5.86.0
Compiler: GCC
Arch: x86_64-little_endian-lp64
OS: Ubuntu 21.10

LubosRemplik avatar Jan 11 '22 11:01 LubosRemplik

I witnessed the same today and have some further input:

  • First time I started CopyQ in the session of the installation it worked just fine!
  • Next day after reboot: same as in the screenshot above (interesting though: I can go up/down in the list, it selects properly and pasting works as expected, but since I can't see what I'm selecting... it's of no use)
  • Tested if my window manager is at fault (awesomewm): CopyQ worked as expected in Gnome based Pop OS desktop env (no dash to dock was used)
  • XFCE: didn't work, same issue as with plain awesomewm

Any outputs wanted to help debug?

freeo avatar Feb 02 '22 21:02 freeo

Can you provide debug logs and a crash report (stacktrace)? This is probably some issue with conflicting libraries/plugins in Ubuntu.

hluk avatar Feb 09 '22 14:02 hluk

Urgh, it was good for some time but now it is back... I guess it has something to do with my graphic driver and gnome. It was good for while on fresh start, when I do "play" with my monitor setup there is same issue again

LubosRemplik avatar Feb 16 '22 08:02 LubosRemplik

And now it is working, I am having legion 5 pro with nvidia graphic and this laptop has modes, when I am on mode which is definately using nvidia driver then this issue happens, when on normal mode and freshly booted system then it works

LubosRemplik avatar Feb 16 '22 08:02 LubosRemplik

Stil not working, fresh installed machine with Pop_OS! and Nvidia drivers, same issue happens

Emulator000 avatar Jun 05 '22 15:06 Emulator000

Hi, I've been having the same issue, It used to work fine until the last couple of updates, I tried uninstalling it, purge it, manually removing the config folders, but to no avail.

OS: KDE neon User - 5.25 x86_64 
Host: ZBOX-EN1070/1060,EN1070K/1060K XX 
Kernel: 5.18.10-76051810-generic 
Packages: 2559 (dpkg), 34 (flatpak), 12 (snap) 
Shell: fish 3.5.1 
Resolution: 5120x1440, 3840x2160 
DE: Plasma 
WM: KWin 
WM Theme: Breeze 
Theme: Breeze Dark [Plasma], Breeze [GTK2/3] 
Icons: breeze-dark [Plasma], breeze-dark [GTK2/3] 
Terminal: yakuake 
CPU: Intel i5-7500T (4) @ 2.700GHz 
GPU: NVIDIA GeForce GTX 1070 Mobile 
GPU: Intel HD Graphics 630 
Memory: 7208MiB / 32033MiB 

`` CopyQ_Log.txt

NC-VZLA avatar Aug 07 '22 07:08 NC-VZLA

@NC-VZLA Did you try this with the latest version (6.2.0)?

hluk avatar Aug 07 '22 10:08 hluk

Yes, the log was when I just reinstalled 6.2.0~focal, all the same issues as described before, both in item list and in the appearance section.

NC-VZLA avatar Aug 07 '22 13:08 NC-VZLA

:bulb: Another idea: The app style sheet can sometimes conflict with the system theme. So one thing to try is to avoid setting any style sheet to the item list.

  1. Exit CopyQ.
  2. Open ~/.config/copyq/copyq.conf in an editor.
  3. Change css_template_items=items option (or add it if it is missing):
[Theme]
css_template_items=
  1. Save the changes.
  2. Start CopyQ.

hluk avatar Aug 20 '22 10:08 hluk

I tried, but I have still the same issues. No change.

NC-VZLA avatar Aug 26 '22 12:08 NC-VZLA

Just Updated to 6.3.0, and it fixed the main window issues, but the appearance menu in the preferences is still misbehaving, after being selected takes at least 40 seconds to load and the middle section (where you select the appearance) is still blown out of proportion. I didn't try to change the appearance,

NC-VZLA avatar Sep 19 '22 03:09 NC-VZLA

the appearance menu in the preferences is still misbehaving, after being selected takes at least 40 seconds to load and the middle section (where you select the appearance) is still blown out of proportion

I think it has something to do with the optimized item rendering/loading code. It is possible that the preload() call triggers another refresh recursively.

hluk avatar Sep 19 '22 10:09 hluk

I'm trying to simplify and improve the rendering and item preloading some more.

If you can, please help test the new development flatpak image: https://github.com/flathub/com.github.hluk.copyq/pull/44 (scroll to the latest flathubbot comment and use the command to install the flatpak)

Specifics to tests:

  • items are rendered in the list correctly
  • list can be scrolled properly with mouse wheel and scrollbar
  • keyboard item browsing is stable (up/down arrows, page up/down, end/home)
  • Appearance tab in Preferences works properly

hluk avatar Sep 19 '22 13:09 hluk

Thank you so much @hluk for this! I finally see the ListView correctly on every machine I have! 😄

Emulator000 avatar Sep 19 '22 14:09 Emulator000

Thank you so much @hluk for this! I finally see the ListView correctly on every machine I have! smile

Thanks for quick test. I had to update the build again because of broken rendering on Windows. Please check again if you have the time.

hluk avatar Sep 19 '22 20:09 hluk

I've completely rewritten the rendering code. Please help testing it.

For Linux, there is a Flatpak image you can install using the latest instructions from flathubbot: https://github.com/flathub/com.github.hluk.copyq/pull/44#issuecomment-1255259412

Test build for Windows: https://ci.appveyor.com/project/hluk/copyq/builds/44855887/artifacts

hluk avatar Sep 22 '22 17:09 hluk

This latest build appears to be working well for me on Windows 10

Rich

richlux avatar Sep 22 '22 17:09 richlux

I've completely rewritten the rendering code. Please help testing it.

For Linux, there is a Flatpak image you can install using the latest instructions from flathubbot: flathub/com.github.hluk.copyq#44 (comment)

Test build for Windows: https://ci.appveyor.com/project/hluk/copyq/builds/44855887/artifacts

Tested on Windows 10. It seems problem with big, blank boxes is solved. But there is another one now: If I copy a string which is already existing in the CopyQ history, then this item is not show as selected/visible after I open the CopyQ window.

FreeHarry avatar Sep 23 '22 06:09 FreeHarry

Thanks for testing!

If I copy a string which is already existing in the CopyQ history, then this item is not show as selected/visible after I open the CopyQ window.

@FreeHarry Do you mean there is an empty item (blank box) at the top? Can you share a screenshot?

hluk avatar Sep 23 '22 07:09 hluk

I have added more update-item-list calls on couple of events (for example for item data change) to ensure the item list stays updated.

New build for Windows: https://ci.appveyor.com/project/hluk/copyq/builds/44861458/artifacts

hluk avatar Sep 23 '22 08:09 hluk

I did another round of fixing and refactoring. The rendering and scrolling should now be much more stable and faster.

Linux Flatpak image (install using the latest instructions from flathubbot): https://github.com/flathub/com.github.hluk.copyq/pull/44#issuecomment-1256890960

Windows build: https://ci.appveyor.com/project/hluk/copyq/builds/44870425/artifacts

hluk avatar Sep 24 '22 07:09 hluk