Bug 511347

Summary: Enormous memory usage on big numbers in calculator
Product: [Plasma] krunner Reporter: jeuamix
Component: calculatorAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alexander.lohnau, natalie_clarius, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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 ***