GnuCash icon in dock is blank

Bug #1867796 reported by Jonathan Kamens
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gnucash (Ubuntu)
Fix Released
Low
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

* Impact
The svg icon is invalid and the new librsvg refuses to render it

* Test case
open /usr/share/icons/hicolor/scalable/apps/gnucash-icon.svg with e.g eog

or set the launcher iconsize to 26 and open gnucash (the standard config works since the png are valids)

* Regression potential
it's only fixing an invalid DTD reference in an icon which was invalid, the impact should be limited

----------------------------------------------

The dock icon for GnuCash recently became blank. See attached screenshot.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: gnucash 1:3.8b-1build3
ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24
Uname: Linux 5.4.0-18-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu20
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Mar 17 11:32:01 2020
InstallationDate: Installed on 2019-01-02 (440 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
SourcePackage: gnucash
UpgradeStatus: Upgraded to focal on 2020-02-25 (21 days ago)

Revision history for this message
Jonathan Kamens (jik) wrote :
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

I cannot reproduce this on 20.04
did you compare this on a clean daily .iso?

Revision history for this message
Jonathan Kamens (jik) wrote :

Don't have time to test with a clean ISO.

Testing with a clean ISO kind of misses the point. I'm not imagining it; it's broken for me. So maybe let's try to figure out why.

If you have any advice for what I can do to collect more data to troubleshoot on my system, I'm all ears.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnucash (Ubuntu):
status: New → Confirmed
Revision history for this message
Cliff Carson (ccarson1) wrote :

See this with gnucash on my 20.04 level system. Also my user build application that have a desktop icon show up as blank in the launch bar after starting.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you try to

- start that command
$ journalctl -f

- start gnucash from a command line and copy any error displayed as well as the output from the previous journal command

- right click on the blank icon in the launcher and add to favorite

- gsettings get org.gnome.shell favorite-apps

and see the name of the .desktop added, it should be gnucash.desktop

also what language do you use?

Changed in gnucash (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Jonathan Kamens (jik) wrote :

There is nothing that looks relevant in journalctl output:

jik@jik5:~$ journalctl -f
-- Logs begin at Fri 2020-03-27 09:00:00 EDT. --
May 04 13:00:24 jik5.kamens.us systemd[1]: Stopping User Runtime Directory /run/user/1001...
May 04 13:00:24 jik5.kamens.us systemd[1]: run-user-1001.mount: Succeeded.
May 04 13:00:24 jik5.kamens.us systemd[1]: user-runtime-dir@1001.service: Succeeded.
May 04 13:00:24 jik5.kamens.us systemd[1]: Stopped User Runtime Directory /run/user/1001.
May 04 13:00:24 jik5.kamens.us systemd[2630]: run-user-1001.mount: Succeeded.
May 04 13:00:24 jik5.kamens.us systemd[1]: Removed slice User Slice of UID 1001.
May 04 13:00:27 jik5.kamens.us gnome-shell[3465]: Usage of indicator.indicators is deprecated for Indicator
                                                  get indicators@resource:///org/gnome/shell/ui/panelMenu.js:213:25
                                                  getBattery@/<email address hidden>/extension.js:41:5
                                                  update@/<email address hidden>/extension.js:23:3
May 04 13:00:27 jik5.kamens.us gnome-shell[3465]: Usage of indicator.indicators is deprecated for Indicator
                                                  get indicators@resource:///org/gnome/shell/ui/panelMenu.js:213:25
                                                  getBattery@/<email address hidden>/extension.js:41:5
                                                  show@/<email address hidden>/extension.js:10:3
                                                  update/<@/<email address hidden>/extension.js:27:7
                                                  getBattery@/<email address hidden>/extension.js:41:5
                                                  update@/<email address hidden>/extension.js:23:3

There is nothing useful in the output of gnucash or gsettings:

jik@jik5:~$ gnucash
Found Finance::Quote version 1.49.
jik@jik5:~$ gsettings get org.gnome.shell favorite-apps
['org.gnome.Nautilus.desktop', 'rhythmbox.desktop', 'libreoffice-writer.desktop', 'libreoffice-calc.desktop', 'google-chrome.desktop', 'org.gnome.Terminal.desktop', 'emacs.desktop', 'thunderbird.desktop', 'slack.desktop', 'vinagre.desktop', 'chrome-https___keep.google.com_u_0_.desktop', 'virtualbox.desktop', 'gnucash.desktop']

I am using US English.

Changed in gnucash (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Jonathan Kamens (jik) wrote :

Important:

The icon comes back if I set the dock icon size lower than 34 or higher than 44. It is only blank if the icon size is between 34 and 44.

Revision history for this message
Jonathan Kamens (jik) wrote :

The issue may be that /usr/share/icons/hicolor/scalable/apps/gnucash-icon.svg is corrupt. Here is what I see when I try to open it:

XML parse error: error code=99 (3) in (null):10:72: xmlns:sodipodi: 'http://inkscape.sourceforge.net/DTD/s odipodi-0.dtd' is not a valid URI

Revision history for this message
Jonathan Kamens (jik) wrote :

Yup, that's the problem. When I repair that file the icon is no longer invisible regardless of the size I set for the dock icons:

diff /usr/share/icons/hicolor/scalable/apps/gnucash-icon.svg{.bad,}
10c10
< xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/s odipodi-0.dtd"
---
> xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for finding that out, the issue is fixed in https://bugs.launchpad.net/ubuntu/+source/gnucash/1:3.10-1 and is a candidate for a focal stable update

Changed in gnucash (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :
description: updated
Revision history for this message
bwallum (rbw2) wrote : Re: [Bug 1867796] Re: GnuCash icon in dock is blank

Thanks Sebastien!

On 06/05/2020 16:52, Sebastien Bacher wrote:
> The SRU has been uploaded
>
> https://launchpad.net/ubuntu/focal/+queue?queue_state=1&queue_text=gnucash
>
> ** Description changed:
>
> + * Impact
> + The svg icon is invalid and the new librsvg refuses to render it
> +
> + * Test case
> + open /usr/share/icons/hicolor/scalable/apps/gnucash-icon.svg with e.g eog
> +
> + or set the launcher iconsize to 26 and open gnucash (the standard config
> + works since the png are valids)
> +
> + * Regression potential
> + it's only fixing an invalid DTD reference in an icon which was invalid, the impact should be limited
> +
> + ----------------------------------------------
> +
> The dock icon for GnuCash recently became blank. See attached
> screenshot.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 20.04
> Package: gnucash 1:3.8b-1build3
> ProcVersionSignature: Ubuntu 5.4.0-18.22-generic 5.4.24
> Uname: Linux 5.4.0-18-generic x86_64
> NonfreeKernelModules: nvidia_modeset nvidia
> ApportVersion: 2.20.11-0ubuntu20
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> Date: Tue Mar 17 11:32:01 2020
> InstallationDate: Installed on 2019-01-02 (440 days ago)
> InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
> SourcePackage: gnucash
> UpgradeStatus: Upgraded to focal on 2020-02-25 (21 days ago)
>
--

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Jonathan, or anyone else affected,

Accepted gnucash into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gnucash/1:3.8b-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gnucash (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
M. Weinberg (mrwein56) wrote :

I tested and my test passed. Here are my testing steps:
1. Enable focal-proposed.
2. sudo apt update
3. sudo apt install gnucash (gnucash was already installed on my system)
4. Run "show applications". Verify icon for gnucash is now visible.
5. Verify gnucash icon continues to be visible in Favorites. (this was never broken)
6. Run gnucash. Verify no obvious errors appeared.
7. Reboot system and repeat steps 4 through 7.

Thank you for fixing this.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
bwallum (rbw2) wrote :

I confirm that the latest update has fixed the 'icon missing in launcher at certain icon sizes' bug on my machine.

Result:- gnucash icon shows in launcher panel for all icon sizes.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnucash - 1:3.8b-1ubuntu1

---------------
gnucash (1:3.8b-1ubuntu1) focal; urgency=medium

  * debian/patches/git_svg_fix.patch:
    - backport a fix to the svg icon dtd, the new librsvg is more picky
      and would refuse to render the image otherwise (lp: #1867796)

 -- Sebastien Bacher <email address hidden> Wed, 06 May 2020 17:37:08 +0200

Changed in gnucash (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for gnucash has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.