Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#231 Stop rendering when PDF viewer is closed

open
nobody
None
5
2012-10-17
2011-09-04
hoalistic
No

When the PDF viewer window is closed while a PDF page is being rendered,
the rendering is not stopped. This can be quite annoying if the rendering takes
very long blocking the CPU even after the PDF viewer is closed.

To reproduce open the attatched PDF in the viewer and close the viewer
window.

Is it possible to change that behaviour? I could not find an obvious way at
a quick glance at the source code.

Discussion

  • hoalistic
    hoalistic
    2011-09-04

    PDF which poppler takes ages to render

     
  • poppler does not offer a termination mechanism for rendering.
    As qt explicitly discourages to kill a thread, txs lets a rendering thread finish on its own.
    At maximum one page per thread is still rendered at closing of the viewer. If that rendering takes a long time, there is no obvious solution to remedy this.

     
  • We could add an option to wait for the rendering thread to exit?

     
  • Feature request for an option...

    Or instead stopping the thread we could sets it priority to low/idle, so it won't waste cpu time