Bug 448133 - Toolbox icons missing with 3rd-party icon themes
Summary: Toolbox icons missing with 3rd-party icon themes
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (show other bugs)
Version: 20.12.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
: 456721 458243 462255 468847 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-08 18:35 UTC by Reed Bement
Modified: 2023-04-23 09:24 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kolourpaint toolbox rendering bug (400.56 KB, image/png)
2022-01-08 18:35 UTC, Reed Bement
Details
strace log of start up (1.20 MB, text/plain)
2022-01-09 15:08 UTC, Reed Bement
Details
systemsettings5 screen shot (161.14 KB, image/png)
2022-01-12 15:09 UTC, Reed Bement
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reed Bement 2022-01-08 18:35:56 UTC
Created attachment 145238 [details]
kolourpaint toolbox rendering bug

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. sudo apt install kolourpaint
2. kolourpaint
3. Note the toolbox rendering

Tested with and without Wayland.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Martin Koller 2022-01-09 09:23:04 UTC
it seems some of the icons are either not installed or not found.
They should be in ${DATA_INSTALL_DIR}/kolourpaint/icons
e.g. here on openSUSE they are in /usr/share/kolourpaint/icons/

Try using a different icon theme and see if that changes things
Comment 2 Reed Bement 2022-01-09 15:08:52 UTC
Created attachment 145269 [details]
strace log of start up

strace log of start up, render toolbox, and exit
Comment 3 Reed Bement 2022-01-09 15:13:58 UTC
/usr/share/kolourpaint does not exist before install

After install toolbox icons exist under /usr/share/kolourpaint/icons/hicolor/: 
  ~/projects/tmp/kolourpaint > d /usr/share/kolourpaint/icons/hicolor/48x48/actions/
  total 84
  -rw-r--r-- 1 root root 3253 Feb 24  2021 tool_spraycan.png
   ...

Based on strace log, no attempt is made to open tool_spraycan.png
No errors or warnings in terminal or under GDB.
No errors or warnings during install/ubinstall with: sudo apt install kolourpaint
Comment 4 Reed Bement 2022-01-09 15:20:05 UTC
"Try using a different icon theme and see if that changes things"
How to? Is this a KDE or kolourpaint setting?
Thanks, -Reed
Comment 5 Martin Koller 2022-01-09 16:40:32 UTC
(In reply to Reed Bement from comment #3)
> /usr/share/kolourpaint does not exist before install
> 
> After install toolbox icons exist under
> /usr/share/kolourpaint/icons/hicolor/: 
>   ~/projects/tmp/kolourpaint > d
> /usr/share/kolourpaint/icons/hicolor/48x48/actions/
>   total 84
>   -rw-r--r-- 1 root root 3253 Feb 24  2021 tool_spraycan.png
>    ...
> 
> Based on strace log, no attempt is made to open tool_spraycan.png
> No errors or warnings in terminal or under GDB.
> No errors or warnings during install/ubinstall with: sudo apt install
> kolourpaint

Interesting. kolourpaint uses Qt's QIcon::fromTheme() method to get the icon.
In Qt's documentation I read:
"Qt will make use of GTK's icon-theme.cache if present to speed up the lookup. These caches can be generated using gtk-update-icon-cache: https://developer.gnome.org/gtk3/stable/gtk-update-icon-cache.html."

Maybe this cache update is somehow missing after the installation.
Can you check if
- it works automagically after a re-login or
- try running gtk-update-icon-cache manually
Comment 6 Martin Koller 2022-01-09 16:42:18 UTC
(In reply to Reed Bement from comment #4)
> "Try using a different icon theme and see if that changes things"
> How to? Is this a KDE or kolourpaint setting?
> Thanks, -Reed

In KDE systemsettings -> Appearance -> Icons
Comment 7 Reed Bement 2022-01-12 15:08:20 UTC
Installed KDE systemsettings with: sudo apt install systemsettings5

Looks like systemsettings also has problems/warnings:
~/projects/msp430_gcc > systemsettings5
kf.service.services: The desktop entry file "/usr/share/applications/qemu.desktop" has Type= "Application" but no Exec line
kf.service.sycoca: Invalid Service :  "/usr/share/applications/qemu.desktop"
kf.kirigami: Warning: Theme implementations should use Kirigami.BasicThemeDefinition for its root item
file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/SubCategoryPage.qml:158:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/SubCategoryPage.qml:148:9: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/introPage.qml:109:27: QML IntroIcon (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "minimumHeight"
file:///usr/share/kpackage/genericqml/org.kde.systemsettings.sidebar/contents/ui/introPage.qml:109:27: QML IntroIcon (parent or ancestor of QQuickLayoutAttached): Binding loop detected for property "minimumHeight"

See attached screen shot of systemsettings5 running, no option for changing icon/themes

Neither of the following make any change to behaviour:
"Can you check if
- it works automagically after a re-login or
- try running gtk-update-icon-cache manually"
Comment 8 Reed Bement 2022-01-12 15:09:25 UTC
Created attachment 145368 [details]
systemsettings5 screen shot
Comment 9 Nate Graham 2022-11-30 19:27:50 UTC
*** Bug 462255 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2022-11-30 19:28:04 UTC
*** Bug 458243 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2022-11-30 19:28:07 UTC
*** Bug 456721 has been marked as a duplicate of this bug. ***
Comment 12 Reed Bement 2022-12-04 02:01:56 UTC
I built kolourpaint for GNU/Linux 3.2.0, with debug_info, not stripped.
On startup under gdb I now see:
  Icon theme "breeze" not found.
Toolbox icons still don't render (render as text). Right mouse button select of toolbar settings, text position, icons only - has no effect.
exit kolourpaint

I install breeze-icon-theme & gnome-tweaks
  sudo apt install breeze-icon-theme
  sudo apt update && sudo apt install gnome-tweaks

I use gnome-tweaks to select the breeze icon theme (yuk).
restart kolourpaint under gdb. 
Note 'Icon theme "breeze" not found.' message no longer printing.
Toolbox icons are rendered correctly.
Comment 13 Reed Bement 2022-12-04 02:10:12 UTC
(In reply to Martin Koller from comment #1)
> it seems some of the icons are either not installed or not found.
> They should be in ${DATA_INSTALL_DIR}/kolourpaint/icons
> e.g. here on openSUSE they are in /usr/share/kolourpaint/icons/
> 
> Try using a different icon theme and see if that changes things

Yes it does. See comment #11 below. Thanks, -Reed
Comment 14 Martin Koller 2023-04-23 09:24:02 UTC
*** Bug 468847 has been marked as a duplicate of this bug. ***