[SOLVED] Cinnamon menu has disappeared after locale-gen

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Post Reply
kco
Level 1
Level 1
Posts: 3
Joined: Wed Feb 12, 2020 5:02 pm

[SOLVED] Cinnamon menu has disappeared after locale-gen

Post by kco »

I added some locales into /var/lib/locales/supported.d and run sudo locale-gen command.
After system reboot start menu icon and all icons of running application are missing.
Everything else on the panel works fine.

I am not sure that locale-gen command is responsible for this but it is the last thing I did before the problem appeared.

locale -a

Code: Select all

C
C.UTF-8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
POSIX
Looking glass logs

Code: Select all

[menu@cinnamon.org]: malformed UTF-8 character sequence at offset 31
[menu@cinnamon.org]: Failed to evaluate 'main' function on applet: menu@cinnamon.org/22
[menu@cinnamon.org]: Applet menu@cinnamon.org: Could not create applet object.
[menu@cinnamon.org]: Error importing applet.js from menu@cinnamon.org
Reset menu applet to default has no effect.

Trying to restore system configuration inside cinnamon menu editor gives the following error:

Code: Select all

Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MainWindow.py", line 491, in on_restore_button_clicked
    self.editor.restoreToSystem()
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py", line 56, in restoreToSystem
    self.restoreTree(self.tree.get_root_directory())
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py", line 71, in restoreTree
    self.restoreTree(item)
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py", line 74, in restoreTree
    self.restoreItem(item)
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py", line 79, in restoreItem
    if not self.canRevert(item):
  File "/usr/share/cinnamon/cinnamon-menu-editor/cme/MenuEditor.py", line 160, in canRevert
    if util.getItemPath(item.get_desktop_file_id()) is not None:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd3 in position 31: invalid continuation byte
inxi -Fxz

Code: Select all

System:
  Host: kco-mint Kernel: 5.3.0-28-generic x86_64 bits: 64 compiler: gcc 
  v: 7.4.0 Desktop: Cinnamon 4.4.8 Distro: Linux Mint 19.3 Tricia 
  base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: ASUSTeK product: X705UDR v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: X705UDR v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: X705UDR.317 date: 04/17/2019 
Battery:
  ID-1: BAT0 charge: 34.7 Wh condition: 34.7/42.1 Wh (83%) 
  model: ASUSTeK ASUS Battery status: Not charging 
CPU:
  Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 8192 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 31999 
  Speed: 800 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 801 4: 800 5: 800 6: 800 7: 800 8: 800 
Graphics:
  Device-1: Intel UHD Graphics 620 vendor: ASUSTeK driver: i915 v: kernel 
  bus ID: 00:02.0 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: ASUSTeK 
  driver: N/A bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.5 driver: modesetting unloaded: fbdev,vesa 
  tty: N/A 
  OpenGL: renderer: Mesa DRI Intel UHD Graphics 620 (Kabylake GT2) 
  v: 4.5 Mesa 19.2.8 direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.3.0-28-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: kernel port: d000 bus ID: 02:00.0 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter 
  vendor: AzureWave driver: rtw_pci v: N/A port: c000 bus ID: 03:00.0 
  IF: wlp3s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 1.36 TiB used: 98.48 GiB (7.1%) 
  ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB 
  ID-2: /dev/sdb vendor: SK Hynix model: HFS256G39TND-N210A size: 238.47 GiB 
  ID-3: /dev/sdc type: USB vendor: Transcend model: TS240GESD230C 
  size: 223.57 GiB 
Partition:
  ID-1: / size: 219.06 GiB used: 98.45 GiB (44.9%) fs: ext4 dev: /dev/sdc1 
Sensors:
  System Temperatures: cpu: 52.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 249 Uptime: 5m Memory: 15.52 GiB used: 1.59 GiB (10.2%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.4.0 Shell: bash v: 4.4.20 
  inxi: 3.0.32 

This topic is probably related to mine:
viewtopic.php?t=29522
Last edited by kco on Fri Feb 14, 2020 5:59 pm, edited 1 time in total.

gittiest personITW
Level 6
Level 6
Posts: 1295
Joined: Tue May 28, 2019 4:27 pm

Re: Cinnamon menu has disappeared after locale-gen

Post by gittiest personITW »

Hi,
Welcome to the forums.

First thing - have you got Timeshift enabled?
If so, do a system restore back to before the problem happened.
Then, only add ones that you need, one or a few at a time and reboot and see which ones cause a problem.

kco
Level 1
Level 1
Posts: 3
Joined: Wed Feb 12, 2020 5:02 pm

Re: Cinnamon menu has disappeared after locale-gen

Post by kco »

Timeshift is enabled but the oldest available snapshot was made after the problem was occurred :( .

kco
Level 1
Level 1
Posts: 3
Joined: Wed Feb 12, 2020 5:02 pm

Re: Cinnamon menu has disappeared after locale-gen

Post by kco »

SOLVED

1. Disappeared menu icon
For a newly created user, the panel works fine.
When I tried to copy all the data from a primary user to the new one, the same problem occurred with the panel.
After excluding the folders one by one, the reason is finally found here: /home/<user>/.local/share/applications/wine/Programs/...
Some time ago I was installing a program under Wine and the installer could not normally display Russian characters.
I added several locales into system and launched Wine with locale cp1251 (Cyrillic character set)
So wine created a launcher (file *.desktop) with a name that is not compatible with utf-8.
Removing this file has solved the problem.


2. Disappeared icons of running applications
panel right click -> troubleshoot -> restore all settings to default

Now the panel is fully operational
Hope this information will be helpful :)

Post Reply

Return to “Cinnamon”