Broken Cinnamon Menu!

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Locked
miggoycor
Level 1
Level 1
Posts: 36
Joined: Sat Feb 09, 2013 9:42 am
Location: Philippines

Broken Cinnamon Menu!

Post by miggoycor » Tue Dec 22, 2015 11:13 pm

So last boot, I experienced some problems with the Cinnamon menu when I was editing it, mainly the editor crashed and refused to restart. I thought that restarting my computer would clear some issues, but now cinnamon refuses to start the menu applet.

Below is the code log that cinnamon gave me when I tried to manually start the menu applet.

Code: Select all

info t=2015-12-23T02:45:04.864Z Cinnamon.AppSystem.get_default() started in 177 ms
info t=2015-12-23T02:45:04.959Z loading user theme: /home/miggoy/.themes/Minty-Miggoy/cinnamon/cinnamon.css
info t=2015-12-23T02:45:05.155Z added icon directory: /home/miggoy/.themes/Minty-Miggoy/cinnamon
info t=2015-12-23T02:45:06.151Z PlacesManager: Updating devices
info t=2015-12-23T02:45:07.107Z Loaded extension cinnamon-maximus@fmete in 367 ms
info t=2015-12-23T02:45:07.261Z Loaded extension opacify@anish.org in 153 ms
info t=2015-12-23T02:45:07.262Z loaded at Wed Dec 23 2015 10:45:07 GMT+0800 (PHT)
error t=2015-12-23T02:45:07.617Z root is null
trace t=2015-12-23T02:45:07.617Z 
<----------------
MyApplet.prototype._refreshApps@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1853
MyApplet.prototype._refreshAll@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1154
MyApplet.prototype._init@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1136
MyApplet@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1054
main@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:2644
createApplet@/usr/share/cinnamon/js/ui/appletManager.js:329
addAppletToPanels@/usr/share/cinnamon/js/ui/appletManager.js:256
finishExtensionLoad@/usr/share/cinnamon/js/ui/appletManager.js:59
loadExtension@/usr/share/cinnamon/js/ui/extension.js:451
init@/usr/share/cinnamon/js/ui/appletManager.js:46
start@/usr/share/cinnamon/js/ui/main.js:451
@<main>:1
---------------->
error t=2015-12-23T02:45:07.617Z [Applet "menu@cinnamon.org"]: Failed to evaluate 'main' function on applet: menu@cinnamon.org/0
error t=2015-12-23T02:45:07.618Z Could not load applet menu@cinnamon.org
info t=2015-12-23T02:45:07.722Z Loaded applet show-desktop@cinnamon.org in 104 ms
info t=2015-12-23T02:45:08.374Z Loaded applet WindowListGroup@jake.phy@gmail.com in 651 ms
info t=2015-12-23T02:45:08.961Z Loaded applet multicore-sys-monitor@ccadeptic23 in 587 ms
info t=2015-12-23T02:45:09.728Z Loaded applet keyboard@cinnamon.org in 766 ms
info t=2015-12-23T02:45:10.049Z Loaded applet weather@mockturtl in 320 ms
info t=2015-12-23T02:45:10.109Z Loaded applet inhibit@cinnamon.org in 59 ms
info t=2015-12-23T02:45:10.139Z Loaded applet slideshow@cinnamon.org in 29 ms
info t=2015-12-23T02:45:10.507Z Loaded applet user@cinnamon.org in 368 ms
info t=2015-12-23T02:45:10.571Z Loaded applet windows-quick-list@cinnamon.org in 63 ms
info t=2015-12-23T02:45:11.930Z Role locked: panellauncher
info t=2015-12-23T02:45:11.930Z Loaded applet panel-launchers@cinnamon.org in 1359 ms
info t=2015-12-23T02:45:11.965Z Loaded applet systray@cinnamon.org in 34 ms
info t=2015-12-23T02:45:11.986Z Loaded applet removable-drives@cinnamon.org in 20 ms
info t=2015-12-23T02:45:12.312Z Role locked: notifications
info t=2015-12-23T02:45:12.316Z Loaded applet notifications@cinnamon.org in 330 ms
info t=2015-12-23T02:45:12.723Z Loaded applet bluetooth@cinnamon.org in 406 ms
info t=2015-12-23T02:45:13.041Z Loaded applet network@cinnamon.org in 317 ms
info t=2015-12-23T02:45:13.394Z Loaded applet sound@cinnamon.org in 352 ms
info t=2015-12-23T02:45:13.475Z Loaded applet power@cinnamon.org in 81 ms
info t=2015-12-23T02:45:13.622Z Loaded applet calendar@cinnamon.org in 147 ms
info t=2015-12-23T02:45:13.622Z AppletManager.init() started in 6360 ms
info t=2015-12-23T02:45:13.624Z Cinnamon took 9818 ms to start
info t=2015-12-23T02:45:14.124Z Adding indicator: fluxgui-indicator
info t=2015-12-23T02:45:14.128Z Hiding indicator (role already handled): nm-applet
info t=2015-12-23T02:45:14.717Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:45:16.358Z Resized soffice with normalized size (22x22px)
info t=2015-12-23T02:45:25.289Z Adding indicator: transmission
info t=2015-12-23T02:45:31.986Z Adding indicator: insync
info t=2015-12-23T02:46:46.512Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:46:48.014Z Resized soffice with normalized size (22x22px)
error t=2015-12-23T02:46:50.969Z root is null
trace t=2015-12-23T02:46:50.969Z 
<----------------
MyApplet.prototype._refreshApps@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1853
MyApplet.prototype._refreshAll@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1154
MyApplet.prototype._init@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1136
MyApplet@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1054
main@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:2644
createApplet@/usr/share/cinnamon/js/ui/appletManager.js:329
addAppletToPanels@/usr/share/cinnamon/js/ui/appletManager.js:256
finishExtensionLoad@/usr/share/cinnamon/js/ui/appletManager.js:59
loadExtension@/usr/share/cinnamon/js/ui/extension.js:451
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:197
---------------->
error t=2015-12-23T02:46:50.969Z [Applet "menu@cinnamon.org"]: Failed to evaluate 'main' function on applet: menu@cinnamon.org/22
error t=2015-12-23T02:46:50.970Z Could not load applet menu@cinnamon.org
info t=2015-12-23T02:46:50.971Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:46:51.067Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:46:52.570Z Resized soffice with normalized size (22x22px)
error t=2015-12-23T02:47:16.720Z root is null
trace t=2015-12-23T02:47:16.720Z 
<----------------
MyApplet.prototype._refreshApps@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1853
MyApplet.prototype._refreshAll@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1154
MyApplet.prototype._init@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1136
MyApplet@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1054
main@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:2644
createApplet@/usr/share/cinnamon/js/ui/appletManager.js:329
addAppletToPanels@/usr/share/cinnamon/js/ui/appletManager.js:256
finishExtensionLoad@/usr/share/cinnamon/js/ui/appletManager.js:59
loadExtension@/usr/share/cinnamon/js/ui/extension.js:451
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:197
---------------->
error t=2015-12-23T02:47:16.720Z [Applet "menu@cinnamon.org"]: Failed to evaluate 'main' function on applet: menu@cinnamon.org/23
error t=2015-12-23T02:47:16.720Z Could not load applet menu@cinnamon.org
info t=2015-12-23T02:47:16.722Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:47:16.765Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:47:18.267Z Resized soffice with normalized size (22x22px)
error t=2015-12-23T02:47:55.468Z root is null
trace t=2015-12-23T02:47:55.468Z 
<----------------
MyApplet.prototype._refreshApps@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1853
MyApplet.prototype._refreshAll@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1154
MyApplet.prototype._init@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1136
MyApplet@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1054
main@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:2644
createApplet@/usr/share/cinnamon/js/ui/appletManager.js:329
addAppletToPanels@/usr/share/cinnamon/js/ui/appletManager.js:256
finishExtensionLoad@/usr/share/cinnamon/js/ui/appletManager.js:59
loadExtension@/usr/share/cinnamon/js/ui/extension.js:451
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:197
---------------->
error t=2015-12-23T02:47:55.468Z [Applet "menu@cinnamon.org"]: Failed to evaluate 'main' function on applet: menu@cinnamon.org/24
error t=2015-12-23T02:47:55.469Z Could not load applet menu@cinnamon.org
info t=2015-12-23T02:47:55.470Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:47:55.518Z Adding systray: soffice (20x20px)
info t=2015-12-23T02:47:57.020Z Resized soffice with normalized size (22x22px)
info t=2015-12-23T02:48:30.730Z Adding systray: google-chrome-stable (20x20px)
info t=2015-12-23T02:48:32.234Z Resized google-chrome-stable with normalized size (22x22px)
error t=2015-12-23T03:06:10.702Z root is null
trace t=2015-12-23T03:06:10.702Z 
<----------------
MyApplet.prototype._refreshApps@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1853
MyApplet.prototype._refreshAll@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1154
MyApplet.prototype._init@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1136
MyApplet@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:1054
main@/usr/share/cinnamon/applets/menu@cinnamon.org/applet.js:2644
createApplet@/usr/share/cinnamon/js/ui/appletManager.js:329
addAppletToPanels@/usr/share/cinnamon/js/ui/appletManager.js:256
finishExtensionLoad@/usr/share/cinnamon/js/ui/appletManager.js:59
loadExtension@/usr/share/cinnamon/js/ui/extension.js:451
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:197
---------------->
error t=2015-12-23T03:06:10.702Z [Applet "menu@cinnamon.org"]: Failed to evaluate 'main' function on applet: menu@cinnamon.org/25
error t=2015-12-23T03:06:10.702Z Could not load applet menu@cinnamon.org
info t=2015-12-23T03:06:10.704Z Adding systray: soffice (20x20px)
info t=2015-12-23T03:06:10.705Z Adding systray: google-chrome-stable (20x20px)
info t=2015-12-23T03:06:10.759Z Adding systray: soffice (20x20px)
info t=2015-12-23T03:06:10.760Z Adding systray: google-chrome-stable (20x20px)
info t=2015-12-23T03:06:12.261Z Resized soffice with normalized size (22x22px)
info t=2015-12-23T03:06:12.263Z Resized google-chrome-stable with normalized size (22x22px)
I have no idea what is wrong, so my plan of action is to restore the cinnamon menu applet to default settings. How do I do that?


I'm using Linux Mint 17.3 64bit with Cinnamon 2.8.6 with Linux 4.2.0-19-generic.

UPDATE: I dowloaded a replacement menu for the meantime, StarkMenu:http://cinnamon-spices.linuxmint.com/applets/view/168, but it requires the cinnamon menu editor to work, which is still broken. So I think I isolated the issue to the CInnamon Menu Editor. How do I fix that?

UPDATE2: I ran cinnamon-menu-editor, this came out:

Code: Select all

cinnamon-menu-editor
Traceback (most recent call last):
  File "/usr/bin/cinnamon-menu-editor", line 19, in <module>
    main()
  File "/usr/bin/cinnamon-menu-editor", line 15, in main
    app = MainWindow.MainWindow(datadir, version)
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MainWindow.py", line 43, in __init__
    self.editor = MenuEditor()
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py", line 31, in __init__
    self.load()
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py", line 44, in load
    if not self.tree.load_sync():
gi._glib.GError: Error on line 1 char 1: Document was empty or contained only whitespace
Not sure what to make of it. I think something is corrupted with MenuEditor.py, though.

UPDATE3: I made a new profile to test cinnamon-menu-editor. It works! So I've isolated the problem to *my* instance of Cinnamon. But I cannot seem to find where my menu-editor cache is. I tried deleting /home/user/.cinnamon/configs/menu@cinnamon.org but no joy; menu is still broken.

Cosmo.
Level 23
Level 23
Posts: 17829
Joined: Sat Dec 06, 2014 7:34 am

Re: Broken Cinnamon Menu!

Post by Cosmo. » Wed Dec 23, 2015 6:22 am

Open a terminal and enter (one after the other):

Code: Select all

ll ~/.config/menus
ll ~/.config/dconf
Paste the output here.

After that go with your file manager into the hidden folder .config in your home.
Rename the folder menus to menus.bck
Immediately log off and back in.

If this does not help do the same for the folder dconf in .config

miggoycor
Level 1
Level 1
Posts: 36
Joined: Sat Feb 09, 2013 9:42 am
Location: Philippines

Re: Broken Cinnamon Menu!

Post by miggoycor » Wed Dec 23, 2015 10:31 pm

Code: Select all

miggoy@mintyfresh-linux ~ $ ll ~/.config/menus
total 20
drwxr-xr-x  3 miggoy miggoy  4096 Dec 15 22:21 ./
drwxr-xr-x 29 miggoy miggoy  4096 Dec 22 11:41 ../
drwxr-xr-x  2 miggoy miggoy 12288 Dec 22 11:14 applications-merged/
-rw-r--r--  1 miggoy miggoy     0 Dec 22 11:19 cinnamon-applications.menu
lrwxrwxrwx  1 miggoy miggoy    46 Dec 15 19:49 cinnamon-applications-merged -> /home/miggoy/.config/menus/applications-merged/
lrwxrwxrwx  1 miggoy miggoy    19 Dec 15 21:18 gnome-applications-merged -> applications-merged/

Code: Select all

miggoy@mintyfresh-linux ~ $ ll ~/.config/dconf
total 32
drwxr-xr-x  2 miggoy miggoy  4096 Dec 24 10:27 ./
drwxr-xr-x 29 miggoy miggoy  4096 Dec 22 11:41 ../
-rw-r--r--  1 miggoy miggoy 21708 Dec 24 10:27 user


miggoycor
Level 1
Level 1
Posts: 36
Joined: Sat Feb 09, 2013 9:42 am
Location: Philippines

Re: Broken Cinnamon Menu!

Post by miggoycor » Wed Dec 23, 2015 10:40 pm

Okay it worked! Thanks!

soygoodpeople
Level 1
Level 1
Posts: 1
Joined: Thu Jan 21, 2016 1:48 pm

Re: Broken Cinnamon Menu!

Post by soygoodpeople » Thu Jan 21, 2016 2:52 pm

Cosmo. wrote:Open a terminal and enter (one after the other):

Code: Select all

ll ~/.config/menus
ll ~/.config/dconf
Paste the output here.

After that go with your file manager into the hidden folder .config in your home.
Rename the folder menus to menus.bck
Immediately log off and back in.

If this does not help do the same for the folder dconf in .config
this works for me too, I'm using Linux Mint 17.3 Rosa



FUNCIONO PARA MI TAMBIÉN! yo estoy usando Linux Mint 17.3 Rosa

Abre la terminal e ingresa los siguientes comandos (uno después del otro):

Code: Select all

ll ~/.config/menus
ll ~/.config/dconf
Luego pega el resultado aquí!, para analizarlo en conjunto

Luego de que ingreses los comandos entra a la carpeta home y muestra los archivos ocultos, luego entra en la carpeta .config
dentro de la carpeta .config Renombra la carpeta menus por menus.bck
Inmediatamente cierra tu sesion y vuelve a entrar.

Si eso no funciona has lo mismo para la carpeta dconf que se encuentra dentro de .config

Saludos Hispanohablantes. :)

Cosmo.
Level 23
Level 23
Posts: 17829
Joined: Sat Dec 06, 2014 7:34 am

Re: Broken Cinnamon Menu!

Post by Cosmo. » Thu Jan 21, 2016 6:42 pm

And this means in plain English?

Krzychu
Level 2
Level 2
Posts: 69
Joined: Sat Mar 01, 2014 9:14 pm

Re: Broken Cinnamon Menu!

Post by Krzychu » Tue Jan 26, 2016 3:43 pm

Hello. I would like to make a bug from this. I've got same errors, provided fix also worked for me. After digging a little, as you can see:
-rw-r--r-- 1 miggoy miggoy 0 Dec 22 11:19 cinnamon-applications.menu
size of this file is zero! If it's zero, it's broken and menu won't load, work, etc.
In my case it's size got zero too. So I deleted that file. Viola, menu works again. Relog might be required.

I can reproduce steps to make crash while editing menu.
It's quite easy.

Background info:
I've installed windows program using wine, it then added shortcuts to menu. What I want to do it so hide most of them, since I need only one - to run program. Others, like readme I do not want to see in menu.

To the point:
So I edit my menu, uncheck the boxes near programs I do not want to see. Works perfect.
Now there is one shortcut, it always make menu editor crash (when unchecking the "show" box, didn't try removing it totally).
And this shortcut is a little bit different than others. It include my local character in it's name. It's pointing to file that also have my local character in it. And I believe problem is in that - menu editor can't process UTF-8 character.
Still, if it's not the case, you can dig a little bit more. I'm attaching that shortcut what makes problems. Have fun & test it on some test account! :)
Attachments
menu.tar
Menu shortcut that makes menu editor crash when unchecking box under "show" option. Unpack to ~/.config/menus/applications-merged then try to uncheck "show" box in menu editor.
(10 KiB) Downloaded 41 times

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Broken Cinnamon Menu!

Post by austin.texas » Wed Jan 27, 2016 7:53 am

Cosmo. wrote:And this means in plain English?
It is a translation of your first post into Spanish, nothing more.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

Cosmo.
Level 23
Level 23
Posts: 17829
Joined: Sat Dec 06, 2014 7:34 am

Re: Broken Cinnamon Menu!

Post by Cosmo. » Wed Jan 27, 2016 10:59 am

Aha.

BTW: How many languages do you speak? I saw some German words from you, Spanish, English of course.

User avatar
austin.texas
Level 20
Level 20
Posts: 12054
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Broken Cinnamon Menu!

Post by austin.texas » Wed Jan 27, 2016 11:17 am

Cosmo. wrote:Aha.

BTW: How many languages do you speak? I saw some German words from you, Spanish, English of course.
I had many years of German classes in school, and learned Spanish well by studying as an adult, on my own.
But the first thing I learned was to say "Will you spend the night with me?" in 12 languages.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

diogoborges14
Level 1
Level 1
Posts: 1
Joined: Wed Oct 17, 2018 7:59 pm

Re: Broken Cinnamon Menu!

Post by diogoborges14 » Wed Oct 17, 2018 8:08 pm

To solve this problem delete the file "cinnamon-applications.menu" with the command:
$rm ~/.config/menus/cinnamon-applications.menu



Para areglar este problema elimine el archivo “cinnamon-applications.menu” usando el comando:
$rm ~/.config/menus/cinnamon-applications.menu



Para resolve esse problema apague o arquivo “cinnamon-applications.menu” usando o comando:
$rm ~/.config/menus/cinnamon-applications.menu

Locked

Return to “Cinnamon”