Bug 414593

Summary: Huge memory usage with some PDFs
Product: [Applications] okular Reporter: Andrius <andrius.puksta>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED NOT A BUG    
Severity: normal CC: aacid
Priority: NOR    
Version First Reported In: 1.8.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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