Bug 456339 - Fractional exponent freezes whole app
Summary: Fractional exponent freezes whole app
Status: RESOLVED WORKSFORME
Alias: None
Product: krunner
Classification: Plasma
Component: calculator (other bugs)
Version First Reported In: 5.24.5
Platform: Manjaro Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-04 23:52 UTC by tmpod
Modified: 2022-08-02 12:08 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 tmpod 2022-07-04 23:52:08 UTC
SUMMARY
(KDE Crash Tool didn't seem to do anything after pressing the report button...)

KRunner's calculator doesn't seem to be able to handle fractional exponents, like 0.5, 1.2, freezing completely right as you type the first decimal character (after the dot).


STEPS TO REPRODUCE
1. Open KRunner
2. Type "123**0.5"

OBSERVED RESULT
The whole KRunner interface freezes, and is kept on top of everything else. Looking at htop shows that pretty much all threads are dead, with exception of one which remains sleeping.

EXPECTED RESULT
It should show the correct result of exponentiation, in this case, ~11.09.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.10.117-1-MANJARO
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Comment 1 Nate Graham 2022-07-05 18:19:58 UTC
Cannot reproduce; maybe a qalculate issue?
Comment 2 David Edmundson 2022-07-05 18:21:44 UTC
>Cannot reproduce; maybe a qalculate issue?

It shouldn't be, qalculate runs in it's own thread.
Comment 3 tmpod 2022-07-05 19:07:23 UTC
(In reply to Nate Graham from comment #1)
> Cannot reproduce; maybe a qalculate issue?

Nothing of the sorts happens when I type the same expressions on `qalc`.
Comment 4 Alexander Lohnau 2022-08-01 15:56:19 UTC
You could try to disable the calculator runner and check if the problem is still reproducible
Comment 5 tmpod 2022-08-02 12:05:02 UTC
Just tested it again, and it seems to be fixed in KDE Frameworks 5.96.