Open Bug 1536420 Opened 2 years ago Updated 2 years ago

PDF uses lot of memory when decoding

Categories

(Firefox :: PDF Viewer, defect, P3)

65 Branch
defect

Tracking

()

UNCONFIRMED

People

(Reporter: gwarser, Unassigned)

Details

(Whiteboard: [pdfjs-c-performance])

Attachments

(2 files)

99.10 KB, application/gzip
Details
1.52 MB, application/pdf
Details
Attached file memory-report.json.gz

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

Actual results:

Memory usage can easily go above 2GB when decoding on load and after paging. Seems to be released after some delay/unspecified event.

Expected results:

Memory usage should not increase a lot when decoding.
PDF decodes without memory problems in Chromium 73, Okular 1.6.3.

Attached file Z3fold.pdf

Looks similar to this: https://bugzilla.mozilla.org/show_bug.cgi?id=1436734
but easier to reproduce and capture memory report.

Component: Untriaged → PDF Viewer
Priority: -- → P3
Whiteboard: [pdfjs-c-performance]
You need to log in before you can comment on or make changes to this bug.