https://bugs.kde.org/show_bug.cgi?id=448769
Bug ID: 448769
Summary: KCalc becomes unresponsive during computationally
complex calculations
Product: kcalc
Version: unspecified
Platform: Compiled Sources
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
When entering a computationally complex calculation, like e.g. the factorial of
123456789, the entire application becomes unresponsive. The program would
probably respond again once it's done calculating, though for absurdly complex
calculations that might just take longer than the lifetime of the universe.
STEPS TO REPRODUCE
1. In science mode, enter a large number (123456789).
2. Press "x!" (factorial)
OBSERVED RESULT
KCalc becomes unresponsive
EXPECTED RESULT
KCalc indicates it's working (using a status message or a "Working..."
animation), but the GUI stays responsive (can be resized, interacted with,
...). There should probably be a way to abort the calculation if it takes too
long, e.g. through an additional button (or maybe just by pressing "AC").
SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.2
ADDITIONAL INFORMATION/SPECULATION
I suspect that the GUI is waiting on whatever math function it calls to return.
To solve this issue, you'd probably have to have the math functions run in a
seperate thread.
--
You are receiving this mail because:
You are watching all bug changes.