gnome-app-install 0.1.9 crashes on startup

Bug #31161 reported by Martin Bergner
8
Affects Status Importance Assigned to Milestone
gnome-app-install (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

gnome-app-install crashes on startup when running it from the menu or from the commandline. This is a fresh install of todays daily snapshot (Feb. 12, 2006).

This is the error message that it splits out:

mb@mnlaptop:~$ gnome-app-install

** (gnome-app-install:8391): WARNING **: return value of custom widget handler was not a GtkWidget
Traceback (most recent call last):
  File "/usr/bin/gnome-app-install", line 39, in ?
    app = AppInstall(datadir, sys.argv)
  File "/usr/lib/python2.4/site-packages/AppInstall/AppInstall.py", line 211, in __init__
    self.updateCache()
  File "/usr/lib/python2.4/site-packages/AppInstall/AppInstall.py", line 585, in updateCache
    progress)
  File "/usr/lib/python2.4/site-packages/AppInstall/Menu.py", line 110, in __init__
    self.refresh(progress)
  File "/usr/lib/python2.4/site-packages/AppInstall/Menu.py", line 248, in refresh
    self._populateFromEntry( menu, progress=progress)
  File "/usr/lib/python2.4/site-packages/AppInstall/Menu.py", line 314, in _populateFromEntry
    self._populateFromEntry(entry, item, progress=progress)
  File "/usr/lib/python2.4/site-packages/AppInstall/Menu.py", line 359, in _populateFromEntry
    translated = gettext.dgettext(domain,raw)
  File "/usr/lib/python2.4/gettext.py", line 541, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.4/gettext.py", line 489, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib/python2.4/gettext.py", line 177, in __init__
    self._parse(fp)
  File "/usr/lib/python2.4/gettext.py", line 301, in _parse
    plural = v[1].split('plural=')[1]
IndexError: list index out of range

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

I can confirm this. This always happens with the screem desktop file here.

I don't know if this is a solution, but it works :)

try:
    translated = gettext.dgettext(domain,raw)
except:
    pass

Regards,

Sebastian

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Perhaps related to this: On some apps the whole desktop file is shown in the summary. See the screenshot.

Regards,

Sebastian

Revision history for this message
Sebastian Heinlein (glatzor) wrote : The whole desktop file is shown in the summary

A comment.

Changed in gnome-app-install:
assignee: nobody → mvo
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I followed Sebastians suggestion and added a try: except around gettext.dgetext(). I can't reproduce the problem with xchat-gnome showing all the desktop file.

I tried setting LANGUAGE=de and LC_ALL=de_DE.UTF-8. I get a german g-a-i, but no error on xchat-gnome.

Cheers,
 Michael

Changed in gnome-app-install:
status: Unconfirmed → Needs Info
Revision history for this message
Martin Bergner (martin-bergner) wrote :

Hi,

my locale settings:
mb@mnlaptop:~$ locale
LANG=de_DE.UTF-8
LANGUAGE=de_DE:de
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

I get the error with these, and also see the full desktop file. I don't get the error with en_US:en resp. en_US.UTF-8. Removing the xchat-gnome.desktop file from /usr/share/gnome-app-install/Desktop didn't stop the error.
Is there anything I can add to this section to see what file it is choking on?

Revision history for this message
Martin Bergner (martin-bergner) wrote :

Oh, I forgot to add that the tomboy display is also broken and it contains the line "Plural-Forms: nplurals=2; plural=(n !=1);"

This looks similar to the entry which causes the problem.
Of course, this could be just a coincidence.

Revision history for this message
Michael Vogt (mvo) wrote :

This should be fixed in 0.1.10

Michael Vogt (mvo)
Changed in gnome-app-install:
status: Needs Info → Fix Released
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.