[7.04] alacarte crashed with AttributeError in __getPath()

Bug #84060 reported by Benjamín Valero Espinosa
148
This bug affects 2 people
Affects Status Importance Assigned to Milestone
alacarte (Ubuntu)
Expired
Medium
Unassigned

Bug Description

Binary package hint: alacarte

This error message appeared when unchecking an item. I think it can be related with Python, but I know very few about these things, so I have assigned the bug to Alacarte.

ProblemType: Crash
Date: Thu Feb 8 21:10:12 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/alacarte
Package: alacarte 0.11.1.1-0ubuntu4
ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
ProcCwd: /home/benja
ProcEnviron:
 SHELL=/bin/bash
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=es_ES.UTF-8
PythonArgs: ['/usr/bin/alacarte']
SourcePackage: alacarte
Uname: Linux desktop 2.6.20-6-generic #2 SMP Wed Jan 31 20:53:39 UTC 2007 i686 GNU/Linux

Tags: feisty
Revision history for this message
Benjamín Valero Espinosa (benjavalero) wrote :
Changed in alacarte:
importance: Undecided → High
Revision history for this message
Freddy Martinez (freddymartinez9) wrote :

Can you post the full crash report found /var/crash? thanks.

Changed in alacarte:
assignee: nobody → freddymartinez9
status: Unconfirmed → Needs Info
Revision history for this message
Benjamín Valero Espinosa (benjavalero) wrote :

Mmm, I don't see any crash related to alacarte in that folder. Well, I will try to reproduce again the bug and look for that crash. Whilst, I suppose this bug should be closed at the moment.

Revision history for this message
Th. Sievers (th-sievers) wrote : Re: [Bug 84060] Re: [apport] alacarte crashed with AttributeError in __getPath()
Download full text (38.8 KiB)

Freddy Martinez schrieb:
> Can you post the full crash report found /var/crash? thanks.
>
> ** Changed in: alacarte (Ubuntu)
> Assignee: (unassigned) => Freddy Martinez
> Status: Unconfirmed => Needs Info
>
>

ProblemType: Crash
Date: Mon Mar 19 06:34:57 2007
ExecutablePath: /usr/bin/alacarte
InterpreterPath: /usr/bin/python2.5
ProcCmdline: /usr/bin/python -OOt /usr/bin/alacarte
ProcCwd: /home/thomas
ProcEnviron:
 LANGUAGE=de_DE.UTF-8
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcMaps:
 08048000-0813e000 r-xp 00000000 03:05 1020144 /usr/bin/python2.5
 0813e000-08163000 rw-p 000f6000 03:05 1020144 /usr/bin/python2.5
 08163000-08927000 rw-p 08163000 00:00 0 [heap]
 b5687000-b568d000 r-xp 00000000 03:05 1069085 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
 b568d000-b568e000 rw-p 00005000 03:05 1069085 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
 b568f000-b56fd000 r--p 00000000 03:05 66146 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
 b56fd000-b5701000 r-xp 00000000 03:05 1069079 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
 b5701000-b5702000 rw-p 00003000 03:05 1069079 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
 b5703000-b5712000 r--p 00000000 03:05 179775 /usr/share/locale-langpack/de/LC_MESSAGES/xscreensaver.mo
 b5712000-b5714000 r--p 00000000 03:05 178946 /usr/share/locale-langpack/de/LC_MESSAGES/hal.mo
 b5714000-b571a000 r--p 00000000 03:05 179796 /usr/share/locale-langpack/de/LC_MESSAGES/gnome-screensaver.mo
 b571a000-b571e000 r--p 00000000 03:05 179602 /usr/share/locale-langpack/de/LC_MESSAGES/gnome-app-install.mo
 b571e000-b5722000 r--p 00000000 03:05 179773 /usr/share/locale-langpack/de/LC_MESSAGES/vino.mo
 b5722000-b5724000 r--p 00000000 03:05 179572 /usr/share/locale-langpack/de/LC_MESSAGES/bug-buddy.mo
 b5724000-b5726000 r--p 00000000 03:05 180716 /usr/share/locale-langpack/de/LC_MESSAGES/apport.mo
 b5726000-b5727000 r--p 00000000 03:05 179783 /usr/share/locale-langpack/de/LC_MESSAGES/gnome-btdownload.mo
 b5727000-b5729000 r--p 00000000 03:05 180683 /usr/share/locale-langpack/de/LC_MESSAGES/language-selector.mo
 b5729000-b572b000 r--p 00000000 03:05 179598 /usr/share/locale-langpack/de/LC_MESSAGES/gnome-desktop-2.0.mo
 b572b000-b5730000 r--p 00000000 03:05 179589 /usr/share/locale-langpack/de/LC_MESSAGES/file-roller.mo
 b5730000-b5735000 r--p 00000000 03:05 179579 /usr/share/locale-langpack/de/LC_MESSAGES/eog.mo
 b5735000-b5739000 r--p 00000000 03:05 179619 /usr/share/locale-langpack/de/LC_MESSAGES/gnome-nettool.mo
 b5739000-b5745000 r--p 00000000 03:05 180648 /usr/share/locale-langpack/de/LC_MESSAGES/xsane.mo
 b5745000-b574a000 r--p 00000000 03:05 179778 /usr/share/locale-langpack/de/LC_MESSAGES/evince.mo
 b574a000-b574e000 r--p 00000000 03:05 179633 /usr/share/locale-langpack/de/LC_MESSAGES/gnome-session-2.0.mo
 b574e000-b574f000 r--p 00000000 03:05 179818 /usr/share/locale-langpack/de_DE/LC_MESSAGES/gnome-session-2.0.mo
 b574f000-b5754000 r--p 00000000 03:05 179776 /usr/share/locale-lan...

Revision history for this message
Benjamín Valero Espinosa (benjavalero) wrote : Re: [apport] alacarte crashed with AttributeError in __getPath()

Playing with alacarte, I have reproduced the bug again, but I can't do it every time :( The problem has come turning off the Preferences item on System. Also, there are more lines in the crash to help:

** (alacarte:32158): CRITICAL **: gmenu_tree_ref: assertion `tree != NULL' failed
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line 419, in on_item_tree_show_toggled
    self.editor.setVisible(item, True)
  File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 209, in setVisible
    menu_xml = self.__getXmlMenu(self.__getPath(item), dom, dom)
  File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line 467, in __getPath
    path = menu.tree.root.get_menu_id()
AttributeError: 'NoneType' object has no attribute 'root'

Although called by another method, the bug happens again in __getPath, on trying to access to the 'tree' property of the menu (the 'menu' variable can be also an item). It is supposed that every 'gmenu' object must have a 'tree' property, but in this case this property is null. Besides, the assertion fail tells it too.

Revision history for this message
Freddy Martinez (freddymartinez9) wrote :

There should be a full crash report somewhere.

Th. Sievers can you attach the crash report? That way we can use apport locally to trace it. Thanks.

Revision history for this message
Travis Watkins (amaranth) wrote :

Actually it's because when you change gmenu updates it's internal tree of the menu and all the old objects it gave you are suddenly junk. Hard to keep track of without essentially doing a full reload of alacarte on every little change. afaik this error is harmless in this case and apport is just being overly jumpy about python exceptions.

Revision history for this message
Travis Watkins (amaranth) wrote :

when you change your _menu_ gmenu updates

Sorry.

Revision history for this message
Th. Sievers (th-sievers) wrote : Re: [Bug 84060] Re: [apport] alacarte crashed with AttributeError in __getPath()

Sorry,

but I canceled this option in cause of min. 3 MB size file

Best regards Th. Sievers

Freddy Martinez schrieb:
> There should be a full crash report somewhere.
>
> Th. Sievers can you attach the crash report? That way we can use apport
> locally to trace it. Thanks.
>
>

Revision history for this message
Th. Sievers (th-sievers) wrote : Re: [apport] alacarte crashed with AttributeError in __getPath()

Hello all,

the chrash happend when unchecking the item Sun Java in system-administration

Best regards
Th. Sievers

Revision history for this message
bubarda (bubarda) wrote :

this happened when I tried to add a third separator line

Changed in alacarte:
status: Needs Info → Confirmed
assignee: freddymartinez9 → amaranth
Revision history for this message
Travis Watkins (amaranth) wrote :

This is not a real crash.

Changed in alacarte:
importance: High → Low
Revision history for this message
Felipe Micaroni Lalli (micaroni) wrote : Re: [Bug 84060] Re: [apport] alacarte crashed with AttributeError in __getPath()

Yes, it is!

   Importance: Low => High

2007/5/8, Travis Watkins <email address hidden>:
>
> This is not a real crash.
>
> ** Changed in: alacarte (Ubuntu)
> Importance: High => Low
>
> --
> [apport] alacarte crashed with AttributeError in __getPath()
> https://bugs.launchpad.net/bugs/84060
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Revision history for this message
AndrewL (ryoushi19) wrote : Re: [apport] alacarte crashed with AttributeError in __getPath()

I find it insulting that the priority of this bug is set to "Low", and that one person even bothered to claim that this is not a real crash. I, myself, experience it every single time I try to revert the applicaitons menu, and all my applications links are GONE. If Ubuntu intends to be a distribution focusing on user empowerment, it needs to stop ignoring its users on bugs this large.

Revision history for this message
Felipe Micaroni Lalli (micaroni) wrote : Re: [Bug 84060] Re: [apport] alacarte crashed with AttributeError in __getPath()

I agree.

2007/10/5, AndrewL <email address hidden>:
>
> I find it insulting that the priority of this bug is set to "Low", and
> that one person even bothered to claim that this is not a real crash.
> I, myself, experience it every single time I try to revert the
> applicaitons menu, and all my applications links are GONE. If Ubuntu
> intends to be a distribution focusing on user empowerment, it needs to
> stop ignoring its users on bugs this large.
>
> --
> [apport] alacarte crashed with AttributeError in __getPath()
> https://bugs.launchpad.net/bugs/84060
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Changed in alacarte:
importance: Low → Medium
Revision history for this message
Tomas Pospisek (tpo-deb) wrote : Re: [apport] alacarte crashed with AttributeError in __getPath()

Same problem here.

So, it's April 2008 and Hardy is in a hurry to ship.

In my plain ole default installation of Hardy:

- Tomboy crashes on system start (my bugreport was marked "invalid" wheeee!)
- F-Spot doesn't even start
- alacarte crashes arbitrarily when I do whatever in it, like moving menu items up or down or ticking some menu item
  ("alacarte crashed with AttributeError in __getPath()") and doesn't seem to be a bug either

And that's the default installation. So if all the bugs posted by the users are being marked invalid and such, then Hardy will be able to ship without bugs, which is something Ubuntu can be truly fond of, and users won't need to report bugs, which is good now I think about it. Is this too sarkastic or does it actually represent current practice wrt bugreports?

Revision history for this message
Pascal De Vuyst (pascal-devuyst) wrote :

Since this bug and its duplicates only affects Ubuntu 7.04 it is better to open a new bug report if you are still experiencing this problem with Ubuntu 8.04.
Actually a new bug for Ubuntu 8.04 has already been reported in bug 227774. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Revision history for this message
Felipe Micaroni Lalli (micaroni) wrote : Re: [Bug 84060] Re: [apport] alacarte crashed with AttributeError in __getPath()

O_O Absurd.

On Sun, May 11, 2008 at 11:39 AM, Pascal De Vuyst <email address hidden>
wrote:

> Since this bug and its duplicates only affects Ubuntu 7.04 it is better to
> open a new bug report if you are still experiencing this problem with Ubuntu
> 8.04.
> Actually a new bug for Ubuntu 8.04 has already been reported in bug 227774.
> Please look at the other bug report to see if there is any missing
> information that you can provide, or to see if there is a workaround for the
> bug. Additionally, any further discussion regarding the bug should occur in
> the other report. Feel free to continue to report any other bugs you may
> find.
>
> ** Summary changed:
>
> - [apport] alacarte crashed with AttributeError in __getPath()
> + [7.04] alacarte crashed with AttributeError in __getPath()
>
> --
> [7.04] alacarte crashed with AttributeError in __getPath()
> https://bugs.launchpad.net/bugs/84060
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Changed in alacarte:
assignee: amaranth → nobody
Changed in alacarte:
status: Confirmed → Triaged
tags: added: feisty
Revision history for this message
Ads20000 (ads20000) wrote :

Thank you for reporting this bug to Ubuntu.
Ubuntu 8.04 (hardy) reached end-of-life on May 12, 2011.

See this document for currently supported Ubuntu releases:
https://wiki.ubuntu.com/Releases

We appreciate that this bug may be old and you might not be interested in discussing it any more. But if you are then please upgrade to the latest Ubuntu version and re-test. If you then find the bug is still present in the newer Ubuntu version, please add a comment here telling us which new version it is in and change the bug status to Confirmed.

Changed in alacarte (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in alacarte (Ubuntu):
status: Incomplete → Expired
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.