Bug 18465

Summary: gnome-shell-3.20.2 crashes shortly after login on NVidia hardware
Product: Mageia Reporter: Theodoros Kalamatianos <thkala>
Component: RPM PackagesAssignee: Olav Vitters <olav>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: marja11, mitya
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: gnome-shell-3.20.2-1.mga6.src.rpm CVE:
Status comment:
Attachments: mgarepo `svn diff' output for a new gnome-shell release

Description Theodoros Kalamatianos 2016-05-16 00:18:03 CEST
Description of problem:

A few minutes after login gnome-shell crashes, with this message in the logs:

May 15 21:40:08 localhost org.gnome.Shell.desktop[2501]: (gnome-shell:2501): Cogl-ERROR **: Failed to create an OpenGL framebuffer object
May 15 21:40:08 localhost kernel: [  354.068438] traps: gnome-shell[2501] trap int3 ip:300484f8db sp:7fff9a86e050 error:0
May 15 21:40:08 localhost kernel: [  354.068449] audit: type=1701 audit(1463341208.048:246): auid=4294967295 uid=984 gid=983 ses=4294967295 pid=2501 comm="gnome-shell" exe="/usr/bin/gnome-shell" sig=5
May 15 21:40:08 localhost gnome-session[2441]: gnome-session-binary[2441]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
May 15 21:40:08 localhost gnome-session-binary[2441]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
May 15 21:40:08 localhost org.gnome.Shell.desktop[20162]: X Error of failed request:  BadMatch (invalid parameter attributes)
May 15 21:40:08 localhost org.gnome.Shell.desktop[20162]:   Major opcode of failed request:  139 (RANDR)
May 15 21:40:08 localhost org.gnome.Shell.desktop[20162]:   Minor opcode of failed request:  7 (RRSetScreenSize)
May 15 21:40:08 localhost org.gnome.Shell.desktop[20162]:   Serial number of failed request:  216
May 15 21:40:08 localhost org.gnome.Shell.desktop[20162]:   Current serial number in output stream:  217
May 15 21:40:08 localhost gnome-session[2441]: gnome-session-binary[2441]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
May 15 21:40:08 localhost gnome-session[2441]: gnome-session-binary[2441]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
May 15 21:40:08 localhost gnome-session-binary[2441]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
May 15 21:40:08 localhost gnome-session-binary[2441]: Unrecoverable failure in required component org.gnome.Shell.desktop
May 15 21:40:08 localhost gnome-session-binary[2441]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly

As a result, I get an unexpected VT switch to tty1. If I switch back to tty2 everything seems normal - I had to look into the logs to realize that gnome-shell had actually crashed. I use an NVidia GPU with the proprietary driver - according to other reports the issue does not occur with Nouveau.

The same bug has been discussed for Arch Linux (https://bugs.archlinux.org/task/48772) and a patch (https://git.archlinux.org/svntogit/packages.git/tree/trunk/0001-Initialize-framebuffer-objects-early-so-clutter-will.patch?h=packages/gnome-shell) was applied for gnome-shell. I built a custom package with that patch and it seems to be working.

Version-Release number of selected component (if applicable):

gnome-shell-3.20.2-1.mga6

How reproducible:

Always

Steps to Reproduce:
1. Logon to GNOME via GDM (not sure if GDM is relevant, but it's what I use)
2. Wait for some time (~minutes)
Marja Van Waes 2016-05-17 11:44:57 CEST

Assignee: bugsquad => olav
CC: (none) => marja11

Comment 1 Theodoros Kalamatianos 2016-05-21 19:50:05 CEST
I have been using the aforementioned patch from Arch Linux for a while now on x86_64 and it seems stable.

I am attaching the output of `svn diff` for an updated release of the gnome-shell package.
Comment 2 Theodoros Kalamatianos 2016-05-21 19:51:08 CEST
Created attachment 7828 [details]
mgarepo `svn diff' output for a new gnome-shell release
Comment 3 Dimitri Jakov 2016-06-08 02:22:11 CEST
Confirmed on gnome-shell-3.20.2 and NVIDIA 340.96 (i586). The bug is very annoying!

CC: (none) => mitya

Comment 4 Theodoros Kalamatianos 2016-06-09 03:04:49 CEST
Since this is now confirmed by another person, I am bumping up the severity.

Hardware: x86_64 => All
Severity: normal => major

Comment 5 Olav Vitters 2016-06-11 18:48:43 CEST
Submitted a -3 release with upstream patch applied.

Resolution: (none) => FIXED
Status: NEW => RESOLVED

Comment 6 Olav Vitters 2016-06-12 17:07:19 CEST
Theodoros, I'm pretty impressed with the bugreport. If you'd like to contribute more to GNOME within Mageia, I'd support you. You can do as little or as much as you'd like. From only fixing one thing per year to spending 40+ hours/week doing .. stuff.. it's all fine.

In this bugreport I was slow to just add the patch. IMO it would've been nice if you had the ability to do that yourself.