Cinnamon crashing - GPU Hang

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
Takehiko
Level 1
Level 1
Posts: 18
Joined: Sat Nov 10, 2018 3:17 pm

Cinnamon crashing - GPU Hang

Post by Takehiko »

I just got this brand new Mint Box Mini 2. It came with Mint 19 on it and I was expecting everything to just work. But Cinnamon keeps randomly crashing on me. When it happens I see something that looks like screen tearing, then is freezes for a 15-30 seconds and I get a popup saying that it's now running in Fallback Mode.

Nothing listed in System Reports but I see this in dmesg output:

Code: Select all

[  490.811354] [drm] GPU HANG: ecode 9:0:0x85dffffb, in cinnamon [1614], reason: Hang on rcs0, action: reset
[  490.811374] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  498.802762] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  506.802895] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  514.802651] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  522.802393] i915 0000:00:02.0: Resetting rcs0 after gpu hang
I haven't found any single thing that triggers it, but it does seem more prevalent when there's a lot of windows open.

I would really appreciate anyone's help on this. Given that the log message is talking about the GPU I want to know if this is hardware issue so I can get that resolved by the manufacturer while it's still under warranty.

Code: Select all

System:    Host: tokyo Kernel: 4.15.0-38-generic x86_64 bits: 64 gcc: 7.3.0 Console: tty 0
           Distro: Linux Mint 19 Tara
Machine:   Device: desktop Mobo: Compulab model: fitlet2 v: 1.1 serial: <filter>
           UEFI: American Megatrends v: FLT2.MBM2.0.40.01.00 date: 07/05/2018
CPU:       Quad core Intel Celeron J3455 (-MCP-) arch: N/A cache: 1024 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11980
           clock speeds: max: 2300 MHz 1: 798 MHz 2: 798 MHz 3: 868 MHz 4: 853 MHz
Graphics:  Card: Intel Device 5a85 bus-ID: 00:02.0
           Display Server: X.org 1.19.6 drivers: modesetting (unloaded: fbdev,vesa)
           tty size: 134x67 Advanced Data: N/A for root out of X
Audio:     Card Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
           driver: snd_hda_intel bus-ID: 00:0e.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-38-generic
Network:   Card-1: Intel Wireless 8260 driver: iwlwifi bus-ID: 01:00.0
           IF: wlp1s0 state: down mac: <filter>
           Card-2: Intel I211 Gigabit Network Connection driver: igb v: 5.4.0-k port: e000 bus-ID: 02:00.0
           IF: enp2s0 state: down mac: <filter>
           Card-3: Intel I211 Gigabit Network Connection driver: igb v: 5.4.0-k port: d000 bus-ID: 03:00.0
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:    HDD Total Size: 2063.7GB (36.5% used)
           ID-1: /dev/sda model: M2SCF size: 63.4GB temp: 40C
           ID-2: USB /dev/sdb model: Expansion size: 2000.4GB temp: 0C
Partition: ID-1: / size: 58G used: 9.1G (17%) fs: ext4 dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 45.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 189 Uptime: 54 min Memory: 264.2/3768.4MB Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Takehiko
Level 1
Level 1
Posts: 18
Joined: Sat Nov 10, 2018 3:17 pm

Re: Cinnamon crashing - GPU Hang

Post by Takehiko »

Not sure if this is related but I also found this in the .xsession-errors

Code: Select all

i965: Failed to submit batchbuffer: Input/output error
Gtk-Message: 13:38:22.604: GtkDialog mapped without a transient parent. This is discouraged.
Unable to open desktop file /usr/share/applications/caja-browser.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/mate-terminal.desktop for panel launcher: No such file or directory

(nm-applet:1636): Gdk-CRITICAL **: 13:38:23.066: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_co
unt > 0' failed
redlined

Re: Cinnamon crashing - GPU Hang

Post by redlined »

hi Takehiko!

I'm new to linux and not sure how to help but did want to mention something I find curious about your outputs shared. I see no "Desktop" listed in your inxi results rather 'Console: tty 0' whereas my results don't list console, rather 'Desktop: MATE 1.20.1' right in front of Distro: Linux Mint 19 Tara. This tells me there is no DE loaded. :|

also, your last output, errors, it looks like your system is looking for MATE and caja-browser (MATE desktop file manager). I would expect to see Cinnamon warnings somewhere if the device has Cinnamon DE installed :?:

please continue to monitor this thread for Linux knowledgable folks to help troubleshoot this as I do not know how to easily check to see if Cinnamon DE is indeed installed, much less how to go about fixing things!

lastly, I had never heard of the fitlet line of products, and at first glance this looks like exactly what I want for a home network security project I have in mind, so Thank You for posting about this!
Hoser Rob
Level 20
Level 20
Posts: 11806
Joined: Sat Dec 15, 2012 8:57 am

Re: Cinnamon crashing - GPU Hang

Post by Hoser Rob »

If you bought a new computer with Mint 19 preinstalled I think the mfr should have some help available.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
Takehiko
Level 1
Level 1
Posts: 18
Joined: Sat Nov 10, 2018 3:17 pm

Re: Cinnamon crashing - GPU Hang

Post by Takehiko »

redlined - I am definitely using Cinnamon. MATE is not installed.

Hoser Rob - True, I will check in with them too. But I would still appreciate the insight of anyone here as well.
Herbivore
Level 2
Level 2
Posts: 66
Joined: Mon Jun 11, 2007 6:59 pm

Re: Cinnamon crashing - GPU Hang

Post by Herbivore »

Hi. My nearly exact experience also, often daily: "Resetting rcs0 after gpu hang". Can anyone point to a fix for this many months, long-lived bug?

Bug report at https://bugs.launchpad.net/ubuntu/+sour ... ug/1777707 where the OP's description closely matches my experience:
After using LibreOffice Impress (6.0.3-0ubuntu1) for a while, X.org freezes for several seconds; the mouse pointer is still movable, but neither LibreOffice nor KDE/Plasma reacts to it anymore. Then X.org crashes and brings me back to the login screen.
Difference is the crash occurs when using any Libreoffice application, Writer, Calc, Draw. I don't use Impress.

Libreoffice About:

Code: Select all

Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial4
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default
dmesg:

Code: Select all

[140297.738953] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[140308.778950] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[140318.762911] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[140326.762911] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[140334.762879] i915 0000:00:02.0: Resetting rcs0 after gpu hang
inxi -F:

Code: Select all

System:    Host: hp-firefly-lap Kernel: 4.15.0-38-generic x86_64 (64 bit) Desktop: Cinnamon 3.6.7
           Distro: Linux Mint 18.3 Sylvia
Machine:   System: HP product: HP Laptop 15-bs0xx v: Type1ProductConfigId
           Mobo: HP model: 8329 v: 23.47 Bios: Insyde v: F.33 date: 12/08/2017
CPU:       Dual core Intel Core i3-6006U (-HT-MCP-) cache: 3072 KB 
           clock speeds: max: 2000 MHz 1: 500 MHz 2: 500 MHz 3: 500 MHz 4: 500 MHz
Graphics:  Card-1: Intel Sky Lake Integrated Graphics
           Card-2: Advanced Micro Devices [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330]
           Display Server: X.Org 1.18.4 drivers: ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1920x1080@60.01hz
           GLX Renderer: Mesa DRI Intel HD Graphics 520 (Skylake GT2) GLX Version: 3.0 Mesa 17.2.8
Audio:     Card Intel Sunrise Point-LP HD Audio driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.15.0-38-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169
           IF: eno1 state: up speed: 100 Mbps duplex: full mac: 80:ce:62:83:85:cc
           Card-2: Realtek Device d723
           IF: N/A state: N/A speed: N/A duplex: N/A mac: N/A
Drives:    HDD Total Size: 3000.6GB (60.6% used) ID-1: USB /dev/sda model: Expansion size: 2000.4GB
           ID-2: /dev/sdb model: ST1000LM035 size: 1000.2GB
Partition: ID-1: / size: 99G used: 12G (13%) fs: ext4 dev: /dev/sdb3
           ID-2: /home size: 99G used: 20G (21%) fs: ext4 dev: /dev/sdb4
           ID-3: swap-1 size: 8.59GB used: 0.00GB (0%) fs: swap dev: /dev/dm-0
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 35.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 237 Uptime: 3 days Memory: 2051.5/7894.3MB Client: Shell (bash) inxi: 2.2.35
lspci:

Code: Select all

lspci -knn | grep VGA -A3
00:02.0 VGA compatible controller [0300]: Intel Corporation Sky Lake Integrated Graphics [8086:1916] (rev 07)
	Subsystem: Hewlett-Packard Company Skylake Integrated Graphics [103c:8329]
	Kernel driver in use: i915
	Kernel modules: i915
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Cinnamon crashing - GPU Hang

Post by thx-1138 »

Herbivore wrote: Tue Nov 13, 2018 5:32 am Hi. My nearly exact experience also, often daily: "Resetting rcs0 after gpu hang".
Can anyone point to a fix for this many months, long-lived bug?
...................................
...your hardware setup is completely different with the OP's (he / she didn't even mentioned Libreoffice...) -
so i would suggest a separate thread to get this resolved.
In any case, from a quick'n'dirty look in your report, i'd start by updating Mesa first,
and if such still doesn't do the trick, by updating Libreoffice.
Herbivore
Level 2
Level 2
Posts: 66
Joined: Mon Jun 11, 2007 6:59 pm

Re: Cinnamon crashing - GPU Hang

Post by Herbivore »

Thank you thx-1138 for taking the time to reply. Sorry to have been inexact. Hardware is indeed very different.

If I post a separate thread,
1) May I copy my post (modifying the first line to "I'm getting a 'Resetting rcs0 after gpu hang'. Can anyone point to a fix for this many months, long-lived bug?"
2) Where should the thread be posted: Main Edition Support Desktops & Window Managers Cinnamon or a different one?
3) Is there any other information which should be included?

Thanks again.
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Cinnamon crashing - GPU Hang

Post by thx-1138 »

...i would assume under 'Software' if it's a Libreoffice issue?
Did you updated Mesa from Update Manager? Current version is 18.0.5 for 18.x / xenial (and you have 17.2.8 above).
Herbivore
Level 2
Level 2
Posts: 66
Joined: Mon Jun 11, 2007 6:59 pm

Re: Cinnamon crashing - GPU Hang

Post by Herbivore »

thx-1138 , how did you get back to the 21st century, didn't like it much in the 25th I'm sure!
OK, you wrote, "Did you updated Mesa from Update Manager? Current version is 18.0.5." So yes, that is now done. Had to figure out that Synaptic has different icon for upgradeable packages, and then how to force it, etc. So now inxi -F reports 18.05. I'll see over the coming days if this solves the problem. If not, Libreoffice is already the most recent, but I could downgrade it a bit from the 1:5.1.6~rc2 build to 1:5.1.2 xenial. If it gets fixed, I'll edit with a "solved".
User avatar
thx-1138
Level 8
Level 8
Posts: 2092
Joined: Fri Mar 10, 2017 12:15 pm
Location: Athens, Greece

Re: Cinnamon crashing - GPU Hang

Post by thx-1138 »

If you still get the same issue even after Mesa has been updated - just ask, and we'll try to figure it out step by step...
Takehiko
Level 1
Level 1
Posts: 18
Joined: Sat Nov 10, 2018 3:17 pm

Re: Cinnamon crashing - GPU Hang

Post by Takehiko »

I updated the BIOS on my system and then did a completely clean install of 19 Mate this time, instead of Cinnamon. Within about 10 minutes of logging in I get the same crash.

Here's the dmesg output this time:

Code: Select all

[  197.938340] ttyS7 - failed to request DMA
[  217.835445] [drm] GPU HANG: ecode 9:0:0x85dffffb, in Xorg [871], reason: Hang on rcs0, action: reset
[  217.835473] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  225.819565] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  233.820177] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  241.820346] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  249.824665] i915 0000:00:02.0: Resetting rcs0 after gpu hang
[  250.449121] show_signal_msg: 12 callbacks suppressed
[  250.449126] Chrome_~dThread[2353]: segfault at 0 ip 00007f62e344efdd sp 00007f62e18a9b00 error 6 in libxul.so[7f62e276f000+5f9a000]
And here's the tail of the .xsession-errors

Code: Select all

dbus-update-activation-environment: setting _=/usr/bin/dbus-update-activation-environment
mate-session[3115]: WARNING: Unable to find provider '' of required component 'dock'
Window manager warning: Log level 16: XPresent is not compatible with your current system configuration.
** (mate-settings-daemon:3523): WARNING **: 20:48:24.441: Disable DEBUG
(nm-applet:3564): Gtk-WARNING **: 20:48:24.538: Can't set a parent on widget which has a parent
(nm-applet:3564): Gdk-CRITICAL **: 20:48:24.797: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
(nm-applet:3564): Gtk-CRITICAL **: 20:48:25.662: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
(nm-applet:3564): Gtk-CRITICAL **: 20:48:25.662: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
(nm-applet:3564): Gtk-WARNING **: 20:48:25.668: Can't set a parent on widget which has a parent
** (mate-settings-daemon:3523): CRITICAL **: 20:48:31.893: setup_background: assertion 'p->bg == NULL' failed
(nm-applet:3564): Gtk-CRITICAL **: 20:49:28.838: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
(nm-applet:3564): Gtk-CRITICAL **: 20:49:28.838: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
(nm-applet:3564): Gtk-WARNING **: 20:49:28.846: Can't set a parent on widget which has a parent
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
###!!! [Parent][DispatchAsyncMessage] Error: PClientSourceOp::Msg___delete__ Route error: message sent to unknown actor ID
(/usr/lib/firefox/firefox:4126): dconf-WARNING **: 20:50:21.697: Unable to open /var/lib/flatpak/exports/share/dconf/profile/user: Permission denied
(nm-applet:3564): Gtk-CRITICAL **: 20:51:37.048: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
(nm-applet:3564): Gtk-CRITICAL **: 20:51:37.048: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
(nm-applet:3564): Gtk-WARNING **: 20:51:37.057: Can't set a parent on widget which has a parent
Does that give any new leads or ideas?
redlined

Re: Cinnamon crashing - GPU Hang

Post by redlined »

hi again Takehiko,

I searched for other possible leads on this and wish I was more experienced with Linux and able to offer actual help. One issue I read about in the fit-pc forum may have lent a clue on gpu hang was heat during "graphics intensive applications" (OS Crashes, freezes, unexpected reboot,etc) as quick as 10-15 minutes of what I'd consider normal use (watching youtube videos? ugh)

One user with issue mentioned a ram upgrade may have been problematic, even though memtest runs were fine, but it sounded like dev's got the word and tested it out thoroughly finding no issue and the advice was to RMA device back to them for a replacement. Certainly not the best option (IMO) but it may be something wrong with hardware.

I'm ashamed to share this link as it is from 2012, is on their IntensePC line and, well, may just be a waste of time altogether- I'll let you be the judge of that. http://www.fit-pc.com/forum/viewtopic.p ... ang#p11901

I'm still holding hope this thread will catch attention of the Linux experienced in this fine forum and you can get it sorted as fixed or broke and need replacement. I also think it may be worth your while to scour their forum for possible tips, if not post there for assistance as they seem pretty responsive.
http://www.fit-pc.com/forum/index.php

I also ask that you do continue to monitor this thread for other responses, as well if you do find a solution to share it here so others with similar issue may find help. Thanks~
Takehiko
Level 1
Level 1
Posts: 18
Joined: Sat Nov 10, 2018 3:17 pm

Re: Cinnamon crashing - GPU Hang

Post by Takehiko »

Hey everyone, just wanted to give an updated. I ended up filing a bug with the Open Desktop project since they had a number of other bugs with similar errors. Here's a link to mine: https://bugs.freedesktop.org/show_bug.cgi?id=108736

But the issue was too annoying to deal with while waiting for them, so I ended up RMA'ing the unit. Hopefully the Free Desktop folks can figure something out but I need to get a working system... :)
Locked

Return to “Cinnamon”