evince aborts printing when window is closed during creation of print job
Bug #139907 reported by
Sebastian Urban
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evince |
Fix Released
|
Medium
|
|||
evince (Ubuntu) |
Fix Released
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: evince
steps to reproduce:
1. make sure your cpu load is at 100%
2. open a large document (> 100 pages) in evince
3. print document in evince
4. close evince immediately
result: document is not printed
expected result: document is printed
Related branches
Changed in evince: | |
status: | New → Triaged |
Changed in evince: | |
status: | Unknown → Confirmed |
Changed in evince: | |
status: | Confirmed → Fix Released |
Changed in evince: | |
importance: | Unknown → Medium |
To post a comment you must log in.
I have created a patch for this bug.
Evince was preparing the document for printing in a background job. This job was canceled when Evince was closed.
The patch solves this by
1) not canceling the print job when the document window is closed
2) hiding instead of deleting the document window, when there are still print jobs running.
(this is needed, because some printing code depends on the window)
Furthermore I found that printing setting may be associated with the wrong print job if the user prints the document multiple times with different settings within a short period of time (i.e. when the first print job is not finished yet). This is also fixed in this patch.
Additionally I changed the print job title from "evince_print" to the document name.
This is my first patch to an open source project, so tell me about my mistakes.