(Zorin 18) gnome-control-center crashes when trying to access display settings

Note: will be updating original post as i troubleshoot.
Original title: Settings crashes immediately on open, throws errors for trying to execute dbus-launch

HI all,
In trying to troubleshoot an (assumed) unrelated problem, i've stumbled into an error with the zorin settings page where it crashes immediately on launch.

this persists after power-cycling, logging out and back in, and making sure i don't have anything ready to install in the updates manager.

Trying to open gnome-control-center through the command line also causes the window to flicker open and closed, and shows the following error:

GLib[15614]:CRITICAL: g_variant_builder_end: assertion '!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)' failed
GLib[15614]:CRITICAL: g_variant_get_type: assertion 'value != NULL' failed
GLib[15614]:CRITICAL: g_variant_type_is_subtype_of: assertion 'g_variant_type_check (type)' failed
GLib[15614]:CRITICAL: g_variant_get_type_string: assertion 'value != NULL' failed
GLib[15614]:   ERROR: g_variant_new: expected GVariant of type '*' but received value has type '(null)'

When running it with sudo, the interface does open, however some of the settings (particularly display settings) are incomplete. no options show up, nor can i change anything to do with display/zoom/arrangement. It's just the ui's scaffold (which i suppose checks out because root's user settings aren't my user settings.)

However, i also get the following warnings:

Gtk[20434]: WARNING: Unable to acquire session bus: Failed to execute child process “dbus-launch” (No such file or directory)
dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
Error creating rfkill proxy: Failed to execute child process “dbus-launch” (No such file or directory)
cc-power-panel[20434]: WARNING: session bus not available: Failed to execute child process “dbus-launch” (No such file or directory)
dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
cc-display-panel[20434]: WARNING: failed to connect to g-s-d: Failed to execute child process “dbus-launch” (No such file or directory)
cc-display-panel[20434]: WARNING: failed to connect to g-s-d: Failed to execute child process “dbus-launch” (No such file or directory)
cc-display-panel[20434]: WARNING: Error obtaining DBus connection: Failed to execute child process “dbus-launch” (No such file or directory)
cc-display-panel[20434]: WARNING: Failed to get session bus: Failed to execute child process “dbus-launch” (No such file or directory)
cc-display-panel[20434]: WARNING: Failed to contact gnome-shell: Failed to execute child process “dbus-launch” (No such file or directory)
dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
 dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
cc-background-panel[20434]: WARNING: Error creating proxy: Failed to execute child process “dbus-launch” (No such file or directory)
dconf[20434]: WARNING: failed to commit changes to dconf: Failed to execute child process “dbus-launch” (No such file or directory)
cc-applications-panel[20434]: WARNING: Failed to connect to portal permission store: Failed to execute child process “dbus-launch” (No such file or directory)

questions:

  • Is this dbus-launch warning just indicative of running the settings as 'root' instead of as my user
  • If so, is there a better way to narrow down the cause of the CRITICAL error when i try to open settings normally?
  • has anyone else encountered this error before and knows a fix for this?
    • I've found a workaround for specifically the app crashing (resetting the last open panel through gsettings) but it does not fix the root of the issue

In case it helps:

`uname -a` output
Linux [machine name] 7.0.0-38-generic #38~24.04.4-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 14 16:37:11 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Full `inxi -F` output
System:
  Host: [Machine Name] Kernel: 7.0.0-38-generic arch: x86_64 bits: 64
  Desktop: GNOME v: 46.0 Distro: Zorin OS 18.1 noble
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME Z790-A WIFI v: Rev 1.xx
    serial: <superuser required> UEFI: American Megatrends v: 0806
    date: 11/22/2022
CPU:
  Info: 12-core (8-mt/4-st) model: 12th Gen Intel Core i7-12700K bits: 64
    type: MST AMCP cache: L2: 12 MiB
  Speed (MHz): avg: 2994 min/max: 800/4900:5000:3800 cores: 1: 4700 2: 800
    3: 4700 4: 800 5: 4700 6: 800 7: 4700 8: 800 9: 4699 10: 4700 11: 4700
    12: 800 13: 4700 14: 800 15: 4700 16: 800 17: 3797 18: 3798 19: 3602
    20: 800
Graphics:
  Device-1: NVIDIA GA102 [GeForce RTX 3080 Lite Hash Rate] driver: nvidia
    v: 580.178.04
  Device-2: Logitech MX Brio
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB
  Device-3: Genki ShadowCast 2 Pro
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
    loaded: nvidia unloaded: fbdev,modesetting,nouveau,vesa
    gpu: nvidia,nvidia-nvswitch resolution: 1: 480x640 2: 1920x1080~60Hz
    3: 3840x2160~30Hz
  API: EGL v: 1.5 drivers: nvidia,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.178.04
    renderer: NVIDIA GeForce RTX 3080/PCIe/SSE2
Audio:
  Device-1: Intel Raptor Lake High Definition Audio driver: snd_hda_intel
  Device-2: NVIDIA GA102 High Definition Audio driver: snd_hda_intel
  Device-3: Logitech MX Brio
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB
  Device-4: Genki ShadowCast 2 Pro
    driver: hid-generic,snd-usb-audio,usbhid,uvcvideo type: USB
  API: ALSA v: k7.0.0-38-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active
Network:
  Device-1: Intel Raptor Lake-S PCH CNVi WiFi driver: iwlwifi
  IF: wlp0s20f3 state: down mac: 84:14:4d:2d:4f:60
  Device-2: Intel Ethernet I226-V driver: igc
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: c8:7f:54:69:7b:be
Bluetooth:
  Device-1: Intel AX211 Bluetooth driver: btusb type: USB
  Report: hciconfig ID: hci0 state: up address: 84:14:4D:2D:4F:64 bt-v: 5.3
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
Drives:
  Local Storage: total: 4.08 TiB used: 748.19 GiB (17.9%)
  ID-1: /dev/nvme0n1 vendor: MSI model: M461 4TB size: 3.64 TiB
  ID-2: /dev/nvme1n1 vendor: Crucial model: CT480E100SSD8 size: 447.13 GiB
Partition:
  ID-1: / size: 3.58 TiB used: 748.15 GiB (20.4%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot/efi size: 96 MiB used: 37.7 MiB (39.3%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A gpu: nvidia temp: 40 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 53%
Info:
  Memory: total: 32 GiB note: est. available: 31.08 GiB used: 8.59 GiB (27.6%)
  Processes: 497 Uptime: 1h 36m Shell: Bash inxi: 3.3.34

Ok so while googling i think(?) that the root of my prolem is actually to do with displays/display settings.

In case it helps other people, i found that resetting the last-panel can prevent the settings app failing to open at all, and can maybe be a partial workaround:

gsettings reset org.gnome.Settings last-panel

this may not fix the problem. this allows me to open the settings app, and change other settings, but crashes with the same error when i open the Display pane. Will continue troubleshooting.

You can try to run

mv ~/.config/monitors.xml ~/.config/monitors.xml.bak

and then logout.
Then make your display settings again.

Welcome to the Forum!

Did You tried a Reinstall? You can do that with

sudo apt reinstall gnome-control-center

via Terminal.

Thanks for the welcome! Glad to be here. :slight_smile:

Just tried it - unfortunately the same thing happens with the same error output as before.

1 Like

Eyyy! that worked to get the display settings back!

So is this indicative of some weird caching/a discrepancy between settings and available monitors or something!!

Will mark this as the solution now. :slight_smile:

Thank you (and @Ponce-De-Leon!) for the help!

2 Likes

Unfortunately, I don't know. Maybe the file was corrupted, contained an syntax error, or had the wrong permissions...
I just thought we could try this because the display settings are saved in that file when changes are made in the settings app. And if you rename the file (which is what the command did), this resets the monitor settings, and the next time you change something in the display settings, a new file is created at ~/.config/monitors.xml.

I'm sorry that I mistakenly wrote to you earlier that the command

gsettings reset org.gnome.Settings last-panel

wouldn't work in Zorin 18.
Even if the schema/key is actually different in dconf, it works.
I thought you need

gsettings reset org.gnome.control-center last-panel

but with this command you get an error that the schema doesn't exist.
Amazing. I've never seen anything like this before in dconf-editor. Usually the path is the same as you need for the gsettings command.

1 Like