menulibre crashed with UnicodeDecodeError in get_submenus(): 'utf-8' codec can't decode byte 0xd3 in position 37: invalid continuation byte

Bug #1299216 reported by RNZ on 2014-03-28
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
menulibre (Ubuntu)
Medium
Unassigned

Bug Description

$ menulibre
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 2509, in do_activate
    self.win = MenulibreWindow(self)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 339, in __init__
    self.configure_application_treeview(builder)
  File "/usr/lib/python3/dist-packages/menulibre/MenulibreApplication.py", line 562, in configure_application_treeview
    treestore = MenuEditor.get_treestore()
  File "/usr/lib/python3/dist-packages/menulibre/MenuEditor.py", line 120, in get_treestore
    menu = get_menus()[0]
  File "/usr/lib/python3/dist-packages/menulibre/MenuEditor.py", line 190, in get_menus
    structure.append(get_submenus(menu, top[0]))
  File "/usr/lib/python3/dist-packages/menulibre/MenuEditor.py", line 158, in get_submenus
    submenus = get_submenus(menu, child)
  File "/usr/lib/python3/dist-packages/menulibre/MenuEditor.py", line 133, in get_submenus
    entry_id = child.get_desktop_file_id()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd3 in position 37: invalid continuation

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: menulibre 2.0.3-1
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Uname: Linux 3.13.0-19-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CrashCounter: 1
CurrentDesktop: XFCE
Date: Sat Mar 29 00:52:50 2014
ExecutablePath: /usr/bin/menulibre
InstallationDate: Installed on 2014-03-23 (5 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha amd64 (20140322)
InterpreterPath: /usr/bin/python3.4
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/menulibre
PythonArgs: ['/usr/bin/menulibre']
SourcePackage: menulibre
Title: menulibre crashed with UnicodeDecodeError in get_submenus(): 'utf-8' codec can't decode byte 0xd3 in position 37: invalid continuation byte
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip libvirtd lpadmin plugdev sambashare sudo

RNZ (renoizer) wrote :
tags: removed: need-duplicate-check
Changed in menulibre (Ubuntu):
importance: Undecided → Medium
Pasi Lallinaho (knome) on 2014-12-09
information type: Private → Public
Changed in menulibre (Ubuntu):
status: New → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for menulibre (Ubuntu) because there has been no activity for 60 days.]

Changed in menulibre (Ubuntu):
status: Incomplete → Expired
zapyon (zapyon) wrote :

I have the same problem seemingly:

menulibre crashes reproducibly during startup with:

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 111, in menu_to_treestore
    treestore = menu_to_treestore(treestore, treeiter, item[3])
  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 77: unexpected end of data

Does anyone know of a workaround or fix?

Sean Davis (bluesabre) wrote :

@zapyon, this sounds like a duplicate of #1825213. Can you test with Menulibre 2.2.1? Thanks!

Hi Sean,

you are right: it is working again with 2.2.1

Thank you everyone who has helped to fix this.

Regards

Andreas

Am 08.04.20 um 02:02 schrieb Sean Davis:
> @zapyon, this sounds like a duplicate of #1825213. Can you test with
> Menulibre 2.2.1? Thanks!
>

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

Other bug subscribers