Snap package crashes in g_path_get_dirname unless adwaita-icon-theme-full is installed

Bug #1815694 reported by Alexandr
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Unassigned
inkscape (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

1) I try:
/snap/bin/inkscape

2) but terminal showed me:
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Icon 'image-missing' not present in theme Mint-Y (gtk-icon-theme-error-quark, 0)

Emergency save activated!

(inkscape:6503): GLib-CRITICAL **: 02:12:42.305: g_path_get_dirname: assertion 'file_name != NULL' failed
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Gtk-Message: 02:12:42.314: GtkDialog mapped without a transient parent. This is discouraged.

3) Application does not start

4) I use: Linux Mint 19, Cinnamon, 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Alexandr (blackspace)
description: updated
summary: - GLib-CRITICAL and dosent run
+ GLib-CRITICAL and does not start
Revision history for this message
Alex Valavanis (valavanisalex) wrote : Re: GLib-CRITICAL and does not start

I seem to remember I also had this problem...

I think I "solved" it by installing gnome-icon-theme. From my vague recollection, the "image-missing" icon is not being shipped with the standard Ubuntu theme. If that's the case, I'm not sure this is strictly an Inkscape issue... more an Ubuntu theming problem.

We can "fix" it by adding a dependency on gnome-icon-theme for the Ubuntu package.

@Mattia - Worth doing this in the Debian package or just keep this as a downstream fix?

Changed in inkscape:
status: New → Triaged
Changed in inkscape (Ubuntu):
status: New → Confirmed
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

Note how the reporter runs Linux Mint though.

I'm striving to keep Debian and Ubuntu in syncs, so I'd rather have such changes in Debian, but I think I need more details on what's the bug here.
Surely we can reassign this to the icon package if that's the case.

Also, is it really fine for inkscape to "emergency exit" just because it can't find an icon? It feels like it could handle the situation more gracefully.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Yeah, that's definitely a concern. I had a very quick dig in the Inkscape code at the time but didn't dwell on it. @Jabiertxof has been working on Icons recently... maybe he can advise?

Changed in inkscape:
importance: Undecided → High
tags: added: crash ui
Revision history for this message
Jabiertxof (jabiertxof) wrote :
Revision history for this message
Alexandr (blackspace) wrote :

1) I installed this package:
sudo apt install adwaita-icon-theme-full

2) I tried:
/snap/bin/inkscape

Inkscape started and works!!!
version 1.0alpha (ee17174538, 2019-02-13)

Thank you!

Bryce Harrington (bryce)
summary: - GLib-CRITICAL and does not start
+ Snap package crashes in g_path_get_dirname unless adwaita-icon-theme-
+ full is installed
tags: added: snap
Revision history for this message
Nathan Lee (nathan.lee) wrote :

Testing on a Kubuntu 20.? Live Disk, no longer replicated with the current snap package (1.1.1). adwaita-icon-theme-full was not installed. I uninstalled and purged adwaita-icon-theme (which came installed).

Closing as fixed.

note: we no longer use this bugtracker, but have now moved to Gitlab. Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report.

Changed in inkscape:
status: Triaged → Fix Released
Revision history for this message
Mattia Rizzolo (mapreri) wrote :

snap packages bugs are not of concern for the ubuntu specific package, so marking invalid.

Changed in inkscape (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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