Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cinnamon Crash (Menu, Panel, Windows, etc.) when editing menu record created by Wine. #1560

Closed
artexnet opened this issue Jan 3, 2013 · 3 comments

Comments

@artexnet
Copy link

artexnet commented Jan 3, 2013

  1. Trying to install a windows software for playing chess online _http://chessok.com/download/cp316/ChessPlanet_r.exe (English language can be selected after installation)
  2. The fonts were not readable (but cyrillic fonts where installed)
  3. Menu record was not readable also
  4. Tried to rename menu record into English "Chessplanet" with Edit->Properties
  5. Cinnamon did not respond for some seconds then crashed!! Menu, Panel, Windows settings - all gone.
  6. Could not restore the previous state, had to format/reinstall the system. The user configs were deleted and the panel came back, but there were also other issues, it was not a solution.
  7. Just for information, this issue was reproduced exactly in the same order twice.

Thank you!

NOTE:

  • AMD Phenom X3
  • ATI Radeon HD 3770
  • Linux Mint 14 Nadya 64 bit
@jabbany
Copy link

jabbany commented Mar 24, 2013

Seems like is an effect of #1025 , try deleting ~/.config/menus/cinnamon-applications.menu.
#1025 should be reopened.

@jabbany
Copy link

jabbany commented Mar 24, 2013

Having the same issue.

Here's the output from logging cinnamon:

  JS LOG: Cinnamon started at Sun Mar 24 2013 03:21:49 GMT-0400 (EDT)
  JS LOG: network applet: Cannot find connection for active (or connection cannot be read)
  JS LOG: network applet: Cannot find connection for active (or connection cannot be read)
  JS LOG: network applet: Found connection for active
  JS LOG: network applet: Found connection for active
Traceback (most recent call last):
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MainWindow.py", line 349, in on_item_tree_show_toggled
    self.editor.setVisible(item, False)
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MenuEditor.py", line 193, in setVisible
    self.save()
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MenuEditor.py", line 52, in save
    fd.write(self.dom.toprettyxml())
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 60, in toprettyxml
    return writer.getvalue()
  File "/usr/lib/python2.7/StringIO.py", line 271, in getvalue
    self.buf += ''.join(self.buflist)
**UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 14: ordinal not in range(128)**
Traceback (most recent call last):
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MenuEditor.py", line 48, in menuChanged
    self.load()
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MenuEditor.py", line 45, in load
    raise ValueError("can not load menu tree %r" % (self.name,))
ValueError: can not load menu tree 'cinnamon-applications.menu'
Segmentation fault
** (cinnamon-menu-editor:3993): CRITICAL **: gmenu_tree_get_root_directory: assertion `tree->loaded' failed
Traceback (most recent call last):
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MainWindow.py", line 63, in menuChanged
    self.loadUpdates()
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MainWindow.py", line 92, in loadUpdates
    self.loadMenus()
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MainWindow.py", line 188, in loadMenus
    self.loadMenu({ None: None })
  File "/usr/lib/cinnamon-menu-editor/Alacarte/MainWindow.py", line 199, in loadMenu
    name = cgi.escape(menu.get_name())
AttributeError: 'NoneType' object has no attribute 'get_name'```

Seems that Wine creates a non-ascii file name and causes alacarte to crash, leaving an empty config file which causes cinnamon to segfault. This error should have been caught in cinnamon-menu-editor. And maybe cinnamon should fail more gracefully at-least upon an empty menu settings file.

@mtwebster
Copy link
Member

Please check with latest cinnamon, quite a bit of changes were made to the editor, will reopen if there are still issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants