7

After upgrading from Ubuntu 24.04 LTS to 24.10, Nautilus (Files) has stopped working entirely on X11. It still runs fine on Wayland, but using Wayland with an NVIDIA setup causes a host of other issues for me, so I'd prefer to stick with X11.

Here’s the error message I get when I try to launch Nautilus on X11:

aras@aero:~$ nautilus
** Message: 02:17:54.912: Connecting to org.freedesktop.Tracker3.Miner.Files

(org.gnome.Nautilus:8208): Adwaita-WARNING **: 02:17:54.981: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead. MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers

(org.gnome.Nautilus:8208): Gdk-WARNING **: 02:17:55.190: The program 'org.gnome.Nautilus' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 1128 error_code 8 request_code 149 (unknown) minor_code 4) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)

So far, I’ve tried the following steps without success:

  1. Deleted Nautilus config and cache:
rm -rf ~/.config/nautilus
rm -rf ~/.local/share/nautilus
  1. Reinstalled Nautilus:
sudo apt install --reinstall nautilus
sudo apt --fix-broken install
  1. Removed and purged Nautilus, then reinstalled:
sudo apt remove --purge nautilus
sudo apt install nautilus
  1. Reset Nautilus settings:
dconf reset -f /org/gnome/nautilus/
  1. Reset ownership of the home directory:
sudo chown -R $USER:$USER ~

Here is a snippet from journalctl -xe | grep nautilus that may offer more context:

Oct 16 02:15:07 aero nautilus[6384]: Connecting to org.freedesktop.Tracker3.Miner.Files
Oct 16 02:15:32 aero nautilus[6384]: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Oct 16 02:15:32 aero gnome-shell[5939]: DING: GNOME nautilus 47.0
Oct 16 02:17:44 aero nautilus[7866]: Connecting to org.freedesktop.Tracker3.Miner.Files
Oct 16 02:17:44 aero dbus-daemon[5168]: [session uid=1000 pid=5168] Activating via systemd: service name='org.freedesktop.portal.Desktop' unit='xdg-desktop-portal.service' requested by ':1.115' (uid=1000 pid=7866 comm="/usr/bin/nautilus --gapplication-service" label="nautilus (unconfined)")
Oct 16 02:17:44 aero nautilus[7866]: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Oct 16 02:17:44 aero nautilus[7866]: The program 'org.gnome.Nautilus' received an X Window System error.
Oct 16 02:24:12 aero nautilus[12984]: Connecting to org.freedesktop.Tracker3.Miner.Files
Oct 16 02:24:12 aero nautilus[12984]: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
Oct 16 02:24:12 aero nautilus[12984]: The program 'org.gnome.Nautilus' received an X Window System error.

Edit: I just noticed App Center (snap-store) doesn't work either, with the following error:

Unable to create a GL context

aras@aero:~$ snap-store
Gtk-Message: 04:21:24.771: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(snap-store:13004): Gtk-WARNING **: 04:21:24.826: GTK+ module /snap/snap-store/1218/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded. GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported. Gtk-Message: 04:21:24.826: Failed to load module "canberra-gtk-module"

(snap-store:13004): Gtk-WARNING **: 04:21:24.827: GTK+ module /snap/snap-store/1218/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded. GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported. Gtk-Message: 04:21:24.827: Failed to load module "canberra-gtk-module"

(snap-store:13004): Gdk-CRITICAL **: 04:21:24.859: gdk_gl_context_make_current: assertion 'GDK_IS_GL_CONTEXT (context)' failed

** (snap-store:13004): WARNING **: 04:21:24.859: Failed to initialize GLArea: Unable to create a GL context

** (snap-store:13004): CRITICAL *: 04:21:26.243: void fl_keyboard_manager_sync_modifier_if_needed(FlKeyboardManager , guint, double): assertion 'FL_IS_KEYBOARD_MANAGER(self)' failed

Save and download dialogs in Chrome and Brave don't show up.

I am currently using Nvidia 560.35.03 open which is recommended by Ubuntu. If I switch to Intel graphics using sudo prime-select intel then everything is fine, so I am pretty sure this is Nvidia related.

Edit (Oct 25) As a temporary workaround we can force Gnome to use software rendering for Nautilus, of course this is not the solution but at least with this we should be able to use Nautilus and File Dialog in Chrome and Brave: Add this line to the end of /etc/environment file: GSK_RENDERER=cairo

Any ideas on what could be causing this and how to fix it? Thanks in advance!

Aras
  • 71
  • 1
  • 6

3 Answers3

2

I have the same problem with Nautilus in Xorg.

Three workarounds... pick one...

  • run NVIDIA in On-Demand mode in Xorg

  • install Nemo and switch prefs in the "Desktop Icons NG" (DING) extension to use Nemo in Xorg

  • use Wayland with NVIDIA in Performance Mode.

heynnema
  • 73,649
1

I have the same problem. Files file manager lags too much to be usable, but Thunar file manager works perfectly on X11.

To install Thunar:

sudo apt install Thunar

To show the current default file manager for opening directories:

xdg-mime query default inode/directory

To set Thunar as the default file manager:

xdg-mime default thunar.desktop inode/directory
karel
  • 122,292
  • 133
  • 301
  • 332
0

After GDK_BACKEND=x11 nautilus --no-desktop I got this -

GDK_BACKEND=x11 nautilus --no-desktop
** Message: 15:15:37.858: Connecting to org.freedesktop.Tracker3.Miner.Files

(org.gnome.Nautilus:89106): Gdk-WARNING **: 15:15:38.503: The program 'org.gnome.Nautilus' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 1005 error_code 8 request_code 149 (unknown) minor_code 4) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.)

After running through ChatGPT it suggested:

It appears that you are still encountering the same BadMatch error when running Nautilus with the GDK_BACKEND=x11 variable set. This error suggests there is a compatibility issue with the GTK (GDK) version, the X11 server or Nautilus itself.

karel
  • 122,292
  • 133
  • 301
  • 332