Bug 395328

Summary: version 2.13.0
Product: [Applications] skrooge Reporter: Alain Carcel <alain.carcel>
Component: generalAssignee: Stephane MANKOWSKI <stephane>
Status: RESOLVED FIXED    
Severity: normal CC: stephane
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: 25.1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: htop scree shot

Description Alain Carcel 2018-06-13 17:36:32 UTC
Created attachment 113254 [details]
htop scree shot

hi,

Impossible to open account bank, then processor full load (100% one core/four) and turn all time (infinity). Force halt process skrooge.

Regards
Comment 1 Stephane MANKOWSKI 2018-06-13 18:02:30 UTC
Could you try this from a console?
export SKGTRACE=10
export SKGTRACEPERFO=1
skrooge > t.txt
Wait 30s
Ctrl + C
Send me t.txt by mail (stephane at mankowski dot fr)
Comment 2 Stephane MANKOWSKI 2018-06-15 16:36:18 UTC
Hi,

With you trace file, I am able to understand the reason of this loop.
In fact, this is not really a cpu loop, this is a very very very long computation.
Indeed, when you open the "Account" page, Skrooge tries to check your last reconciliation.
In your case, Skrooge has too check with all operation since 2013, so many operations.
You should be able to bypass this issue by changing the status of old operation to "reconciliated".

On my side, I will try to fix this.
Comment 3 Stephane MANKOWSKI 2018-06-16 11:13:01 UTC
Git commit 3ebc4d2e7107e869e5f73b9ec37cc14ee62c94ac by Stephane MANKOWSKI.
Committed on 16/06/2018 at 11:12.
Pushed by smankowski into branch 'master'.

Bad perfo in SKGAccountObject::getPossibleReconciliations when too many operations

M  +12   -0    skgbankmodeler/skgaccountobject.cpp

https://commits.kde.org/skrooge/3ebc4d2e7107e869e5f73b9ec37cc14ee62c94ac