Printing dialog gets stuck or crashes in Gtk applications

As the title suggests, when trying to print anything at all with Gnome applications the printing dialog gets stuck and crashes. This happens in the pdf viewer (Papers), text editor and image viewer (Loupe, tried Eye of Gnome as well, same problem). The same issue also happens with gtk3 applications such as mousepad (text editor) and ristretto (image viewer) from xfce, while KDE applications seem to work fine, like for example Gwenview.

I can reproduce this issue both on my machine and in a virtual machine with a clean install of NixOS and Gnome.
This is a recording from the VM which illustrates the issue (open in a new tab if the animation does not work):

stuck

(sorry for the huge file, I could not upload video so I made a webp animated file. If necessary I can upload the video somewhere else)
I tried waiting 10 minutes for the dialog but it did not get unstuck. Also whether there are any printers added to CUPS or not does not make a difference: in the VM there are no printers but on my machine I have lots of them (tried both usb and network printers at first).
I also tried getting some logs with G_MESSAGES_DEBUG=all but that yielded nothing. The apps just lock up until I kill them.
(I’m on 25.11.2222.b3aad468604d, stable)

2 Likes

I am also having this issue.

A bit of digging led me to CUPS 2.4.15 freezes apps requesting the GTK print dialog Ā· Issue #1429 Ā· OpenPrinting/cups Ā· GitHub.
Apparently this is a problem that appeared in cups 2.4.15.

tl;dr: gnome applications use a common interface to cups, which didn’t play well with the new handling of requests.

For some reason, unstable has cups 2.4.14, so I tried using this cups version via services.printing.package, however, this didn’t solve the issue for me.

I also tried applying the fix as a patch in an override, however, this didn’t solve the problem either.

Solved it by rolling nixos back to 25.11.1056.d9bc5c7dceb3, which I knew to be good from one of my other devices.

Not a permanent fix, but good enough for now.

I was getting the same issue, ā€œupgradingā€œ to unstable solved it for now
ā€upgradingā€ because unstable has a inferior version of cups as stated above

The fix for NixOS 25.11 is already prepared:

Let’s hope someone merges this pull request in time for the stable staging cycle.

1 Like