Bug 511347 - Enormous memory usage on big numbers in calculator
Summary: Enormous memory usage on big numbers in calculator
Status: RESOLVED DUPLICATE of bug 490448
Alias: None
Product: krunner
Classification: Plasma
Component: calculator (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-30 00:25 UTC by jeuamix
Modified: 2025-10-30 16:52 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jeuamix 2025-10-30 00:25:01 UTC
SUMMARY
Calculation which results in very big numbers use an insane amount of ram. Ram doesn't free up unless krunner is killed.

STEPS TO REPRODUCE
1. Enter the following calculation `99999999999999999999999*99999999999999999999999*99999999999999999999999*99999999999999999999999*99999999999999999999999*99999999999999999999999*99999999999999999999999`

OBSERVED RESULT
Ram usage by krunner increases to 500MB.
Ram doesn't free up until krunner is killed.
Increasing the calculation increases ram usage exponentially (reached 22GB on my system by copy pasting the above calculation multiple times)

EXPECTED RESULT
Drastically lower ram usage 

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.17.4-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 32 GiB of RAM (30,9 GiB usable)
Graphics Processor: AMD Radeon RX 7900 XTX
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7D75
System Version: 1.0
Comment 1 Nate Graham 2025-10-30 16:52:52 UTC

*** This bug has been marked as a duplicate of bug 490448 ***