Skip to main content
Topic: [SOLVED]cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27 (Read 1856 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED]cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Hello,

My Artix-cinnamon  System just hangs with a black screen at boot  :'(
Everything seems fine at boot until dmesg shows:
Code: [Select]
[   10.454619] cinnamon-screen[3061]: segfault at 18 ip 00007f6c18b4a7f4 sp 00007ffde2214960 error 4 in libgtk-3.so.0.2404.27[7f6c18ab6000+384000]
[   10.454630] Code: c4 08 5b 5d c3 90 f3 0f 1e fa 48 8b 7f 10 48 85 ff 74 0b e9 5e c8 ff ff 66 0f 1f 44 00 00 48 83 ec 08 48 89 d7 e8 8c f8 17 00 <48> 8b 40 18 48 8b 78 10 67 e8 3e 35 09 00 48 83 c4 08 48 89 c7 e9

I can open a virtual Terminal with Ctrl+Alt+F5 .

So  I tried reinstall cinnamon. But that didn't help. I figured: just use a diffent Desktop Enviroment.

I Installed Plasma/KDE  and lxqt   like instructed here: https://wiki.artixlinux.org/Main/Installation#Desktop_Environment

Unfortunatly artix still (seems to) try to start cinnamon.And i have no clue how to tell the system to use one of this instead.

I tried to create the file ~/.xinitrc with just one line
exec startlxqt
but this does not work at boot time.

I can start lxqt form the virtual Terminal with:
$ /usr/bin/startlxqt
or just:
$ startx

But its quite anoying to do this everytime.

So I have 2 opportunites:
1. fix cinnamon to work again
2. tell Artix  use another Desktop enviroment.

Any tipps and hints are welcome.  :)

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #1
How did you install cinnamon? Have you updated your system?

Edit: If you have installed from a cinnamon graphical ISO, you probably have autologin enabled in lightdm (default DM in the cinnamon graphical ISO). To temporarily disable autologin, you can execute:
Code: [Select]
su
sed -i.bak 's/^\(autologin\)/#\1/g' /etc/lightdm/lightdm.conf

This should (after restarting lightdm) present you with a login screen and allow you to choose a session. Still, the cinnamon issue should be investigated more thoroughly, so more details about it are needed.

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #2
Hey Thank you for the answer.

Yes you were right. I installed from a cinnamon graphical ISO & autologin was enabled.
I followed your advise and turned it off. After a reboot it got to the login-screen.

But sadly that didn't helped much. When i choose to start ltqx i come to an black screen &dmesg tells:
Quote
starting ltqx with handmade .xinitrc in $HOME
[   22.303624] lightdm-gtk-gre[2666]: segfault at 10 ip 00007f9acac4b100 sp 00007ffca387bab8 error 4 in libcairo.so.2.11704.0[7f9acabf3000+d2000]
[   22.303633] Code: 8b 44 24 28 64 48 2b 04 25 28 00 00 00 75 11 48 83 c4 38 31 c0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 ff 15 ec 2a 0b 00 0f 1f 40 00 <8b> 47 10 c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 8b 47 14 c3 66 66

tarting ltqx .xinitrx in $HOME removed
[   27.432942] lightdm-gtk-gre[2682]: segfault at 10 ip 00007fc7cf9ab100 sp 00007ffda6a267f8 error 4 in libcairo.so.2.11704.0[7fc7cf953000+d2000]
[   27.432952] Code: 8b 44 24 28 64 48 2b 04 25 28 00 00 00 75 11 48 83 c4 38 31 c0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 ff 15 ec 2a 0b 00 0f 1f 40 00 <8b> 47 10 c3 66 66 2e 0f 1f 84 00 00 00 00 00 90 8b 47 14 c3 66 66

But when i open from the blackscreen a virtual terminal is can start ltqx with /usr/bin/startltqx  : :o


Quote
Have you updated your system?
Yes. I am doing updates. the last Update before trouble (the one before this, the story is in the next spoiler) was with 80 packages:
Spoiler (click to show/hide)

The trouble i had in advance:
Spoiler (click to show/hide)

after this there were more updates with the following packages:
Spoiler (click to show/hide)


So I still can't boot into any Desktop enviroment.


Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #4
Thanks for your reply !

Quote
can you try re-installing cairo?
Done. But still no Desktop after login-screen, just black Monitor & dmesg keeps telling:
lightdm-gtk-gre[2668]: segfault .........

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #5
Can you try running this command:
Code: [Select]
gdk-pixbuf-query-loaders --update-cache

Also could you show me the output of:
Code: [Select]
df -h
Chris Cromer

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #6
Hi There,
thanks for your reply

df -h shows:
Quote
Filesystem                 Size     Used     Avail Use%    Mounted on
dev                               10M             0     10M      0%    /dev
run                               3.8G      2.1M    3.8G      1%     /run
/dev/dm-0                916G   548G    322G   63%    /
shm                             3.8G     8.0K      3.8G      1%    /dev/shm
cgroup_root            10M             0        10M    0%    /sys/fs/cgroup
/dev/nvme0n1p1    300M  428K     299M    1%    /boot/efi
tmpfs                         766M          0     766M    0%    /run/user/1000

and i have done : gdk-pixbuf-query-loaders --update-cache but nothing changed.

But Stop: I can't start lxqt from virtual Terminal anymore. Not sure if this happend after cairo reinstall or this step.
Trying these brings something new:
Quote
.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #7
Been doing some more digging, and this is a gtk problem. I have seen the same errors in gnome and other gtk softwares. Maybe reinstalling gtk, libgtk, etc might help.

Alsonot just arch and artix related, there are reports of this error in fedora, ubuntu, linux mint, and arch linux.

I saw various fixes, some people say X works, and others say it doesn't. Others say Y fixes it, and others say it doesn't. Seems like a strange rare bug with more than one possible cause.

Will keep digging.
Chris Cromer

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #8
Thanx for digging !!!

I did a quick:
pacman -S -l | grep Installiert | grep gtk | cut -d " " -f 2

which showed serveral files. I reinstalled them all via :

pacman -Sy breeze-gtk clutter-gtk gtk-update-icon-cache gtk2 gtk3 gtkmm3  gtksourceview3 gtksourceview4 kde-gtk-config lightdm-gtk-greeter webkit2gtk wxgtk-common wxgtk3 artix-gtk-presets libappindicator-gtk3 libdbusmenu-gtk3 libfm-gtk2 libindicator-gtk3
this didn't help.

So i also reinstalled:          lightdm & lightdm-gtk-greeter

I'm sorry to say this, but none of this helped. Still can't start any Desktop. 

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #9
Thanx for digging !!!

I did a quick:
pacman -S -l | grep Installiert | grep gtk | cut -d " " -f 2

which showed serveral files. I reinstalled them all via :

pacman -Sy breeze-gtk clutter-gtk gtk-update-icon-cache gtk2 gtk3 gtkmm3  gtksourceview3 gtksourceview4 kde-gtk-config lightdm-gtk-greeter webkit2gtk wxgtk-common wxgtk3 artix-gtk-presets libappindicator-gtk3 libdbusmenu-gtk3 libfm-gtk2 libindicator-gtk3
this didn't help.

So i also reinstalled:          lightdm & lightdm-gtk-greeter

I'm sorry to say this, but none of this helped. Still can't start any Desktop. 
Is everything up to date? Have you done a pacman -Syu?

You could give a complete package reinstall a shot:
Code: [Select]
pacman -Q | awk '{ print $1 }' | sort > /tmp/pacman-installed.tmp
pacman -Qm | awk '{ print $1 }' | sort | comm -3 /tmp/pacman-installed.tmp - > /tmp/pacman-to-reinstall.tmp
pacman -S --noconfirm $(cat /tmp/pacman-to-reinstall.tmp)
rm /tmp/pacman-{to-reinstall,installed}.tmp

This will reinstall 100% of the packages you have installed.

This should fix any missing files, bad permissions, missing deps, rerun all hooks, replace arch packages with artix packages, and various other possible things. Depending on how many packages you have installed, and the speed of your machine, this can take a while.
Chris Cromer

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #10
So I have 2 opportunities:
1. fix cinnamon to work again
2. tell Artix  use another Desktop environment.

Any tips and hints are welcome.  :)
Hello,
This is just to provide a workaround for number 2.
As you have installed KDE and LXQT you could try SDDM instead of Lightdm.

If you are using openrc:

Code: [Select]
sudo  pacman -Sy sddm-openrc
Code: [Select]
sudo rc-update add sddm default
Restart the system.

If this solution works and you prefer auto-login:
Code: [Select]
sudo usermod -a -G autologin <your_user_name>
Code: [Select]
sudo mkdir /etc/sddm.conf.d
Code: [Select]
sudo touch /etc/sddm.conf.d/autologin.conf

Code: [Select]
sudo nano /etc/sddm.conf.d/autologin.conf
Add the lines below:
Code: [Select]
[Autologin]
User=<your_user_name>
Session=xfce

And eventually:
sudo pacman -Rsu lightdm


Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #11
Is everything up to date? Have you done a pacman -Syu?
...
You could give a complete package reinstall a shot:

Yes everything ist up to date.  pacman -Syu runs at least once a day.

I did a complete package reinstall as suggested. (List of all Files in Hide)
Spoiler (click to show/hide)

None of this helped. dmesg still shows the lightdm-gtk-gre segfault .

At least i can use /usr/bin/startx with  ~./xinitrc (exec startlxqt) again to come into Desktop from virtual Console.


Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #12
Hello,


This is just to provide a workaround for number 2.

If you are using openrc:

sudo  pacman -Sy sddm-openrc
Yes I am using openrc .

I am not really into all the xinit / Desktop / Displaymanager stuff and have no clue how all of this works together. So please don't be offended for my Question beforer proceeding :

When i do:
Quote
sudo  pacman -Sy sddm-openrc
i got:
Quote
sddm-openrc and displaymanager-openrc are in conflict (init-displaymanager). Remove displaymanager-openrc? [y/N]

But there is no package called displaymanager-openrc in the full systeminstall.

Even  pacman -S -l | grep displaymanager shows nothing.

Is this just normal or do I do just more damage by removing nonexisting packages. Because I suppose if the sddm workaround does not work it will be hard to reinstall a nonexisting package 

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #13
Ok.


Quote
When i do:i got:
But there is no package called displaymanager-openrc in the full systeminstall.
As Artix is of the rolling release type, it is important to regularly read the "Recent news" on https://artixlinux.org/index.php :

https://artixlinux.org/news.php#displaymanager-openrc_retirement
https://forum.artixlinux.org/index.php/topic,2161.0.html

Even  pacman -S -l | grep displaymanager shows nothing.
Right here :
Code: [Select]
pacman -Ss display-manager
world/sddm 0.19.0-7 [installé]
    QML based X11 and Wayland display manager
extra/sddm 0.19.0-7 [installé]
    QML based X11 and Wayland display manager

While
Code: [Select]
pacman -Ss displaymanager
shows me the whole list.


Quote
Is this just normal or do I do just more damage by removing nonexisting packages. Because I suppose if the sddm workaround does not work it will be hard to reinstall a nonexisting package 
If you remove displaymanager-openrc and your system is up to date, you can use sddm-openrc and fall back to lightdm-openrc if necessary.

Re: cinnamon doesn't start because of segfault in libgtk-3.so.0.2404.27

Reply #14
It worked ! :)

I get to the (new sddm) login screen and from there to lxqt   AND   cinnamon  ;D

I could also autologin to the lxqt Desktop

But when i try to activate autologin into cinnamon it fails.

the file  /etc/sddm.conf.d/autologin.conf
was changed to:
Quote
[Autologin]
User=JohnDoe
Session=cinnamon
and
Quote
[Autologin]
User=JohnDoe
Session=cinnamon.desktop

but both gave me only a panel & i couldn't open any window.

When i used : Panel -> troubleshoot-> restore all settings to default
the Desktop went complete black. Even reboot didn't work.

Removing the autologin and starting cinnamon from login-screen works like a charm.


###########

And yes:
Quote
As Artix is of the rolling release type, it is important to regularly read the "Recent news" on https://artixlinux.org/index.php :
You are right. I have lost track of this a while ago. Now im back to it!

Thanks to everybody who helped me out !