menulibre wont start after upgrade to 19.04

Bug #1825817 reported by Timon
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
MenuLibre
New
Undecided
Unassigned

Bug Description

after upgrading to Ubuntu 19.04 won't start. i tried reinstalling it but that won't help.
when starting in terminal i get the following:

(menulibre:10108): Gtk-WARNING **: 12:28:33.544: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton

(menulibre:10108): Gtk-WARNING **: 12:28:33.596: gtk_menu_attach_to_widget(): menu already attached to GtkMenuButton
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 2217, in do_activate
    self.win = MenulibreWindow(self, headerbar)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 250, in __init__
    self.configure_application_treeview(builder)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 589, in configure_application_treeview
    self.treeview = MenulibreTreeview.Treeview(self, builder)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreTreeview.py", line 48, in __init__
    self._configure_treeview(builder)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreTreeview.py", line 59, in _configure_treeview
    treestore = MenuEditor.get_treestore()
  File "/usr/lib/python3/dist-packages/menulibre/MenuEditor.py", line 123, in get_treestore
    return menu_to_treestore(treestore, None, menu)
  File "/usr/lib/python3/dist-packages/menulibre/MenuEditor.py", line 100, in menu_to_treestore
    tooltip = escapeText(item[2]['comment'])
  File "/usr/lib/python3/dist-packages/menulibre/util.py", line 99, in escapeText
    return GLib.markup_escape_text(text, len(text))
  File "/usr/lib/python3/dist-packages/gi/overrides/GLib.py", line 415, in markup_escape_text
    return GLib.markup_escape_text(text, length)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 13: unexpected end of data

Update: Changing the system language from German to English fixed it.

Revision history for this message
Timon (the-senate) wrote :

OK, i just changed my system language from German to English and now its starting again

description: updated
Revision history for this message
Martin Dauskardt (md001) wrote :

same problem here (german system language)

Revision history for this message
Dan Jared (danjaredg) wrote :

The problem is with GLib.markup_escape_text, because spanish fail too

Revision history for this message
Dan Jared (danjaredg) wrote :

run as workaround:
env LANG=C menulibre

Revision history for this message
Kirill (kirillnow) wrote :

Simple fix:
sudo sed -i "/GLib.markup_escape_text(text, len(text))/s/len(text)/len(text.encode('utf-8'))/" /usr/lib/python3*/*-packages/menulibre/util.py

GLib.markup_escape_text() expecting length in bytes, len() returns number of code points.

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.