alacarte crashes on startup, when all menu entries are not present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Alacarte Menu Editor |
New
|
Critical
|
|||
alacarte (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: alacarte
1)
patben@
Description: Ubuntu 10.04.1 LTS
Release: 10.04
2)
patben@
alacarte:
Zainstalowana: 0.13.1-0ubuntu1
Kandydująca: 0.13.1-0ubuntu1
Tabela wersji:
*** 0.13.1-0ubuntu1 0
500 http://
100 /var/lib/
3) alacarte is supposed to start
4) alacarte crashes:
patben@
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
app.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
iters[depth] = self.menu_
AttributeError: 'NoneType' object has no attribute 'get_name'
5) Additional Info:
This has occured after:
a) I have installed Squirrel SQL client, with option to add squirrel shortcut to "" menu section (name contains of empty string)
b) new main menu section "" has appeared, and inside there was a shortcut to squirrel
c) I have moved this shortcut to "Programming(?)" section, it was ok
d) I tried to delete "" menu section from main menu.
e) all entries from main menu disappeared (this is unlikely that I have selected all menu entries and deleted them)
e) alacarte stopped to respond, so I have closed it.
f) tried to start alacarte, and it has failed to start with the errors mentioned in point 4)
If you need strace/
If you need to know if this is repeatable, I can try to trigger this on another login.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: alacarte 0.13.1-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Wed Aug 4 10:22:49 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
PackageArchitec
ProcEnviron:
LANG=pl_PL.utf8
SHELL=/bin/bash
SourcePackage: alacarte
Changed in alacarte: | |
status: | Unknown → New |
Changed in alacarte: | |
importance: | Unknown → Critical |
My ~/.config/menus path contained following after this failure: esp-patben- lin:~/. config/ menus$ ls -lR
patben@
.:
razem 12
-rw-r--r-- 1 patben patben 366 2010-08-04 10:27 applications.menu
drwxr-xr-x 2 patben patben 4096 2010-08-04 09:38 applications-merged
-rw-r--r-- 1 patben patben 404 2010-08-04 10:27 settings.menu
./applications- merged: esp-patben- lin:~/. config/ menus$
razem 0
patben@
And my applications.menu file contained only the following: esp-patben- lin:~/Backup/ .config/ menus$ cat applications.menu //DTD Menu 1.0//EN' standards. freedesktop. org/menu- spec/menu- 1.0.dtd'> Applications< /Name> >/etc/xdg/ menus/applicati ons.menu< /MergeFile> Development< /Name> SQuirreL SQL Client. desktop< /Filename>
patben@
<!DOCTYPE Menu
PUBLIC '-//freedesktop
'http://
<Menu>
<Name>
<MergeFile type="parent"
<Menu>
<Name>
<Include>
<Filename>
</Include>
</Menu>
<Deleted/>
</Menu>
After additional search I have copied /etc/xdg/ menus/applicati ons.menu to ~/.config/menus. After that, all menu entries has appeared back... together with "" (empty name) entry. esp-patben- lin:/etc/ xdg/menus$ alacarte
Alacarte has started properly, I have moved squirrel SQL shortcut again to "Programming" entry.
Now I payed more attention, when "(empty)" was selected "Delete" button was greyed out.
I have clicked "squirrel" shortcut in menu entry and deleted it - went fine.
I have clicked "(empty)" - "delete" button was still grey.
I tried to move "(empty)" to subsection of "Accessories" with hope i will be able to delete it.
Then all menu entries has disappeared and after I closed it, terminal contained:
patben@
** (alacarte:3726): WARNING **: Error loading menu layout from "/home/ patben/ .config/ menus/applicati ons.menu" : Line 6 character 9: Element <Old> is required to contain text and was empty
Traceback (most recent call last): pymodules/ python2. 6/Alacarte/ MainWindow. py", line 112, in loadUpdates loadMenus( ) pymodules/ python2. 6/Alacarte/ MainWindow. py", line 213, in loadMenus loadMenu( iters, menu) pymodules/ python2. 6/Alacarte/ MainWindow. py", line 228, in loadMenu store.append( None, (icon, cgi.escape( parent. get_name( )), parent))
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
iters[depth] = self.menu_
AttributeError: 'NoneType' object has no attribute 'get_name'
Conclusion: previously I have accidentally moved "(empty)" menu entry to another section, which has triggered disappearance of all menu entries. Should this be reported as separate bug? I remind you, that this bug concerns crash of alacarte, when there are no menu entries.