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 614581 - Gtk print dialog freezes on start up
Gtk print dialog freezes on start up
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Printing
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2010-04-01 12:38 UTC by Marek Kašík
Modified: 2010-05-24 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
honor PPD reading over listing of printers (2.19 KB, patch)
2010-04-01 13:51 UTC, Marek Kašík
none Details | Review

Description Marek Kašík 2010-04-01 12:38:07 UTC
Description of problem:
When gtk print dialog is starting there is a 10~ seconds long delay sometimes. It shows up if cups listens to socket (line "Listen /var/run/cups/cups.sock" is in cupsd.conf).


How reproducible:
Almost always


Steps to Reproduce:
0. have some printers configured in cups and "Listen /var/run/cups/cups.sock"
   line in cupsd.conf
1. run gtk-demo
2. run "Printing" demo


Actual results:
Print dialog freezes for several seconds.


Expected results:
Print dialog doesn't freeze.


The problem here is that reading of PPD files collides with getting list of
printers. It helps to give higher priority to getting of PPDs than to getting
list of printers.
Comment 1 Marek Kašík 2010-04-01 13:51:01 UTC
Created attachment 157696 [details] [review]
honor PPD reading over listing of printers

This patch fixes the problem.
Comment 2 Marek Kašík 2010-05-24 14:56:07 UTC
Committed to gtk-2-22 and trunk:

    Honor PPD reading over listing of printers
    
    Reading of PPD files collides with getting list of printers.
    It helps to give higher priority to getting of PPDs than to
    getting list of printers (#614581).

Marek