Bug 503607

Summary: Middle click zooming in and out ramps up ram usage and makes system laggy
Product: [Applications] okular Reporter: mikefrag96
Component: generalAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: crash CC: dmatteo002, strong.drum0546
Priority: NOR    
Version First Reported In: 25.04.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: video showcasing bug

Description mikefrag96 2025-05-01 10:39:01 UTC
Created attachment 180844 [details]
video showcasing bug

SUMMARY
Middle click zooming in and out ramps up ram usage and makes system laggy

STEPS TO REPRODUCE
1. view a pdf document on okular
2.  zoom in and out using middle click for a bit (until okular loses frames)

OBSERVED RESULT
memory usage goes from 100mb to 400mb, okular becomes unusuable (choppy scrolling, delayed text selection)
even recording crashed on the attachment video

System info:
Operating System: CachyOS Linux 
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.13.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 12 × 11th Gen Intel® Core™ i5-11400 @ 2.60GHz
Memory: 15,5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1650
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D20
System Version: 1.0
Comment 1 Lenzoid 2025-05-02 15:52:08 UTC
Nice catch. I can confirm this on git-master (Okular 25.07.70 as per Help About). 

Stable Arch + plasma workspace git-master

Operating System: Arch Linux 
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X3D 8-Core Processor
Memory: 32 GiB of RAM (31.3 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 2070 SUPER
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B85
System Version: 1.0
GPU driver Version: nvidia-open-dkms 570.144-1