You are not logged in.

#1 2018-01-22 22:47:14

sergiodlc
Member
Registered: 2016-01-01
Posts: 6

[Solved] Gnome Shell crashing at random intervals

Every few minutes Gnome shell crashes, the screen flickers and go back to normal after a few seconds.

I traced the relevant section in journalctl:

Jan 22 12:36:26 pc dbus-daemon[388]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.1758' (uid=1000 pid=24202 comm="/usr/bin/gnome-shell ")
Jan 22 12:36:26 pc systemd[1]: Starting Hostname Service...
Jan 22 12:36:26 pc dbus-daemon[388]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 22 12:36:26 pc systemd[1]: Started Hostname Service.
Jan 22 12:36:26 pc polkitd[465]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.1758, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jan 22 12:36:26 pc gnome-session[1801]: gnome-session-binary[1801]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Jan 22 12:36:26 pc gnome-session-binary[1801]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1

I tried checking the org.freedesktop.hostname1 systemd service:

$ systemctl status org.freedesktop.hostname1
Unit org.freedesktop.hostname1.service
$ systemctl start org.freedesktop.hostname1
Failed to start org.freedesktop.hostname1.service: Unit org.freedesktop.hostname1.service not found.

My desktop was working just fine until a couple of days ago. I can't think of anything I've done since then to cause this issue. Running linux-lts kernel (had linux kernel package until about a month ago) with the nvidia-lts driver for my GTX 970 graphics card.

Any ideas?

Last edited by sergiodlc (2018-01-23 19:26:06)

Offline

#2 2018-01-23 04:22:29

Burlex
Member
From: Russian Moscow
Registered: 2017-03-05
Posts: 3

Re: [Solved] Gnome Shell crashing at random intervals

+1
My desktop configuration:
Intel core i7-6700 , motherboard Asus b150 , video card Nvidia gtx 750 ti. Linux kernel 4-14-14 , gnome 3.26 last update .

Offline

#3 2018-01-23 04:25:58

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,027

Re: [Solved] Gnome Shell crashing at random intervals

dbus service, not systemd service.

Offline

#4 2018-01-23 09:24:58

seth
Member
Registered: 2012-09-03
Posts: 8,440

Re: [Solved] Gnome Shell crashing at random intervals

I doubt this is related to the hostname service, but regardless please paste the output of

hostnamectl

Then check

man coredumpctl

to see why the gnome-session-binary actually crashes.
The prominent recent issues have been about glibc and something apparent xwayland and device mounting related - both should be fixed in most recent updates.

Offline

#5 2018-01-23 13:25:21

ooo
Member
Registered: 2013-04-10
Posts: 1,607

Re: [Solved] Gnome Shell crashing at random intervals

Make sure you have up to date system. There's been a lot of bugfix releases recently, for example the latest gjs should fix many possible crashes.

seth wrote:

The prominent recent issues have been about glibc and something apparent xwayland and device mounting related - both should be fixed in most recent updates.

You mean glib2, right?
Personally I'm not at all convinced that all issues with glib2 2.54.3 are fixed.
If nothing else works, try downgrading to glib2-2.54.2-2.

As always, you should also try disabling all your shell extensions.

Offline

#6 2018-01-23 14:59:58

seth
Member
Registered: 2012-09-03
Posts: 8,440

Re: [Solved] Gnome Shell crashing at random intervals

Yup, of course - my bad.
(That's what you get if you try to use your vague memory instead of google- "We're DOOMED!!!" ;-)

Offline

#7 2018-01-23 16:22:12

phw
Member
Registered: 2013-05-27
Posts: 303

Re: [Solved] Gnome Shell crashing at random intervals

Offline

#8 2018-01-23 18:27:56

sergiodlc
Member
Registered: 2016-01-01
Posts: 6

Re: [Solved] Gnome Shell crashing at random intervals

seth wrote:

I doubt this is related to the hostname service, but regardless please paste the output of

hostnamectl

I ran hostnamectl. Gnome didn't crash. Here's the output:

sergio@pc:~$ hostnamectl
   Static hostname: pc
         Icon name: computer-desktop
           Chassis: desktop
        Machine ID: 5a165dd31b0a42e2968f0a8faf648597
           Boot ID: 4371209dfe9346bbafc4e00f9ee7ecf2
  Operating System: Arch Linux
            Kernel: Linux 4.9.77-1-lts
      Architecture: x86-64

I don't know what is the relation between this hostname thing and the crashes, but 100% of the time, I get entries relating to it right before the crash and way after everything else in journalctl:

Jan 23 10:07:39 pc hipchat4.desktop[2834]: [18:07:39][void AbstractOnlineStatus::doSecondaryCheck(bool):264] onlineStatusUrl check:  "https://api.hipchat.com/v
Jan 23 10:07:39 pc hipchat4.desktop[2834]: [18:07:39][void AbstractOnlineStatus::handleReplyFinished(QNetworkReply*):126] no errors from onlineStatusCheck
Jan 23 10:07:39 pc hipchat4.desktop[2834]: [18:07:39][void AbstractOnlineStatus::handleOnlineStatusResult(bool):179] handleOnlineStatusResult no change :  true
Jan 23 10:07:46 pc dbus-daemon[396]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' re
Jan 23 10:07:46 pc systemd[1]: Starting Hostname Service...
Jan 23 10:07:47 pc dbus-daemon[396]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 23 10:07:47 pc systemd[1]: Started Hostname Service.
Jan 23 10:07:47 pc polkitd[478]: Unregistered Authentication Agent for unix-session:c2 (system bus name :1.325, object path /org/freedesktop/PolicyKit1/Authent
Jan 23 10:07:47 pc gnome-session[1841]: gnome-session-binary[1841]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1

Note how the hipchat entries happened 7 seconds before the crash and that the hostname lines are the only ones right before the crash.

I tried a couple of things yesterday. I switched back to the linux kernel (I use linux-lts) and the crashes happened there too. Lastly, I restored my system to the way it was on 5 days ago (Jan 18th). The issue went away. So I'm fairly sure that some update since 5 days ago is causing this.

I updated today my system to the latest packages and the crashes started again. You can find the pacman.log file with the packages that were upgraded here.

I'm going to try to get more info with coredumpctl and reply with my findings.

You can find below some more info about my system:

$ sudo inxi -Frmxx
System:    Host: pc Kernel: 4.9.77-1-lts x86_64 bits: 64 gcc: 7.2.1 Console: tty 0 dm: gdm Distro: Arch Linux
Machine:   Device: desktop System: ASUS product: All Series serial: N/A
           Mobo: ASUSTeK model: Z87I-DELUXE v: Rev X.0x serial: 131219698400087
           BIOS: American Megatrends v: 1204 date: 11/26/2014
CPU:       Quad core Intel Core i5-4690K (-MCP-) arch: Haswell rev.3 cache: 6144 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 27983
           clock speeds: min/max: 800/3900 MHz 1: 3748 MHz 2: 3702 MHz 3: 3878 MHz 4: 3743 MHz
Memory:    Array-1 capacity: 16 GB devices: 2 EC: None
           Device-1: ChannelA-DIMM0 size: 8 GB speed: 1333 MT/s type: DDR3
           manufacturer: 0420 part: F3-1600C9-8GXM serial: N/A
           Device-2: ChannelB-DIMM0 size: 8 GB speed: 1333 MT/s type: DDR3
           manufacturer: 0420 part: F3-1600C9-8GXM serial: N/A
Graphics:  Card: NVIDIA GM204 [GeForce GTX 970] bus-ID: 01:00.0 chip-ID: 10de:13c2
           Display Server: X.Org 1.19.6 driver: nvidia Resolution: 1920x1080@60.00hz, 2560x1440@143.96hz
           OpenGL: renderer: GeForce GTX 970/PCIe/SSE2
           version: 4.5.0 NVIDIA 387.34 (compat-v: 4.6.0) Direct Render: Yes
Audio:     Card-1 Intel 8 Series/C220 Series High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:8c20
           Card-2 NVIDIA GM204 High Definition Audio Controller
           driver: snd_hda_intel bus-ID: 01:00.1 chip-ID: 10de:0fbb
           Card-3 Logitech HD Pro Webcam C920 driver: USB Audio usb-ID: 002-002 chip-ID: 046d:082d
           Card-4 Texas Instruments PCM2902 Audio Codec driver: USB Audio usb-ID: 004-004 chip-ID: 08bb:2902
           Sound: Advanced Linux Sound Architecture v: k4.9.77-1-lts
Network:   Card-1: Intel Ethernet Connection I217-V
           driver: e1000e v: 3.2.6-k port: f040 bus-ID: 00:19.0 chip-ID: 8086:153b
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: e0:3f:49:18:c0:bc
           Card-2: Broadcom Limited BCM4352 802.11ac Wireless Network Adapter
           driver: wl bus-ID: 03:00.0 chip-ID: 14e4:43b1
           IF: wlp3s0 state: down mac: d2:69:2b:78:2d:96
Drives:    HDD Total Size: 1250.3GB (37.7% used)
           ID-1: /dev/sdb model: Samsung_SSD_850 size: 250.1GB serial: S2R5NX0H737147E
           ID-2: /dev/sda model: CT500BX100SSD1 size: 500.1GB serial: 1516F005EFA5
           ID-3: /dev/sdc model: HGST_HTS725050A7 size: 500.1GB serial: TF755BWH13RU2S
Partition: ID-1: / size: 76G used: 57G (79%) fs: ext4 dev: /dev/sdb3
           ID-2: /home size: 459G used: 377G (87%) fs: ext4 dev: /dev/sdc2
           ID-3: swap-1 size: 6.44GB used: 0.00GB (0%) fs: swap dev: /dev/sdb2
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 1.0:59C
           Fan Speeds (in rpm): cpu: 0
Repos:     Active pacman repo servers in file: /etc/pacman.d/mirrorlist
           https://mirrors.sonic.net/archlinux/$repo/os/$arch
           https://mirrors.kernel.org/archlinux/$repo/os/$arch
           https://mirror.lty.me/archlinux/$repo/os/$arch
           https://mirror.sfo12.us.leaseweb.net/archlinux/$repo/os/$arch
           https://mirrors.ocf.berkeley.edu/archlinux/$repo/os/$arch
           https://mirror.kaminski.io/archlinux/$repo/os/$arch
           https://mirror.epiphyte.network/archlinux/$repo/os/$arch
           https://mirrors.rit.edu/archlinux/$repo/os/$arch
           https://mirror.hackingand.coffee/arch/$repo/os/$arch
           https://arch.mirror.constant.com/$repo/os/$arch
           https://arch.mirror.square-r00t.net/$repo/os/$arch
           https://arlm.tyzoid.com/$repo/os/$arch
           https://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
           https://mirrors.rutgers.edu/archlinux/$repo/os/$arch
           Active pacman repo servers in file: /etc/pacman.conf
           http://linux.shikadi.net/arch/$repo/$arch/
Info:      Processes: 365 Uptime: 26 min Memory: 7353.1/15988.0MB Init: systemd v: 236 Gcc sys: 7.2.1
           Client: Shell (sudo running in bash) inxi: 2.3.56

Offline

#9 2018-01-23 19:24:46

sergiodlc
Member
Registered: 2016-01-01
Posts: 6

Re: [Solved] Gnome Shell crashing at random intervals

It looks like you're right. I got a core dump for one of the crashes. It looks very similar to what I see in this bug report.

I disabled all my extensions and for about half an hour I haven't experienced any crash. I have 20+ extensions installed, so I'm not really sure which one is the culprit. I'll be re-enabling some of these extensions one by one and check the effects. It's probably a good time to get rid of some of the extensions that I don't use very often.

The bug report says that the fix will be included in gnome-shell 3.26.3. Do you know when it will make it to Arch? If it's in a couple of days I'll probably leave my extensions disabled until the fix.

Anyways, thanks everyone for your help. Marking this issue as solved.

Offline

#10 2018-01-23 20:43:47

ooo
Member
Registered: 2013-04-10
Posts: 1,607

Re: [Solved] Gnome Shell crashing at random intervals

sergiodlc wrote:

The bug report says that the fix will be included in gnome-shell 3.26.3. Do you know when it will make it to Arch? If it's in a couple of days I'll probably leave my extensions disabled until the fix.

If the fix is merged in 3.26 git branch, as the last comment on that bug report is saying, it is already included in gnome-shell-3.26.2+14+g64c857e3f-1 package.

Offline

#11 2018-01-23 22:08:22

sergiodlc
Member
Registered: 2016-01-01
Posts: 6

Re: [Solved] Gnome Shell crashing at random intervals

Well, then we're screwed, because the issue is still happening and that's the version I have installed. I'm enabling a few extensions at a time to try to locate the one that is causing this.

Offline

#12 2018-01-23 22:25:58

ooo
Member
Registered: 2013-04-10
Posts: 1,607

Re: [Solved] Gnome Shell crashing at random intervals

I'd suggest trying to downgrade at least the most obvious packages in the pacman.log you posted one-by-one, to figure out which update introduced this issue.

gjs, gnome-shell, gnome-shell-extensions, glib2 and mutter updates could introduce issues for gnome-shell most likely from the list.

Offline

#13 2018-01-24 04:57:15

sergiodlc
Member
Registered: 2016-01-01
Posts: 6

Re: [Solved] Gnome Shell crashing at random intervals

It is the Places Status Indicator extension the one that causes the crashes in my case. Found it by enabling each extension one by one.

Offline

Board footer

Powered by FluxBB