GNOME Bugzilla – Bug 751109
Renaming a printer causes the control center to lock up
Last modified: 2021-06-09 16:13:01 UTC
Created attachment 305482 [details] screenshot I'm attempting to rename a USB printer that isn't currently connected. Every time I try, the control center locks up - I can't interact with any of the ui in the window. After a while, a "printers is not responding" dialog pops up (see the attached screenshot).
Can you get a backtrace of the hang? Run gnome-control-center under gdb, and press Ctrl+C when it hangs, and get the backtrace there.
Now that I try to generate the screenshot, it doesn't permanently hang, of course. Printer naming is still slow and makes the control center unresponsive - if I enter a new printer name, there is no response for several seconds. During this time, the pointer disappears when it is over the control center window. The panel does recover and is able to correctly rename the printer, though.
Could this be that you're giving a new name which contains spaces or any other special character?
Hi Felipe, the problem here is that the function which does renaming of the printer (printer_rename() in printers/pp-utils.c) works synchronously. Currently, Martin Hatina works on addition of method 'PrinterRename' to cups-pk-helper which we will be able to call asynchronously in gnome-control-center over DBus then (and which will save us a lot of code here). We will use this bug to implement needed changes in gnome-control-center once the new method is available.
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new bug report at https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/ Thank you for your understanding and your help.