Bug 503607 - Middle click zooming in and out ramps up ram usage and makes system laggy
Summary: Middle click zooming in and out ramps up ram usage and makes system laggy
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-01 10:39 UTC by mikefrag96
Modified: 2025-05-06 20:45 UTC (History)
2 users (show)

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


Attachments
video showcasing bug (3.01 MB, video/mp4)
2025-05-01 10:39 UTC, mikefrag96
Details

Note You need to log in before you can comment on or make changes to this 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