Bug 477376 - Unusual behavior
Summary: Unusual behavior
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kcalc
Classification: Applications
Component: general (other bugs)
Version First Reported In: 22.12.3
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Evan Teran
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-11-22 15:56 UTC by cent20
Modified: 2024-02-05 22:04 UTC (History)
1 user (show)

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


Attachments
I have launch several kcalc (328.20 KB, image/jpeg)
2023-11-22 15:56 UTC, cent20
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cent20 2023-11-22 15:56:33 UTC
Created attachment 163368 [details]
I have launch several kcalc

SUMMARY
I believe I have encountered a bug with KCalc and would like to report it. I've observed unusual behavior, 

When my system is idle, the average load is 0.42 (t=60sec), indicating that my system is consuming 42% of the resources of a CPU core.

However, when I launch KCalc, the CPU load spikes dramatically, as if the application is stuck in a loop calculating. Interestingly, if I move the calculator window, everything returns to normal.

Performing a simple calculation, such as multiplying 6 by 7, does not cause any CPU overload, but launching multiple instances of KCalc can saturate my system. Music playback continues without issues, but capturing screenshots and closing the offending applications becomes challenging.

I attempted to resolve the issue with the following steps, but they were unsuccessful:
sudo apt-get remove --purge kcalc
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install kcalc

I am using KCalc version 4:22.12.3-1 on an amd64 system.

STEPS TO REPRODUCE
Launch kcalc

OBSERVED RESULT
The CPU load increases and persists even though no computations are being performed.

EXPECTED RESULT
No CPU load

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version:  5.15.8
Qt Version: 6.1.0-13-amd64 (64-bit) X11

ADDITIONAL INFORMATION (many pictures)
https://twitter.com/nsi_xyz/status/1727345371439935665

Thank you, cent20
Comment 1 duha.bugs 2024-02-05 22:04:48 UTC
Thank you for the bug report and sorry for responding so late. The bug report is a bit unclear (debian stable but qt6?).  If you are using debian stable please report this to debian. 

If you are using plasma 6 and can reproduce please reopen this bug report.