[Solved] Cinnamon crashes often

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
a-bentofreire
Level 2
Level 2
Posts: 82
Joined: Sat Jan 14, 2017 4:02 am

[Solved] Cinnamon crashes often

Post by a-bentofreire »

Hi
I have been using Linux Mint Cinnamon for several years, without any issues regarding the DE, until some months ago, around the upgrade from Mint 21.0 to Mint 21.1, although I can't pinpoint the exact time, could be a bit before or after the update that the following behaviour occurs several times a day:

1. The computer becomes very slow.
2. gnome-system-monitor shows that cinnamon process is taking more than 2GB.
3. After a while, the window borders disapeared.

If I restart cinnamon, the borders reappear.

A. I tried to disable fractional scalling, and still the same behavior.

B. .xsession-errors has countless times the 2 errors:

Code: Select all

(cinnamon:2335): Gjs-CRITICAL **: 22:46:46.111: JS ERROR: Error: second argument to Lang.bind() must be a function, not undefined
bind@resource:///org/gnome/gjs/modules/script/lang.js:59:15
_sendNotification@/usr/share/cinnamon/js/ui/placesManager.js:169:61
_removeFinish@/usr/share/cinnamon/js/ui/placesManager.js:293:14

Code: Select all

X protocol error:
<class 'Xlib.error.BadWindow'>: code = 3, resource_id = <Resource 0x0320000c>, sequence_number = 58876, major_opcode = 33, minor_opcode = 0
This is my inxi -Fxz:

Code: Select all

System:
  Kernel: 5.15.0-69-generic x86_64 bits: 64 compiler: gcc v: 11.3.0
    Desktop: Cinnamon 5.6.8 Distro: Linux Mint 21.1 Vera
    base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Acer product: Swift SF314-51 v: V1.10
    serial: <superuser required>
  Mobo: Acer model: M3_SK v: V1.10 serial: <superuser required>
    UEFI: Insyde v: 1.10 date: 11/06/2017
Battery:
  ID-1: BAT0 charge: 14.4 Wh (40.3%) condition: 35.7/48.9 Wh (73.0%)
    volts: 14.5 min: 15.2 model: AC14B8K status: Discharging
CPU:
  Info: dual core model: Intel Core i5-6200U bits: 64 type: MT MCP
    arch: Skylake rev: 3 cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 660 high: 798 min/max: 400/2800 cores: 1: 500 2: 596
    3: 749 4: 798 bogomips: 19200
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Acer Incorporated ALI
    driver: i915 v: kernel bus-ID: 00:02.0
  Device-2: Chicony HD WebCam type: USB driver: uvcvideo bus-ID: 1-7:4
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel HD Graphics 520 (SKL GT2) v: 4.6 Mesa 22.2.5
    direct render: Yes
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
  Sound Server-1: ALSA v: k5.15.0-69-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
    vendor: Foxconn driver: ath10k_pci v: kernel bus-ID: 02:00.0
  IF: wlp2s0 state: up mac: <filter>
  IF-ID-1: br-7c8283e4149d state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: docker0 state: down mac: <filter>
  IF-ID-3: usb0 state: unknown speed: -1 duplex: half mac: <filter>
  IF-ID-4: veth568c650 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-5: veth87fb9c1 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-6: vethcddbfc5 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
Bluetooth:
  Device-1: Foxconn / Hon Hai type: USB driver: btusb v: 0.8 bus-ID: 1-5:2
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: <filter>
    bt-v: 2.1 lmp-v: 4.2
Drives:
  Local Storage: total: 238.47 GiB used: 126.88 GiB (53.2%)
  ID-1: /dev/sda vendor: SK Hynix model: HFS256G39TND-N210A
    size: 238.47 GiB
Partition:
  ID-1: / size: 233.18 GiB used: 126.87 GiB (54.4%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 8.6 MiB (1.7%) fs: vfat
    dev: /dev/sda1
Swap:
  ID-1: swap-1 type: file size: 2 GiB used: 147.5 MiB (7.2%) file: /swapfile
Sensors:
  System Temperatures: cpu: 49.0 C pch: 46.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 278 Uptime: 56m Memory: 7.63 GiB used: 3.76 GiB (49.3%)
  Init: systemd runlevel: 5 Compilers: gcc: 11.3.0 Packages: 2647 Shell: Bash
  v: 5.1.16 inxi: 3.3.13
Last edited by LockBot on Sun Oct 01, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31392
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon crashes often

Post by SMG »

a-bentofreire wrote: Thu Mar 30, 2023 10:08 pmI have been using Linux Mint Cinnamon for several years, without any issues regarding the DE, until some months ago, around the upgrade from Mint 21.0 to Mint 21.1, although I can't pinpoint the exact time, could be a bit before or after the update that the following behaviour occurs several times a day:
Do you know if you have a Timeshift snapshot of when the system was working to which you can revert?
a-bentofreire wrote: Thu Mar 30, 2023 10:08 pm1. The computer becomes very slow.
2. gnome-system-monitor shows that cinnamon process is taking more than 2GB.
3. After a while, the window borders disapeared.

If I restart cinnamon, the borders reappear.
There is a setting (System Settings > General) where you can set a specific memory amount for Cinnamon and when it goes beyond that it will restart automatically.

Did you change to a different theme when LM21.1 came out?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
a-bentofreire
Level 2
Level 2
Posts: 82
Joined: Sat Jan 14, 2017 4:02 am

Re: Cinnamon crashes often

Post by a-bentofreire »

SMG wrote: Fri Mar 31, 2023 10:28 pmDo you know if you have a Timeshift snapshot of when the system was working to which you can revert?
My timeshift backup is too recent, and already has this issue.
SMG wrote: Fri Mar 31, 2023 10:28 pmThere is a setting (System Settings > General) where you can set a specific memory amount for Cinnamon and when it goes beyond that it will restart automatically.
I can give it a try.
SMG wrote: Fri Mar 31, 2023 10:28 pmDid you change to a different theme when LM21.1 came out?
I use the theme that is attached on image on this post, which until a while ago, never gave me problems.
Mainlly, is kora icons that is out of the box.
Attachments
Screenshot from 2023-04-03 10-29-15.png
Screenshot from 2023-04-03 10-29-15.png (23.8 KiB) Viewed 1394 times
Last edited by SMG on Mon Apr 03, 2023 8:40 pm, edited 1 time in total.
Reason: Fixed quote tags so responses are outside of the quotes and can easily be seen.
User avatar
SMG
Level 25
Level 25
Posts: 31392
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon crashes often

Post by SMG »

I'm not that familiar with all the new theming, but if they are ones which come with Linux Mint then I would not suspect them to be a problem.

Often crash issues like this are either related to spices, applets, or other software having issues. I am not that great reading the .xsession-errors file, but that is usually where those types of issue will log if they are having problems.

The X protocol error you mentioned is likely why Cinnamon crashes because X Server runs the graphics and if X Server fails then Cinnamon fails. However, I can not tell from what you posted what might have caused the error. Is there more information before or after that error that you can post which might give an idea of what is causing the issue?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
a-bentofreire
Level 2
Level 2
Posts: 82
Joined: Sat Jan 14, 2017 4:02 am

Re: Cinnamon crashes often

Post by a-bentofreire »

SMG wrote: Tue Apr 04, 2023 3:00 pm I'm not that familiar with all the new theming, but if they are ones which come with Linux Mint then I would not suspect them to be a problem.

Often crash issues like this are either related to spices, applets, or other software having issues. I am not that great reading the .xsession-errors file, but that is usually where those types of issue will log if they are having problems.

The X protocol error you mentioned is likely why Cinnamon crashes because X Server runs the graphics and if X Server fails then Cinnamon fails. However, I can not tell from what you posted what might have caused the error. Is there more information before or after that error that you can post which might give an idea of what is causing the issue?
Hi.
I have been trying to understand the issue, but it's not easy, since the .xsession-errors can be bigger than 15MB per day, mostly are the 2 errors that I reported previously. There is no extra information before or after each of these 2 errors, just the same 2 errors countless times.

I removed those 2 errors from a copy of .xsession-errors and there is another error that also is listed many times:

Code: Select all

QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 136, 138, 133, 178'
By removing these 3 errors, an .xsession-errors of 12MB becomes 60k.
I can't see any other error in .xsession-errors that could cause this issue
User avatar
SMG
Level 25
Level 25
Posts: 31392
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon crashes often

Post by SMG »

a-bentofreire wrote: Mon Apr 03, 2023 12:34 pm
SMG wrote: Fri Mar 31, 2023 10:28 pmDid you change to a different theme when LM21.1 came out?
I use the theme that is attached on image on this post, which until a while ago, never gave me problems.
Mainlly, is kora icons that is out of the box.
Kora icons out of what box? The information I found for kora seems to indicate these would be installed separately? Maybe something else was installed with the icons and that something else is causing an issue?

You originally posted the following errors:

Code: Select all

(cinnamon:2335): Gjs-CRITICAL **: 22:46:46.111: JS ERROR: Error: second argument to Lang.bind() must be a function, not undefined
bind@resource:///org/gnome/gjs/modules/script/lang.js:59:15
_sendNotification@/usr/share/cinnamon/js/ui/placesManager.js:169:61
_removeFinish@/usr/share/cinnamon/js/ui/placesManager.js:293:14
When I checked /usr/share/cinnamon/js/ui/placesManager.js, this is what it has at the top:

Code: Select all

/**
 * Represents a place object, which is most normally a bookmark entry,
 * a mount/volume, or a special place like the Home Folder, Computer, and Network.
 *
 * @name: String title
 * @iconFactory: A JavaScript callback which will create an icon texture given a size parameter
 * @launch: A JavaScript callback to launch the entry
 */
This those messages would seem to relate to icons of some type.
a-bentofreire wrote: Wed Apr 05, 2023 10:51 amI have been trying to understand the issue, but it's not easy, since the .xsession-errors can be bigger than 15MB per day, mostly are the 2 errors that I reported previously. There is no extra information before or after each of these 2 errors, just the same 2 errors countless times.
That seems unusual that only those lines would show with there nothing before them.
a-bentofreire wrote: Wed Apr 05, 2023 10:51 amI removed those 2 errors from a copy of .xsession-errors and there is another error that also is listed many times:

Code: Select all

QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0, 0, 0, 255'
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 136, 138, 133, 178'
By removing these 3 errors, an .xsession-errors of 12MB becomes 60k.
I can't see any other error in .xsession-errors that could cause this issue
What other errors are there? 60kb for one day is rather large file.

Also, I'm not understanding the timing of this issue. You indicate you don't have a Timeshift snapshot that happened before this problem, but the problem only came up around when you switched to LM21.1. Did you not take a snapshot before upgrading to LM21.1?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
SMG
Level 25
Level 25
Posts: 31392
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon crashes often

Post by SMG »

a-bentofreire wrote: Thu Mar 30, 2023 10:08 pm

Code: Select all

X protocol error:
<class 'Xlib.error.BadWindow'>: code = 3, resource_id = <Resource 0x0320000c>, sequence_number = 58876, major_opcode = 33, minor_opcode = 0
I did a search on Xlib.error.BadWindow and found this Xlib.error.BadWindow #438 where the poster indicates "If I start autokey-gtk from the command line I get a bunch of errors similar to this one:" and they list an error that starts similar to your, but is different after the resource_id= part.

However, maybe your error relates to something you might be opening or running?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
a-bentofreire
Level 2
Level 2
Posts: 82
Joined: Sat Jan 14, 2017 4:02 am

Re: Cinnamon crashes often

Post by a-bentofreire »

SMG wrote: Wed Apr 05, 2023 10:56 pm
a-bentofreire wrote: Thu Mar 30, 2023 10:08 pm

Code: Select all

X protocol error:
<class 'Xlib.error.BadWindow'>: code = 3, resource_id = <Resource 0x0320000c>, sequence_number = 58876, major_opcode = 33, minor_opcode = 0
I did a search on Xlib.error.BadWindow and found this Xlib.error.BadWindow #438 where the poster indicates "If I start autokey-gtk from the command line I get a bunch of errors similar to this one:" and they list an error that starts similar to your, but is different after the resource_id= part.

However, maybe your error relates to something you might be opening or running?
Hi.

1. Thank you for taking your time to address this issue.

2. I have been using Linux Mint for almost a decade without any problems including mint updates, for context, I used UNIX/AIX/minix/Linux at the beginning of the 90's, but due work requirements I used windows for decades, I only return to Linux when I found a DE that fit my requirements and Mint Cinnamon was and still is the only DE that I use, and I ditched windows years ago.

3. Due hard disk restrictions, I only keep one backup on timeshift, and when I upgraded to Lint Mint 21.1, at first glance it seemed to working well, I had no reasons to doubt it, since all the previous Mint version upgrades, all worked well. Therefore, the timeshift backup that I have is already after 21.1.

4. I have been using gtk-autokey as long as Linux Mint, it was one of the first things that I installed, and never gave me problems before, and I don't recall, although I can't confirm, that .xsession-errors was such a huge file.

5. I have been using Simon Willes world calendar applet instead of the standard calendar applet for years, due its support for multiple timezones.
And I never had problems with it.

6. I have been using kora icons for more than 1 year, maybe, 2 years, long before I updated to Mint 21.1, and previously never gave me any problems.

7. Most of the other errors on .xsession-errors relates to vlc.

8. In conclusion, Mint, and its updates always were very smooth, and the system always has been stable, except for occasional Nemo bugs, and those 3rd party (gtk-autokey, world calendar, and kora) have been working well for a very long time.
Only around the time I upgraded to Mint 21.1, although, I can't confirm it was due its update, that I started to have this problem of cinnamon suddenly become incredibly slow, eating more than 2GB of memory, and then window borders disappear.
User avatar
SMG
Level 25
Level 25
Posts: 31392
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Cinnamon crashes often

Post by SMG »

a-bentofreire wrote: Mon Apr 10, 2023 12:11 pm3. Due hard disk restrictions, I only keep one backup on timeshift, and when I upgraded to Lint Mint 21.1, at first glance it seemed to working well, I had no reasons to doubt it, since all the previous Mint version upgrades, all worked well. Therefore, the timeshift backup that I have is already after 21.1.
For future reference, Timeshift can be run manually and saved to an external drive. Here is the method I use How to Use Timeshift to Backup and Restore Linux Mint 19 Systems from USB Drive. (It works the same for LM20 and LM21.)
a-bentofreire wrote: Mon Apr 10, 2023 12:11 pm8. In conclusion, Mint, and its updates always were very smooth, and the system always has been stable, except for occasional Nemo bugs, and those 3rd party (gtk-autokey, world calendar, and kora) have been working well for a very long time.
Only around the time I upgraded to Mint 21.1, although, I can't confirm it was due its update, that I started to have this problem of cinnamon suddenly become incredibly slow, eating more than 2GB of memory, and then window borders disappear.
I am not aware that everyone running LM21.1's Cinnamon is having issues. That means troubleshooting would look at what might be different in your install that could be a factor. I only have the data you have provided and something which is providing errors is definitely suspect in my eyes, regardless of how many years you have been using it.

Sorry, but I am out of ideas. :(
Image
A woman typing on a laptop with LM20.3 Cinnamon.
a-bentofreire
Level 2
Level 2
Posts: 82
Joined: Sat Jan 14, 2017 4:02 am

Re: Cinnamon crashes often

Post by a-bentofreire »

SMG wrote: Mon Apr 10, 2023 6:08 pm
a-bentofreire wrote: Mon Apr 10, 2023 12:11 pm3. Due hard disk restrictions, I only keep one backup on timeshift, and when I upgraded to Lint Mint 21.1, at first glance it seemed to working well, I had no reasons to doubt it, since all the previous Mint version upgrades, all worked well. Therefore, the timeshift backup that I have is already after 21.1.
For future reference, Timeshift can be run manually and saved to an external drive. Here is the method I use How to Use Timeshift to Backup and Restore Linux Mint 19 Systems from USB Drive. (It works the same for LM20 and LM21.)
a-bentofreire wrote: Mon Apr 10, 2023 12:11 pm8. In conclusion, Mint, and its updates always were very smooth, and the system always has been stable, except for occasional Nemo bugs, and those 3rd party (gtk-autokey, world calendar, and kora) have been working well for a very long time.
Only around the time I upgraded to Mint 21.1, although, I can't confirm it was due its update, that I started to have this problem of cinnamon suddenly become incredibly slow, eating more than 2GB of memory, and then window borders disappear.
I am not aware that everyone running LM21.1's Cinnamon is having issues. That means troubleshooting would look at what might be different in your install that could be a factor. I only have the data you have provided and something which is providing errors is definitely suspect in my eyes, regardless of how many years you have been using it.

Sorry, but I am out of ideas. :(
Thank you for trying.
I will keep an eye on cinnamon and start to become sluggish and make the window borders disappear, I will check all the logs at that point.
Regarding timeshift, yes, I was too overconfident due never had problems updates.
Although, at the moment, the backup to external drive wouldn't help since external drive that I'm traveling with crashed last week, probably due a land border x-ray scan.
I will keep your hint for when I buy a new external drive
a-bentofreire
Level 2
Level 2
Posts: 82
Joined: Sat Jan 14, 2017 4:02 am

Re: Cinnamon crashes often

Post by a-bentofreire »

Sorry about a delayed answer.
I was able to solve the problem with these 2 actions, it took me quite a while to make 100% sure that it solved the problem:

1. Start autokey on startup via script instead of starting directly.

Code: Select all

#!/usr/bin/env bash
autokey-gtk >/dev/null 2>&1 &`
2. There was a bug on placesManager.js in cinnamon.
I reported the problem and it was fixed: https://github.com/linuxmint/cinnamon/issues/11623
I waited a while for the fix to be propagated to the users, since it took longer, I did the manual tweak by removing the "()" that cause the problem on cinnamon installation.


SMG wrote: Mon Apr 10, 2023 6:08 pm
a-bentofreire wrote: Mon Apr 10, 2023 12:11 pm3. Due hard disk restrictions, I only keep one backup on timeshift, and when I upgraded to Lint Mint 21.1, at first glance it seemed to working well, I had no reasons to doubt it, since all the previous Mint version upgrades, all worked well. Therefore, the timeshift backup that I have is already after 21.1.
For future reference, Timeshift can be run manually and saved to an external drive. Here is the method I use How to Use Timeshift to Backup and Restore Linux Mint 19 Systems from USB Drive. (It works the same for LM20 and LM21.)
a-bentofreire wrote: Mon Apr 10, 2023 12:11 pm8. In conclusion, Mint, and its updates always were very smooth, and the system always has been stable, except for occasional Nemo bugs, and those 3rd party (gtk-autokey, world calendar, and kora) have been working well for a very long time.
Only around the time I upgraded to Mint 21.1, although, I can't confirm it was due its update, that I started to have this problem of cinnamon suddenly become incredibly slow, eating more than 2GB of memory, and then window borders disappear.
I am not aware that everyone running LM21.1's Cinnamon is having issues. That means troubleshooting would look at what might be different in your install that could be a factor. I only have the data you have provided and something which is providing errors is definitely suspect in my eyes, regardless of how many years you have been using it.

Sorry, but I am out of ideas. :(
Locked

Return to “Cinnamon”