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.49k stars 730 forks source link

Alt-tab, coverflow 3d: system hangs #9172

Closed LinuxOnTheDesktop closed 3 years ago

LinuxOnTheDesktop commented 4 years ago
 * Cinnamon version (cinnamon --version) 4.4.8
   - Please specify if you are using the daily builds PPA: no
     (https://launchpad.net/~linuxmint-daily-build-team/+archive/ubuntu/daily-builds).
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...) Mint 19.3
 * Graphics hardware *and* driver used: Intel 3rd Gen Core processor Graphics Controller; 3.0 Mesa 19.2.8
 * 32 or 64 bit: 64
 * Attach /home/<username>/.xsession-errors, or /var/log/syslog
[xsession-errors.txt](https://github.com/linuxmint/cinnamon/files/4215077/xsession-errors.txt)

Issue

Occasionally alt-tab hangs the whole system, such that only the pointer can move; it is possible to open tty but not to do anything else. (Possibly Cinnamon would restart, had I bound that to a hotkey, which I have not). The problem occurs only when using coverflow3D - which is the alt-tab mode that I find most useful. Also, it happens on this computer (a ThinkPad X230) and not my other Mint computer (a ThinkPad X1 Carbon Sixth Generation).

Steps to reproduce

Alt-Tab, rapidly and repeatedly. You may need a graphics setup similar to mine.

Expected behaviour

No hang.

Other information

I had thought I had reported this problem before but I cannot find an existing report. I did find some similar reports: 316; 3275; 4388.

The problem has existed for approximate one year, and on different Linux kernels.

The afffected system:

Lenovo ThinkPad X230 OS: Linux Mint 19.3 Tricia x86_64 Host: 2325L19 ThinkPad X230 Kernel: 5.3.0-28-generic Uptime: 8 mins Packages: 3396 (dpkg), 4 (flatpak), 7 (snap) Shell: bash 4.4.20 Resolution: 1366x768 @ 60.02Hz DE: Cinnamon 4.4.8 WM: Mutter (Muffin) WM Theme: Mint-Y-Dark (N_cinn) Theme: Mint-Y-Dark [GTK2/3] Icons: Paper [GTK2/3] Terminal: gnome-terminal CPU: Intel i5-3320M (4) @ 3.300GHz GPU: Intel 3rd Gen Core processor Graphics Controller Memory: 1752MiB / 7779MiB Disk (/dev/sda2): 18G / 52G (37%)

LinuxOnTheDesktop commented 4 years ago

I just had this again. I was watching a video in Chrome. The video continued to play, but in alt-tab mode, and I could not leave that mode. I took a screenshot but I could not save the screenshot anywhere. I used a tty to kill Chrome but I remained stuck in alt-tab mode. I had to reboot.

Could we have the 'bug' label on this, please? It is a pretty gross bug and anyone who has it on their system is going to find it pretty depressing.

LinuxOnTheDesktop commented 4 years ago

This just happened again, on Mint 20. It occured when I alt-tabbed when uninstalling a program via MintMenu.

LinuxOnTheDesktop commented 4 years ago

It happened again. I had to reboot. I have found a thread on the forum that includes the following descriptions of the problem (or of its impact). Each it from a different poster.

The thread dates from 2011.

mtwebster commented 3 years ago

When this happens, does .xsession-errors show anything at all? You can check .xsession-errors.old to see the previous session's log (since you have to log out/in to escape the freeze).

I have a few ideas on this but there's not enough data to act on right now.

LinuxOnTheDesktop commented 3 years ago

Thank you. I have enabled cover-flow-3d on my laptops and I am trying to reproduce the problem. If I manage to do that, I will post xsession-errors.old. If, after a week, I do not manage to reproduce it - for something that changed in the meantime might have fixed the problem - then I will (happily!) close this issue.

LinuxOnTheDesktop commented 3 years ago

I reproduced the problem and restarted via tty. I attach a photograph of the frozen desktop and also .xsession-errors.old.

IMG_20210219_150757 xsession-errors.txt

mtwebster commented 3 years ago

Does this seem to happen around when a window may be closing or a new one opening? Or can you simply, at any idle moment, alt-tab and have this occur?

mtwebster commented 3 years ago

Can you try this?

appSwitcher3D.zip

Unzip the file then:

# back the original up
sudo cp /usr/share/cinnamon/js/ui/appSwitcher/appSwitcher3D.js /usr/share/cinnamon/js/ui/appSwitcher/appSwitcher3D.js.bak
# copy the new one into the system folder
cp appSwitcher3D.js /usr/share/cinnamon/js/ui/appSwitcher

and restart cinnamon.

I can only theorize why it's occurring, but the fix is simple enough.

Thanks

LinuxOnTheDesktop commented 3 years ago

I have tested this a few times on one computer and there was no hang. I will test it later today on another computer. It is looking as though you did a good job (but I will report back about the other computer).

LinuxOnTheDesktop commented 3 years ago

To quote myself:

I will test it later today on another computer.

It works on the other computer. This bug seems fixed.