Nvidia-settings crashes when opening the X Server Display Configuration

The nvidia-settings tool crashes immediately when clicking X Server Display Configuration on the left panel. This has been tested on X11 with drivers 565.57.01 and 560.35.03.

Dmesg shows the following after the crash:

nvidia-settings[1526]: segfault at 16800001838 ip 00007e1c22128df6 sp 00007ffc4bbad2b8 error 4 in libc.so.6[17edf6,7e1c21fce000+171000] likely on CPU 4 (core 4, socket 0)

The console outputs:

(nvidia-settings:3466): GLib-GObject-CRITICAL **: 20:40:25.080: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Segmentation fault (core dumped)

And here’s the bug report file. nvidia-bug-report.log.gz (319.2 KB)

OS: Arch
Kernel: 6.12.1
DE: Plasma 6.2.4
CPU: Ryzen 9 7950X
GPU0: RTX 3080 Ti
GPU1: RTX 4060

This works fine if I unplug the displays from the 4060. I’m assuming it has something to do with polling the displays on the second GPU in that case, but I still haven’t tracked down the exact cause for certain.