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.
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 python2. 5/site- packages/ Alacarte/ MainWindow. py", line 419, in on_item_ tree_show_ toggled editor. setVisible( item, True) python2. 5/site- packages/ Alacarte/ MenuEditor. py", line 209, in setVisible getXmlMenu( self.__ getPath( item), dom, dom) python2. 5/site- packages/ Alacarte/ MenuEditor. py", line 467, in __getPath root.get_ menu_id( )
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
menu_xml = self.__
File "/usr/lib/
path = menu.tree.
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.