Print preview and saving files to pdf is very slowly
Categories
(Core :: Print Preview, defect, P2)
Tracking
()
People
(Reporter: atrif, Assigned: jwatt)
References
(Blocks 1 open bug)
Details
(Keywords: perf, regression, Whiteboard: [print2020_v91] [old-ui-])
Attachments
(2 files)
Affected versions
- 83.0 (20201112153044)
- 84.0b5 (20201126155845)
- 85.0a1(20201116094341)
Affected platforms
- macOS 10.12
Steps to reproduce
- Open Firefox and a random page.
- Click print from the hamburger menu
Expected result
- Print preview is opened as expected.
Actual result
- Print Preview has a very long loading time on previewing the file.
Regression range
- Last good revision: dafa26b89edacc8d9fb9eade704d7124ba5239cf (2020-10-22)
- First bad revision: 1980f87855fc557e7ef6bb24b66c4d2df5606afa (2020-10-23)
- Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=dafa26b89edacc8d9fb9eade704d7124ba5239cf&tochange=1980f87855fc557e7ef6bb24b66c4d2df5606afa
Notes
- After a while, the print preview is loaded but saving the pdf results in another long wait time but resulting in a successful print.
- Attached a screen recording with Firefox 82.0.3(unaffected) and Firefox 84.0b5: link.
- Print Preview is also reloaded very slow when changing settings(e.g scale, pages, paper size etc.)
- Also it seems that clicking the Cancel button while the preview is loading and then pressing CMD+P from the keyboard results in the Print Preview window being opened only after 1 minute or so. I don't know if I should open another bug for this behavior or it's the same issue.
Suggested Severity: S3
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 1•4 years ago
|
||
The print preview seems to open "instantly" for me. Could you capture a profile using the Firefox profiler of this, and post a link to it, so we can try and figure out why it's so slow there? Thanks.
Reporter | ||
Comment 2•4 years ago
|
||
(In reply to Jonathan Kew (:jfkthame) from comment #1)
The print preview seems to open "instantly" for me. Could you capture a profile using the Firefox profiler of this, and post a link to it, so we can try and figure out why it's so slow there? Thanks.
Yes, ofc. Here is the link: https://share.firefox.dev/2L0XrPx. If there's anything else I can help with please let me know. Thank you!
Comment 3•4 years ago
|
||
There's a 30-second delay here in handling the Msg_PrintPreview message. There are a number of (low-priority) network requests in the content process that seem to be totally stalled (why?), but I don't know if we're specifically waiting on those. The delay being more or less exactly 30 seconds makes me wonder if there's a timeout that we eventually hit, and then DOMContentLoaded finally fires; and only after that does Msg_PrintPreview complete.
No idea why, though. It doesn't look like the browser is busy with anything; it's just waiting, waiting.... :jwatt, do you have any idea what could be going on here?
Updated•4 years ago
|
Updated•4 years ago
|
Reporter | ||
Updated•4 years ago
|
This is still broken (exhibits the same behavior) in Firefix Mac 84.0.1
Comment 6•4 years ago
|
||
I am also experiencing performance issues when it comes to loading the content of the page in the Print Preview window. This issue is reproducible with both the old and new Print UI. I have used the Profiler tool in order to capture the profile as it follows:
Please note that I have also uploaded the files as attachments to this report in case the profiles are too big to be displayed smoothly using the links.
Environment:
- platform: Windows 10 x64
- browser versions: Firefox Release 84.0.1, Firefox Beta 85.0b4, Firefox Nightly 86.0a1
Please let me know if you need any additional information.
Comment 9•4 years ago
|
||
I can also confirm that the issue is encountered on Ubuntu 16.04 x86, with Beta 85.0b5. I'm going to remove the macOS tag from the title, in order to reflect that the issue is more like a general one, which happens across platforms.
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 11•4 years ago
|
||
This bug still exists in Firefox Mac v85.0! Had to change to using chrome. #;-(
Updated•4 years ago
|
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Firefox 86.0 MacOS 10.2.6
- when attempting to print a web page, it takes about 30 seconds for the preview page to appear
- change the printer ... wait another 30 seconds
- print to PDF ... wait another 30 seconds
... back to Chrome <sigh>
Comment 13•4 years ago
|
||
I had been blind about the fact the this issue seems to happen only on MacOS 10.12. And https://hg.mozilla.org/mozilla-central/rev/3c6ac25bb5d5076576a99a81c12c654952297c3a is a suspicious change in the regression range in comment 0.
So I wonder whether disabling print.cups.monochrome.enabled will fix this issue or not.
Hey Alexandru, would you mind trying to set print.cups.monochrome.enabled to false to see if it mitigates this issue?
Comment 14•4 years ago
|
||
geez, geez. I did forget what comment 9 said, I read it yesterday, now I totally forget about it. Anyways, I think there are several reasons to make print preview slow, and one of the reason might be the monochrome support issue.
Reporter | ||
Comment 15•4 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #13)
I had been blind about the fact the this issue seems to happen only on MacOS 10.12. And https://hg.mozilla.org/mozilla-central/rev/3c6ac25bb5d5076576a99a81c12c654952297c3a is a suspicious change in the regression range in comment 0.
So I wonder whether disabling print.cups.monochrome.enabled will fix this issue or not.
Hey Alexandru, would you mind trying to set print.cups.monochrome.enabled to false to see if it mitigates this issue?
Hello! I tried on a new profile by setting print.cups.monochrome.enabled:false
, then restarted the browser using the latest Nightly (2021-02-25) on macOS 10.12, but the issue is still reproducible. If more information is needed please let me know.
Updated•4 years ago
|
Comment hidden (advocacy) |
Comment hidden (advocacy) |
Comment 18•4 years ago
|
||
I looked into why it's hanging on macOS and found that CreateOrCopyPrintInfo()
is hanging [see profile at https://share.firefox.dev/3qKlzoB ]. I note that the most recent change to this function were the patches caused by bug 1667053.
My current theory is that this could be (on macOS Sierra, anyway) a regression caused by the bug 1667053 fixes. Perhaps while trying to get sysPrintInfo
, the attempt causes CUPS (used by AppKit) to time out after waiting 30 seconds?
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 19•3 years ago
|
||
Alexandru, according to your comment in bug 1696640 this is fixed, right?
Reporter | ||
Comment 20•3 years ago
|
||
Yup, I can no longer reproduce this on my macOS 10.12 machine with 96.0b6 and the latest nightly. Saving to PDF and print previews happens almost instantly on random web pages and PDF docs.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 21•3 years ago
|
||
Yay ... finally prints without delay ... back to being able to use Firefox. Thanks!
Description
•