Bug 408708 - Excessive cpu and memory usage
Summary: Excessive cpu and memory usage
Status: RESOLVED DUPLICATE of bug 407854
Alias: None
Product: kpat
Classification: Applications
Component: solver (show other bugs)
Version: 20.04
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-14 21:13 UTC by Brian Kaye
Modified: 2023-01-18 10:00 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Kaye 2019-06-14 21:13:45 UTC
SUMMARY Kpatience (kpat) excessive cpu usage in solver and memory hog


STEPS TO REPRODUCE
1. Random game
2. 
3. 

OBSERVED RESULTS
CPU usage goes to 100% on random moves. No response from game


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 29 
(available in About System)
KDE Plasma Version: kf5-plasma-devel.x86_64   5.58.0-1.fc29                              
KDE Frameworks Version: 5.58.0
Qt Version: 5.11.3 (built against 5.11.3)

ADDITIONAL INFORMATION

xcb windowing system
system becomes unresponsive
Occasionally uses all available memory on my 40GB memory and start using swap space. Never let it go to see if it will crash for lack of memory
Comment 1 coleclough.lucy 2020-04-04 14:35:59 UTC
Hi there, I have a similar problem. 
I am on debian 11 testing using 4.19
The problem for me is that the solver saves to my log in /var/log/messages
The sheer amount of logs produced by the solver maxes out my cpu and fills up my hard drive very quickly
Comment 2 nau 2020-04-10 19:45:25 UTC
Can confirm.  Playing spider is spamming .local/share/sddm/xorg-session.log.
Comment 3 laurent combe 2020-05-02 09:10:26 UTC
Same here. 

On a fresh Ubuntu 20.04 install
when kpat launched solver logs in /var/log/syslog
(in my case i play with the spider game)

more than 60Gb in few hours. To do the job my rsyslogd consume all the available CPU !! On a Terminal if i launch "kpat", on the stdout the solver logs, logs, logs indefinitely ...

Surprising to see this "game move data" stored in a system log file

Found an ubuntu bug for this issue : https://bugs.launchpad.net/ubuntu/+source/kpat/+bug/1851898
Comment 4 laurent combe 2020-05-02 09:23:20 UTC
duplicate of #407854 ?
Comment 5 esperee 2021-11-23 14:33:45 UTC
I'm using Windows10 21H1, and still suffer from this. Right after I shutdown KDE connect, the usage drop quickly.
Comment 6 Brian Kaye 2021-11-23 15:11:33 UTC
This problem no longer exists as far as I can tell on my Fedora 35 system. Have not noticed it for a couple or releases.

Using kpat-21.04.3-1.fc35.x86_64

Did not know you could run this on Windows.
Comment 7 Albert Astals Cid 2021-11-23 20:34:07 UTC
(In reply to esperee from comment #5)
> I'm using Windows10 21H1, and still suffer from this. Right after I shutdown
> KDE connect, the usage drop quickly.

Then maybe it's a KDE Connect-Windows bug?
Comment 8 Stephan Kulow 2023-01-18 10:00:38 UTC

*** This bug has been marked as a duplicate of bug 407854 ***