[snap] 5.3.3 menus are corrupted

Bug #1700779 reported by Sebastien Bacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Invalid
High
Olivier Tilloy

Bug Description

Testing the 5.3.3 candidate update the menus are corrupted (a part of the labels are not showing or only on mouseover)

Tags: snap
Olivier Tilloy (osomon)
Changed in libreoffice (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Screenshot demonstrating the problem:

Revision history for this message
Olivier Tilloy (osomon) wrote :
Download full text (4.0 KiB)

Relevant logs when opening the "tools" menu:

(soffice:22160): Gtk-WARNING **: Error loading image 'file:///usr/share/themes/Ambiance/gtk-3.0/assets/button-hover.png': Unrecognized image file format

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): Gtk-WARNING **: Error loading image 'file:///usr/share/themes/Ambiance/gtk-3.0/assets/check-menuitem.png': Unrecognized image file format

(soffice:22160): Gtk-WARNING **: drawing failure for widget 'GtkModelMenuItem': invalid matrix (not invertible)

(soffice:22160): Gtk-WARNING **: drawing failure for widget 'GtkMenu': invalid matrix (not invertible)

(soffice:22160): Gtk-WARNING **: drawing failure for widget 'GtkWindow': invalid matrix (not invertible)

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Unrecognized image file format

(soffice:22160): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(soffice:22160): GLib-GObjec...

Read more...

Revision history for this message
Olivier Tilloy (osomon) wrote :

Creating ~/snap/libreoffice/current/.cache/gdk-pixbuf-loaders.cache with the loaders correctly pointing to the libs inside the snap fixes the issue.

Revision history for this message
Olivier Tilloy (osomon) wrote :

And it appears it's not correctly created by default because the desktop-launch helper looks for ~/.last_revision, which in a classic snap isn't in a confined home, it's in the actual user's home directory. Deleting that file and re-launching the app fixes the issue too.

Submitted a fix upstream: https://github.com/ubuntu/snapcraft-desktop-helpers/pull/66

Changed in libreoffice (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Olivier Tilloy (osomon) wrote :

Closing now as this was a test snap that was never published anywhere, and the issue was resolved (note that I've reverted to strict confinement).

Changed in libreoffice (Ubuntu):
status: In Progress → Fix Released
status: Fix Released → 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.