X11 crashes in some programs

Hi everyone,
I am running a fresh install of Fedora 30 and installed NVIDIA 430.50 Driver for my NVIDIA GeForce MX130 (Optimus). When I open a file in GIMP or run a vnc in Remmina, X11 crashes.

Journalctl -r reports

Sep 23 14:01:58 localhost.localdomain PackageKit[2244]: uid 1000 obtained auth for org.freedesktop.packagekit.system-sources-refresh
Sep 23 14:01:58 localhost.localdomain PackageKit[2244]: uid 1000 is trying to obtain org.freedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Sep 23 14:01:58 localhost.localdomain gsd-color[2283]: failed to set screen _ICC_PROFILE: Failed to open file “/home/chall3ng3/.local/share/icc/edid-b8dd74a4e66d0aeebf430eb5a8c24ce2.icc”: Permission denied

Further in Journalctl of last boot I found this. Could this be the culprit?

Sep 23 13:55:40 localhost.localdomain /usr/libexec/gdm-x-session[2117]: (II) Loading sub module “glamoregl”
Sep 23 13:55:40 localhost.localdomain /usr/libexec/gdm-x-session[2117]: (II) LoadModule: “glamoregl”
Sep 23 13:55:40 localhost.localdomain /usr/libexec/gdm-x-session[2117]: (WW) Warning, couldn’t open module glamoregl
Sep 23 13:55:40 localhost.localdomain /usr/libexec/gdm-x-session[2117]: (EE) modeset: Failed to load module “glamoregl” (module does not exist, 0)
Sep 23 13:55:40 localhost.localdomain /usr/libexec/gdm-x-session[2117]: (EE) modeset(G0): Failed to load glamor module.

Give correct permision to your primus

1 Like

I do not have a primus running. My system should be offloading the graphics.

[chall3ng3@localhost ~]$ lspci |grep -E “VGA|3D”
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (rev 07)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce MX130] (rev a2)

Offloading Graphics
Using the NVIDIA Driver with Optimus Laptops

Turns out that if I start X server as user chall3ng3 instead of (root by default), I do not have problems using GIMP or Remmina.

I started fedora in CLI (multi-user mode) and started X to gather diagnostic data to NVIDIA as per requested (NVIDIA-If you have a problem, PLEASE read this first). When I ran “startx – -logverbose 6”, I was no longer able to replicate the problem.

What permission does the user chall3ng3 has that root doesn’t in regards to the file in question?

Hmm so none of those journalctl messages seem to say anything particularly interesting; could you reproduce the issue (letting the Shell crash), then hit Ctrl-Alt-F3 from the login screen, sign in there, and run journalctl -b -e and look for any errors from gnome-shell in particular? I think journalctl -b -e _EXE=/usr/bin/gnome-shell should filter it but I can’t be 100% sure that command would do the trick.

Or for Xorg errors, I believe journalctl -b -e | grep EE would do a good job of filtering things down.

Also, do you have any Shell extensions enabled? If so, have you tried disabling them?

1 Like

There are no Shell extensions enabled.

For Gnome-Shell:

Sep 26 11:01:02 localhost.localdomain gnome-shell[2528]: …/clutter/clutter/clutter-offscreen-effect.c:225: Unable to create an Offscreen buffer
Sep 26 11:01:02 localhost.localdomain gnome-shell[2528]: …/clutter/clutter/clutter-offscreen-effect.c:225: Unable to create an Offscreen buffer

Sep 26 11:02:37 localhost.localdomain org.gimp.GIMP.desktop[2528]: gimp-2.10: Fatal IO error 11 (Resource temporarily unavailable) on X server :99.0.

For X11:

The only thing I found was that my wacom touchscreen and stylus are not supported right now.

The GIMP errors are just from Xorg or GNOME crashing.

Were there any other GNOME errors at all around those two Clutter ones? They seem rather suspect, but I can’t find anything on them right now…

1 Like

How about this?

This happened before Gnome-Shell started

Sep 26 11:00:17 localhost.localdomain gnome-shell[2042]: JS WARNING: [resource:///org/gnome/shell/ui/layout.js 23]: reference to undefined property “MetaWindowX11”
Sep 26 11:00:26 localhost.localdomain gnome-shell[2528]: g_dir_open_with_errno: assertion ‘path != NULL’ failed
Sep 26 11:00:26 localhost.localdomain gnome-shell[2528]: g_filename_to_utf8: assertion ‘opsysstring != NULL’ failed
Sep 26 11:00:26 localhost.localdomain gnome-shell[2528]: g_dir_open_with_errno: assertion ‘path != NULL’ failed
Sep 26 11:00:26 localhost.localdomain gnome-shell[2528]: g_filename_to_utf8: assertion ‘opsysstring != NULL’ failed

This happened right before clutter error.

Sep 26 11:00:27 localhost.localdomain gnome-shell[2528]: STACK_OP_ADD: window 0x2200001 already in stack
Sep 26 11:00:27 localhost.localdomain gnome-shell[2528]: STACK_OP_ADD: window 0x2200001 already in stack
Sep 26 11:00:28 localhost.localdomain gnome-shell[2528]: GNOME Shell started at Thu Sep 26 2019 11:00:27 GMT-0500 (CDT)

Those Shell warnings seem rather docile (the environment ones should be [fixed in F31](“gappinfo: Add precondition checks to GAppLaunchContext env methods (!813) · Merge Requests · GNOME / GLib · GitLab” https://gitlab.gnome.org/GNOME/glib/merge_requests/813). Were there any other lines at all between the offscreen buffer errors and when GIMP lost the X server? :neutral_face:

Also , another idea: what does coredumpctl list -r show for the first 5 or so core dumps?

1 Like

These are the lines between offload buffer error and GIMP lost the X server.

Sep 26 11:01:02 localhost.localdomain gnome-shell[2528]: …/clutter/clutter/clutter-offscreen-effect.c:225: Unable to create an Offscreen buffer
Sep 26 11:01:02 localhost.localdomain gnome-shell[2528]: …/clutter/clutter/clutter-offscreen-effect.c:225: Unable to create an Offscreen buffer
Sep 26 11:02:31 localhost.localdomain org.gimp.GIMP.desktop[2528]: GIMP-Message: Some fonts failed to load:
Sep 26 11:02:31 localhost.localdomain org.gimp.GIMP.desktop[2528]: - /app/share/gimp/2.0/fonts/
Sep 26 11:02:37 localhost.localdomain org.gimp.GIMP.desktop[2528]: gimp-2.10: Fatal IO error 11 (Resource temporarily unavailable) on X server :99.0.

The Result of command requested

TIME PID UID GID SIG COREFILE EXE
Mon 2019-09-23 14:40:43 CDT 3922 1000 1000 11 present /usr/bin/abrt-applet
Mon 2019-09-23 13:35:52 CDT 1408 1000 1000 11 present /usr/bin/gnome-control-center
Mon 2019-09-23 13:35:43 CDT 1264 1000 1000 11 present /usr/bin/gnome-control-center
Thu 2019-09-19 14:11:10 CDT 3405 1000 1000 6 missing /usr/bin/nautilus
Wed 2019-09-18 16:51:43 CDT 3554 993 988 11 missing /usr/libexec/geoclue

1 Like

This…continues to get weirder, there are absolutely no errors there.

One question I do have: how did you install the NVIDIA driver? Also, do you actually use the nvidia hardware on Linux, or do you have e.g. a VM with GPU passthrough or a dual boot setup? If you’re not actually using the card here, you can disable it entirely in Linux land and just use the iGPU instead.

I installed NVIDIA driver by using Fedora 30/29/28 nVidia Drivers Install Guide followed up for offloading graphics instructions Chapter 33. Offloading Graphics Display with RandR 1.4.

I do use the NVIDIA graphics for more Intel processing power availability and lower RAM usage.

1 Like

Ugh, that guide is terrible, yet it’s somehow the top Google result… I see it break random stuff all the time.

First off, follow these directions to uninstall that variant. Then:

Note: make sure you’ve run a full system upgrade and rebooting into the latest kernel before installing the nvidia driver, omitting that is a common mistake that leads to it not being loaded.

3 Likes

So, I am still having the same problem in GIMP… Same info as gathered with NVIDIA 430.50

Ack, is this running under optirun or running under the Intel GPU?

1 Like

It is running under the NVIDIA driver and offload graphics onto the Intel GPU. I have discovered that Nouveau Driver is working. I will stick with this until the end of this academic semester. Then, I plan to come back and try to get the NVIDIA driver up and running again.

1 Like