After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 751109 - Renaming a printer causes the control center to lock up
Renaming a printer causes the control center to lock up
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Printers
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Marek Kašík
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-06-17 14:23 UTC by Allan Day
Modified: 2021-06-09 16:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot (38.74 KB, image/png)
2015-06-17 14:23 UTC, Allan Day
Details

Description Allan Day 2015-06-17 14:23:51 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).
Comment 1 Bastien Nocera 2015-06-18 10:05:05 UTC
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.
Comment 2 Allan Day 2015-06-19 09:49:54 UTC
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.
Comment 3 Felipe Borges 2015-07-21 23:05:02 UTC
Could this be that you're giving a new name which contains spaces or any other special character?
Comment 4 Marek Kašík 2015-07-22 09:07:03 UTC
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.
Comment 5 André Klapper 2021-06-09 16:13:01 UTC
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.