linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.56k stars 744 forks source link

Repeated Cinnamon crashes after suspend #10240

Open wujastyk opened 3 years ago

wujastyk commented 3 years ago
 * Cinnamon version (cinnamon --version)

System:    Kernel: 5.4.0-80-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.5 
           wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 

   - Please specify if you are using the daily builds PPA
     (https://launchpad.net/~linuxmint-daily-build-team/+archive/ubuntu/daily-builds).
 No
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
 * Graphics hardware *and* driver used
  Graphics:  Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics vendor: Dell 
           driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:0412 
           Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 20.2.6 
           compat-v: 3.0 direct render: Yes 
 * 32 or 64 bit
 64
 * Attach ~/.xsession-errors, or /var/log/syslog

[xsession-errors.zip](https://github.com/linuxmint/cinnamon/files/6880040/xsession-errors.zip)

Issue

Steps to reproduce

  1. suspend
  2. hit a key to restart
  3. cinnamon crash and a message about opening CLI session and typing cinnamon-unlock-desktop

Expected behaviour

simple resume

Other information

Configuration info, if applicable If this bug report is related to an Applet, Desklet or Extension, please paste (or use a pastebin service) the offending extension's settings, if it has any. You can obtain this by opening its configuration, clicking the 'hamburger' button in the upper-right corner of the window, and selecting "Export to a file". Please be sure to review the contents and remove any personal data it may contain.

Full trace at pastebin: https://termbin.com/0vww

icarter09 commented 3 years ago

Cinnamon 5.0.5 Mint 20.2 64bit

I'm not able to reproduce this issue. Restarting from Suspend does crash Cinnamon and resumes the session as expected.

darkshram commented 3 years ago

I had this same issue and can reproduce it easily. It happens only in just one out of seven test systems (Ghia Frontier PCGHIA-2546 (Desktop), Rizen 5 2400G, 64bits, 32 GB RAM) and only if Hybrid Sleep is enabled. If this feature is disabled, Cinnamon suspends perfectly without any issue.

Hybrid suspend is known to be very buggy and is usually disabled by default in many Linux distributions.

wujastyk commented 3 years ago

Thanks @darkshram ; I've disabled Hibernation, and we'll see how it goes now.

FWIW, I'm using an Intel NUC box:

System:    Kernel: 5.11.0-37-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.0.5 
           wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Mini-pc System: Intel Client Systems product: NUC11PAQi5 v: M21023-302 
           serial: <filter> Chassis: Intel Corporation type: 35 v: 2.0 serial: <filter> 
           Mobo: Intel model: NUC11PABi5 v: K90634-302 serial: <filter> UEFI: Intel 
           v: PATGL357.0035.2020.1113.1353 date: 11/13/2020 
CPU:       Topology: Quad Core model: 11th Gen Intel Core i5-1135G7 bits: 64 type: MT MCP 
           arch: Tiger Lake rev: 1 L2 cache: 8192 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38707 
           Speed: 1296 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 1296 2: 1368 3: 1333 
           4: 1332 5: 1402 6: 1295 7: 1300 8: 1297 
Graphics:  Device-1: Intel driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:9a49 
           Display: x11 server: X.Org 1.20.11 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz, 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.0.3 
           direct render: Yes 
darkshram commented 3 years ago

For me issue was solved by disabling 'Hybrid Sleep'. Again, 'Hybrid Sleep' is disabled in many Linux distros because is buggy an unreliable with some hardware combinations.

Captura de pantalla de 2021-10-04 20-45-05

wujastyk commented 3 years ago

That would be nice, but I don't see the same options:

image

darkshram commented 3 years ago

@wujastyk I'm not using Linuxmint, and my OS does not use SystemD. But you may try:

sudo systemctl mask hybrid-sleep.target

Also, check: https://www.tecmint.com/disable-suspend-and-hibernation-in-linux/

wujastyk commented 3 years ago

Thank you @darkshram, those are good leads. I have, though, tried both approaches but with no success.
I get Cinnamon crashes too when I use Zoom, and in other circumstances where I can't see a common thread. I get about two or three per day at the moment :-(