[Interest] Constructor of QPrinter takes 25-50 seconds to execute

Thiago Macieira thiago.macieira at intel.com
Fri Nov 27 08:13:06 CET 2015


On Wednesday 25 November 2015 12:33:45 william.crocker at analog.com wrote:
> On 11/25/2015 12:32 PM, william.crocker at analog.com wrote:
> >> I am wondering if this problem can happen again. What can possibly cause
> >> QPrinter constructor to get stuck for such a long time?
> > 
> > For me Qt was scanning the network, building up the list of
> > available printers. On a campus of 6 buildings and umpteen printers,
> > that took a noticeable amount of time. But, I think was only once
> > per run of the app. That was also on older releases. I use 4.8.7
> > and I think that has been fixed. If you are using a newer version
> > it would not surprise me if the problem has returned.
> 
> Run it in the debugger and interrupt,
> It should be obvious what it is doing.

25 seconds is the exact time of a D-Bus method call timeout. 50 seconds would 
be two, back-to-back.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list