Bug 490448

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

Description jeuamix 2024-07-18 11:49:23 UTC
When entering extremely long operations in krunner, this will result in an exponential use of memory

SUMMARY

This operation: 2+2*999999999999999999999999999999999999999999999999999999999999999999999999
Will make baloorunner use 2.3GiB of memory




STEPS TO REPRODUCE
1. Open krunner
2. type very long operation (ex: 2+2*99999999...)
3. Notice steady increase in memory usage

OBSERVED RESULT
baloorunner fills up ram exponentially (eventually slowed my computer to a crawl)

EXPECTED RESULT
baloorunner doesn't use 32GiB of ram / limits the max size of calculation

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.8-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 31,0 GiB of RAM
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
*** Bug 511347 has been marked as a duplicate of this bug. ***