Bug 414593 - Huge memory usage with some PDFs
Summary: Huge memory usage with some PDFs
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 1.8.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-28 08:16 UTC by Andrius
Modified: 2019-11-28 21:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrius 2019-11-28 08:16:15 UTC
SUMMARY
Memory usage is huge with certain (probably only large) PDFs. When the document is opened, OKular starts consuming ~8 gigabytes of memory. Note: I set the memory usage to "Greedy" in Okular
Link to file (too large to be uploaded here):
https://1drv.ms/b/s!AtVUP40CJsppo10TsD3sbtVPqzr9?e=gwFPxT

STEPS TO REPRODUCE
1. Open the attached PDF file with Okular

OBSERVED RESULT
Huge memory usage

SOFTWARE/OS VERSIONS:
Linux/KDE Plasma: Manjaro KDE
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2
Comment 1 Albert Astals Cid 2019-11-28 18:39:38 UTC
Okular will us as much memory as possible when set to Greedy, you can't complain it's doing that
Comment 2 Andrius 2019-11-28 21:06:45 UTC
But it should only use the memory to load the document, what else is there to take up so much space?
Comment 3 Albert Astals Cid 2019-11-28 21:11:18 UTC
the pre-rendered images of the 1049 pages