Black icons in file chooser in some apps

Not really shure where to put this.
I am running latest KDE Neon (Plasna 6.2) on my new laptop, i am a long time KDE user (mostly runing Plasma 5.27 on Debian 12 at my work and home desktop).
At first i thought I messed up something on this new laptop, so i tried opening a new user, and also installed KDE Neon in virtual machine on my desktop. Results are the same, tried googling it, without help.
So, here it go:

On some applications, like Firefox (with GTK_USE_PORTAL=1) file chooser looks like this:

On the other side, on many other applications situation is like this (virtualbox 7 from ubuntu-noble):

If i reduce size of icons under 22px, they are OK again (but presented as small, ā€œwireframeā€ icons).

What i noticed so far:

  • situation is the same on Wayland and X11
  • changing Gnome/GTK Application Styles doesnā€™t help (i think this is not an GTK integration issue)
  • everything is up to date
  • no flatpaks or snaps, i like to keep things clean :slight_smile:
  • i use Breeze everywhere and like to keep almost everything on default settings
  • some other applications with ā€œblack folder iconsā€: VLC, openboard, okteta, kid3, soundkonverter, qimgvā€¦
  • it is NOT a scaling issue. same thing happens if scaling is set to 100 or 125%

Tried linking portals.conf like in this comment,
it doesnā€™t help:

https://bugzilla.opensuse.org/show_bug.cgi?id=1226112#c25

I have discovered that changing an icon theme helps. So, is the default breeze icon theme broken or what?

Taking an idea from this post:

Does removing the icon cache, located at ~/.cache/icon-cache.kcache, help?

No, it doesnā€™t help. Tried to delete it while not logged in to plasma (via ssh), logged in again, but folders are still blackā€¦

Just to check - what graphics card do you have, and do you have additional drivers installed for it? (ex. AMDGPU PRO, Nvidia proprietary, etc.)

Thinking that perhaps an issue with something like graphics acceleration could also occur in a VM, so that might occur both there and on your physical device?

No, this is Intel 8th gen laptop with UHD Graphics 620:

nicols@ageispolis:~$ sudo lspci -knn -s "00:02.0"
00:02.0 VGA compatible controller [0300]: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0] (rev 02)
        DeviceName: Onboard IGD
        Subsystem: Hewlett-Packard Company WhiskeyLake-U GT2 [UHD Graphics 620] [103c:8548]
        Kernel driver in use: i915
        Kernel modules: i915
nicols@ageispolis:~$ dpkg -l | egrep -i "intel |i965|i915"
ii  firmware-sof-signed                           2023.12.1-1ubuntu1.2                                   all          Intel SOF firmware - signed
ii  i965-va-driver:amd64                          2.4.1+dfsg1-1build2                                    amd64        VAAPI driver for Intel G45 & HD Graphics family
ii  intel-media-va-driver:amd64                   24.1.0+dfsg1-1                                         amd64        VAAPI driver for the Intel GEN8+ Graphics family
ii  intel-microcode                               3.20241112.0ubuntu0.24.04.1                            amd64        Processor microcode firmware for Intel CPUs
ii  iucode-tool                                   2.3.1-3build1                                          amd64        Intel processor microcode tool
ii  libigdgmm12:amd64                             22.3.17+ds1-1                                          amd64        Intel Graphics Memory Management Library -- shared library
ii  libipt2                                       2.0.6-1build1                                          amd64        Intel Processor Trace Decoder Library
ii  xserver-xorg-video-intel                      2:2.99.917+git20210115-1build1                         amd64        X.Org X server -- Intel i8xx, i9xx display driver

Also, same results are in Virtualbox VM (with VMSVGA graphics), with everything on defaults (neon user installed and updated), no additional packages.

Hmm, do other tasks that would use hardware graphics acceleration function on your physical device?

The fact that this reproduces in VirtualBox would fit with something not quite working right in the graphics chain. Are there any system journal entries around when you load the dialog with the improperly colored icons that might give any clues? (Right after seeing the issue, something like sudo journalctl --since=-1m would show the last minuteā€™s worth of entries)

Almost nothing there. Some messages forom plasmashell and maliit and this:

pro 28 07:42:33 ageispolis systemd[2834]: Started app-org.kde.okteta@c8c80b761b6a4bb59269891efc1f4d03.service - Okteta - Hex Editor.

pro 28 07:42:33 ageispolis okteta[23341]: kf.coreaddons: "Could not find plugin konsolepart"

pro 28 07:42:42 ageispolis wireplumber[2847]: <WpSiNode:0x5f51aefd9910> Object activation aborted: proxy destroyed
pro 28 07:42:42 ageispolis wireplumber[2847]: <WpSiNode:0x5f51aefd9910> failed to activate item: Object activation aborted: proxy destroyed

pro 28 07:42:43 ageispolis plasmashell[3118]: kpipewire_logging: PipeWire remote error:  -2 target not found
pro 28 07:42:43 ageispolis plasmashell[3118]: kpipewire_logging: PipeWire remote error:  -2 unknown resource 6 op:4
pro 28 07:42:43 ageispolis plasmashell[3118]: kpipewire_logging: PipeWire remote error:  -2 unknown resource 6 op:7

i donā€™t think these messages has anything to do with my black icons :slight_smile:

1 Like

Is there any other data i can provide to help resolve this?

Probably needs guidance from someone more well-versed in graphics acceleration than I am - but I didnā€™t see if you already mentioned, are other applications that would use hardware acceleration working OK on your desktop?

So far, in about a month of everyday usage, i didnā€™t saw any graphical related problems except for this black folder icons and this bug: Preview pixelation and scale problems in Dolphin after upgrade from Dolphin 24.08.3 ā†’ 24.12.0.

Desktop software i use daily: libreoffice, gimp, krita, gvenview, okular, virtualbox, vlc, openboard, kate, konsole, firefox, thunderbird, signal messanger, spotify. I donā€™t play games and donā€™t run anything graphically intensive. My work is 90% konsole and ssh and various cli tools (i am sysadmin).

Is it possible that problems are related to frameworks in which are apps written (like kf5 / kf6) ? Can we find some common ground between aps i mentioned above that have problems with icons?

in the meantime i did try few icon packs like: Kora, Papirus, Fluent, Tela, WhiteSur. None of that icons have problems with black folders in file chooser.

I did ā€œlddā€ on all these apps, and all of them use QT5 / KF5 libs. Can this be a connection somehow?

Aha, good sleuthing! Doing some Google searching for Qt5 black icons then came up with this comment on the Debian mailing lists from @rikmills , one of the Kubuntu maintainers: Re: Black folder icons in Dolphin

The reason is that the kf6-breeze-icon-theme which replaced the kf5 version has some changes which are not supported by the Qt5/KF5 kiconthemes library. You are also likely to see black folder icons in the file picker of any Qt5/KF5 app when you enlarge the icon view enough to see coloured folders.

Some solutions might be:

  • downgrade to the KF5 breeze icon theme package and put that on hold with apt until Qt6/KF6 apps are ready. - as some have done, copy locally the old icon theme so that takes precedence. - persuade devs to revert the offending upstream change in the debian packaging, again until no longer required.

Hope that helps.

Yes. This is it. For now, i found an icon theme that i like and put it to .local. It will be a good enough solution :slight_smile: