gnome-shell hangs with 100% CPU time
Sometimes when I do things like killing a terminal window by click the 'X', my computer freezes up. Desktop stops responding and goes black. I can still log into the computer via SSH and run CLI programs, but cannot use the desktop.
dmesg gives:
[88287.754500] rfkill: input handler enabled
[88287.754599] rfkill: input handler disabled
[88287.754893] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 24
[88288.169440] Chrome_~dThread[4450]: segfault at 0 ip 00007f4ab47494cd sp 00007f4ab2ac9b00 error 6 in libxul.so[7f4ab398f000+6111000]
[88289.804045] rfkill: input handler enabled
[88290.074990] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 85
[88290.162786] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 0
[88290.282817] snd_hda_codec_hdmi hdaudioC1D0: HDMI: invalid ELD data byte 3
top shows gnome-shell running at 100%
strace on that process tells me:
strace: Process 3177 attached with 26 threads
[pid 3420] futex(0x5614e2859c90, FUTEX_WAIT_PRIVATE, 1896, NULL <unfinished ...>
[pid 3222] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3220] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3221] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3219] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3218] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3217] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3216] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3215] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3214] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3212] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3208] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3213] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3211] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3210] futex(0x5614e235ebe8, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3209] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3207] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3206] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3204] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3205] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3203] futex(0x5614e235ebec, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 3184] restart_syscall(<... resuming interrupted restart_syscall ...> <unfinished ...>
[pid 3182] restart_syscall(<... resuming interrupted restart_syscall ...> <unfinished ...>
[pid 3181] restart_syscall(<... resuming interrupted restart_syscall ...> <unfinished ...>
[pid 3180] restart_syscall(<... resuming interrupted restart_syscall ...> <unfinished ...>
[pid 3177] sched_yield() = 0
[pid 3177] sched_yield() = 0
[pid 3177] sched_yield() = 0
...
... Repeating endlessly
...
[pid 3177] sched_yield() = 0
[pid 3177] sched_yield() = 0
[pid 3177] sched_yield() = 0
[pid 3177] sched_yield() = 0
[pid 3177] sched_yield() = 0
strace: Process 3177 detached
strace: Process 3180 detached
strace: Process 3181 detached
strace: Process 3182 detached
strace: Process 3184 detached
strace: Process 3203 detached
strace: Process 3204 detached
strace: Process 3205 detached
strace: Process 3206 detached
strace: Process 3207 detached
strace: Process 3208 detached
strace: Process 3209 detached
strace: Process 3210 detached
strace: Process 3211 detached
strace: Process 3212 detached
strace: Process 3213 detached
strace: Process 3214 detached
strace: Process 3215 detached
strace: Process 3216 detached
strace: Process 3217 detached
strace: Process 3218 detached
strace: Process 3219 detached
strace: Process 3220 detached
strace: Process 3221 detached
strace: Process 3222 detached
strace: Process 3420 detached
Interesting here is that USB keyboard and mouse completely stop working, I have to take out and plug them back into the USB port again.
If I give a 'killall -3 gnome-shell' on SSH I get the GDM login screen again but when I log in as usual, I don't get a desktop, just a black screen.
I enabled CTRL-ALT-Backspace, that does give me a working desktop again though, but kills all my running applications.
Other info:
- Linux desktop 4.15.0-23-generic #25 (closed)-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- Running Ubuntu 18.04 LTS, completely updated
- Videocard: Gforce GTX 1050
- Using Nvidia driver: 390.48
Edited by Ghost User