Closed Bug 1721949 Opened 3 years ago Closed 3 years ago

Zooming in on a certain pdf consumes a huge amount of memory and causes the browser(incl. PC) to hang

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 90
Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox-esr78 --- unaffected
firefox90 --- wontfix
firefox91 + verified
firefox92 + verified

People

(Reporter: alice0775, Assigned: bdahl)

References

(Regression)

Details

(Keywords: hang, memory-footprint, regression)

Attachments

(5 files)

STEPS to Reproduce:

  1. Open https://www.sony.jp/products/catalog/BD_DVDrecorder_news.pdf
  2. Click + button of the PDF viewer several times.

Actual results:
Consumes a large amount of memory.
Browser (including PC) hangs.

Expected results:
It should use less memory.

Attached file about:support

When switch to other tab, memory usage will decrease immediately.
So, it difficult to get memory report from use about:memory.

The problem does not occue in Firefox78esr and Firefox89.

:alice0775, could you try to find a regression range using for example mozregression?

[Tracking Requested - why for this release]: unsable pdf viewer due to memory consumption and PB hang

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=5c402eaa028455bb2c837bb0068741f43d566787&tochange=1a154c35b1b1673c4e9f79c0f38c3d12daa71a6b

Has Regression Range: --- → yes
Regressed by: 1711106

Maybe a duplicate of bug 1721218.

Bug 1721218 was fixed. Alice, can you test again with latest Nightly?

Flags: needinfo?(alice0775)

(In reply to Marco Castelluccio [:marco] from comment #7)

Bug 1721218 was fixed. Alice, can you test again with latest Nightly?

No, not fixed. The problem is reproduced in Nightly92.0a1(20210727094543).

Flags: needinfo?(alice0775)

The good build(20210514033445): https://share.firefox.dev/3iVX3Pl
Latest Nightly(20210727094543): https://share.firefox.dev/3BMkPpP

The following is how to get the memory report.

  1. Open 2 browser windows(Let's call them Browser A and Browser B)
  2. Load about:memory in Browser A
  3. Load the pdf in Browser B and zoom in several times
  4. Click Measure and save in Browser A and save (It hangs for a long time but may succeed without crashing
Attachment #9233329 - Attachment description: memory-report.json.gz → memory-report_Nightly92.0a1(build ID20210727094543).json.gz
Assignee: nobody → bdahl
Status: NEW → ASSIGNED
Severity: -- → S2
Priority: -- → P1
Commit merged into master by GitHub
Authored by Brendan Dahl (brendandahl)
Depends on: 1722768
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Just like in bug 1722571 and bug 1721218, I have confirmed the issue in Firefox Release v90.0.2 as the RAM used grew instantly upon loading it and then upon zooming in or out, and I have verified the fix in Firefox Beta v91.0b9 and Firefox Nightly v92.0a1 from 2021-07-30. The PDF still loads quite slow, but it does not use an absurdly high amount of RAM or get freezes or hangs.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: