Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinuxMint 18: Cinnamon Crash - segfault libgdk-3 #5704

Closed
ximex opened this issue Sep 18, 2016 · 14 comments
Closed

LinuxMint 18: Cinnamon Crash - segfault libgdk-3 #5704

ximex opened this issue Sep 18, 2016 · 14 comments
Labels

Comments

@ximex
Copy link

ximex commented Sep 18, 2016

Hello,
I installed Linux Mint 18 with Cinnamon on my notebook.
Some days later, cinnamon crashes on startup and couldn't fix it. I got this error message in the logs if i try to restart cinnamon:

[  918.768192] cinnamon[3894]: segfault at e8 ip 00007f2cde8ee5b2 sp 00007ffc924
bdbb8 error 4 in libgdk-3.so.0.1800.9[7f2cde8b1000+d4000]

Edit:
I have an onboard intel and an extern nvidia graphics card (optimus)

@JosephMcc JosephMcc added the BUG label Sep 23, 2016
@rbieb
Copy link

rbieb commented Sep 24, 2016

Same issue here.

Dell XPS 13 9350
Intel graphics, no external nvidia card. Issue happened right after logging in.

edit: I'll be happy to provide all details you need, but is there already a workaround for this? My system is basically unusable right now because of this bug.

edit2: Problem can temporarily be "fixed" by deleting the ~/.cinnamon directory

@ghost
Copy link

ghost commented Oct 22, 2016

I too am experiencing this:

# journalct | grep cinnamon
Oct 22 13:50:50 j-UX305UA kernel: cinnamon[2648]: segfault at e8 ip 00007f6ac7a685b2 sp 00007fff7fe456c8 error 4 in libgdk-3.so.0.1800.9[7f6ac7a2b000+d4000]
Oct 22 13:52:01 j-UX305UA kernel: cinnamon[2748]: segfault at e8 ip 00007f8c756ef5b2 sp 00007fff01ec9728 error 4 in libgdk-3.so.0.1800.9[7f8c756b2000+d4000]
Oct 22 13:54:32 j-UX305UA kernel: cinnamon[2896]: segfault at e8 ip 00007f3bf8c305b2 sp 00007ffd2447d848 error 4 in libgdk-3.so.0.1800.9[7f3bf8bf3000+d4000]

~/.cinnamon/glass.log (glass.log.last is identical)

info t=2016-10-22T17:54:30.514Z Cinnamon.AppSystem.get_default() started in 108 ms
info t=2016-10-22T17:54:30.519Z loading user theme: /usr/share/themes/Linux Mint/cinnamon/cinnamon.css
info t=2016-10-22T17:54:30.540Z added icon directory: /usr/share/themes/Linux Mint/cinnamon
info t=2016-10-22T17:54:30.609Z PlacesManager: Updating devices
info t=2016-10-22T17:54:30.630Z loaded at Sat Oct 22 2016 13:54:30 GMT-0400 (EDT)
info t=2016-10-22T17:54:31.012Z Loaded applet menu@cinnamon.org in 380 ms
info t=2016-10-22T17:54:31.019Z Loaded applet show-desktop@cinnamon.org in 6 ms
info t=2016-10-22T17:54:31.055Z Role locked: panellauncher
info t=2016-10-22T17:54:31.055Z Loaded applet panel-launchers@cinnamon.org in 34 ms
info t=2016-10-22T17:54:31.067Z Loaded applet window-list@cinnamon.org in 11 ms
info t=2016-10-22T17:54:31.078Z Role locked: notifications
info t=2016-10-22T17:54:31.083Z Loaded applet notifications@cinnamon.org in 15 ms
info t=2016-10-22T17:54:31.106Z Loaded applet user@cinnamon.org in 22 ms
info t=2016-10-22T17:54:31.117Z Loaded applet removable-drives@cinnamon.org in 9 ms
info t=2016-10-22T17:54:31.162Z Loaded applet keyboard@cinnamon.org in 44 ms
info t=2016-10-22T17:54:31.223Z Loaded applet network@cinnamon.org in 58 ms
info t=2016-10-22T17:54:31.253Z Loaded applet sound@cinnamon.org in 29 ms
info t=2016-10-22T17:54:31.271Z Loaded applet power@cinnamon.org in 17 ms
info t=2016-10-22T17:54:31.281Z Loaded applet systray@cinnamon.org in 9 ms
info t=2016-10-22T17:54:31.300Z Loaded applet calendar@cinnamon.org in 18 ms
info t=2016-10-22T17:54:31.309Z Loaded applet windows-quick-list@cinnamon.org in 8 ms
info t=2016-10-22T17:54:31.309Z AppletManager.init() started in 679 ms
info t=2016-10-22T17:54:31.313Z Cinnamon took 936 ms to start

I tried what the previous user suggested by removing ~/.cinnamon; cinnamon still refused to start.

I should also note that I had no issues pre-update or install. I tried previous kernel; still crashing 100% of the time.

@ghost
Copy link

ghost commented Oct 22, 2016

Ok, further update to this; I decided to strace -f -s 10000 -p $(pidof -s mdm); and seen the following:

read(13, "\n(cinnamon-settings-daemon:2075): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code17: Cannot open dconf database: invalid gvdb header\n", 256) = 216
read(13, 0x7fffd871a330, 256)           = -1 EAGAIN (Resource temporarily unavailable)
geteuid()                               = 1000
setresuid(-1, 0, -1)                    = 0
getegid()                               = 1000
setresgid(-1, 128, -1)                  = 0
select(14, [6 13], NULL, NULL, NULL)    = 1 (in [13])
geteuid()                               = 0
getegid()                               = 128
geteuid()                               = 0
setresgid(-1, 1000, -1)                 = 0
setresuid(-1, 1000, -1)                 = 0
read(13, "\n(cinnamon-settings-daemon:2075): dconf-WARNING **: failed to commit changes to dconf: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code17: Cannot open dconf database: invalid gvdb header\n", 256) = 216
read(13, 0x7fffd871a330, 256)           = -1 EAGAIN (Resource temporarily unavailable)
geteuid()                               = 1000
setresuid(-1, 0, -1)                    = 0
getegid()                               = 1000
setresgid(-1, 128, -1)                  = 0
select(14, [6 13], NULL, NULL, NULL)    = 1 (in [13])
geteuid()                               = 0
getegid()                               = 128
geteuid()                               = 0
setresgid(-1, 1000, -1)                 = 0
setresuid(-1, 1000, -1)                 = 0

I removed dconf settings: rm -rf ~/.config/dconf

Cinnamon was able to start without issue.

This probably became corrupt after an update as I only had issues after an update. To be clear; I tried old kernel vs updated kernel and problem was exactly the same. After removal of dconf; cinnamon was able to start without issue on latest kernel.

@ghost
Copy link

ghost commented Oct 22, 2016

After further experimenting with this; there is a bug in how cinnamon interacts with dconf. Once I've setup my configuration in cinnamon settings and rebooted cinnamon has crashed; removal of dconf fixes the issue.

@ghost
Copy link

ghost commented Oct 22, 2016

I tried to make user (dconf) immutable to prevent further corruption. But, on boot dconf settings daemon maxes out CPU.

So the tldr is; dconf keeps getting corrupt somehow.

Until this bug is fixed make a backup of ~/.config/user and when it flips out just copy.

@kazaore
Copy link

kazaore commented Nov 27, 2016

I am seeing the same behaviour on a new Linux Mint 18 install on my desktop:

[  826.335747] cinnamon[2200]: segfault at e8 ip 00007f4ace44e5b2 sp 00007ffdaee11688 error 4 in libgdk-3.so.0.1800.9[7f4ace411000+d4000]
[  832.831949] cinnamon[5635]: segfault at e8 ip 00007f8b472175b2 sp 00007ffeb43a3f78 error 4 in libgdk-3.so.0.1800.9[7f8b471da000+d4000]

I am running the 4.4.0-47 kernel and an integrated Intel video card.

Removing the ~/.config/dconf folder does allow cinnamon to start.

@desbma
Copy link

desbma commented Dec 18, 2016

I am hit by this bug too, on Arch Linux with Cinnamon 3.2.1.

EDIT: Removing ~/.config/dconf did fix the crash, with the unfortunate side effect of losing configuration of some programs.

@Electron-libre
Copy link

Same here Arch Linux / Cinnamon ( Latest available packages ).

 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)

Removing ~/.config/dconf/user is a workaround until the next session.

@leigh123linux
Copy link
Contributor

@Electron-libre Try deleting /run/user/1000/dconf/user (change UID to suit) as well.

@karlgray
Copy link

karlgray commented Feb 9, 2017

I had the same problem. removing ~/.config/dconf sorted it out.
I suspect it might be the temperature monitoring applet?

@tcuje
Copy link

tcuje commented Feb 17, 2017

Same issue here. Bug is triggered on shutdown or when I restore applications from the shortcut tray, especially Telegram Desktop Client.

@desbma
Copy link

desbma commented Mar 14, 2017

This bug is still occurring frequently on at least 2 of my systems: approximately once a month (with a boot every day or less).
I use Btrfs snapshots to restore the previous ~/.config/dconf/user file and every times that fixes it until next occurrence.
I use Arch Linux and all packages are up to date.

Can I do something to help the developers fix it?
Post the corrupted ~/.config/dconf/user file?
Attach gdb when the crash occurs?

Thanks

@desbma
Copy link

desbma commented Sep 2, 2017

With Cinnamon 3.4.x I can no longer reproduce the bug after months of use.

It is most likely fixed.

@Adrien-Luxey
Copy link

Adrien-Luxey commented Nov 16, 2018

Bug still happens with Cinnamon 3.6.7 (though less often):

[   41.726704] cinnamon[3910]: segfault at 18 ip 00007fc1f1dd7580 sp 00007ffd6ae9e080 error 4 in libgtk-3.so.0.1800.9[7fc1f1a42000+71a000]

Works fine after restarting Cinnamon. The bug often happens at boot, sometimes at shutdown and at random times.

Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
VGA compatible controller: Intel Corporation Sky Lake Integrated Graphics (rev 07) (prog-if 00 [VGA controller])
Kernel 4.15.0-36-generic x86_64

FYI, I have Redshift and NextCloud in the system tray, in addition to the classical ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests