Bug 231029

Summary: kmymoney4 hangs after opening file
Product: [Applications] kmymoney Reporter: Ian Neal <iann_bugzilla>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: CLOSED FIXED    
Severity: crash CC: asoliverez
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Bzipped2 of anonymised version of main file

Description Ian Neal 2010-03-16 21:43:20 UTC
Version:           3.96.1 (using KDE 4.4.0)
Compiler:          gcc 4.4.1 
OS:                Linux
Installed from:    Fedora RPMs

Using latest svn build when I try and open my main kmymoney file it reaches 100%, then starts from the beginning again but showing 100% still. The bar progresses about 1/5 away along and then kmymoney hangs. At the bottom right it says "Loading currencies..."
I do have custom reports, but deleting those, in kmymoney2, makes no difference when opening in kmymoney4.
Comment 1 Alvaro Soliverez 2010-03-16 21:52:31 UTC
First of all, reinstall from scratch. 

Then, you can try this. I don't think it will work because it's when loading the currencies, but it's worth a shot. Open KMM with the -n option, go to configure and deactivate everything on the home page, and then try to load again. If it works, activate one by one to find the guilty component.
Comment 2 Ian Neal 2010-03-16 21:52:31 UTC
Created attachment 41699 [details]
Bzipped2 of anonymised version of main file

Bzipped2 version of file which demonstrates the issue.
Comment 3 Ian Neal 2010-03-16 22:10:19 UTC
(In reply to comment #1)
> First of all, reinstall from scratch. 
> 
> Then, you can try this. I don't think it will work because it's when loading
> the currencies, but it's worth a shot. Open KMM with the -n option, go to
> configure and deactivate everything on the home page, and then try to load
> again. If it works, activate one by one to find the guilty component.

The Payments one causes the issue. Unchecking the component means everything works, starting up without it checked works, but as soon as I check it, the app hangs.
Comment 4 Ian Neal 2010-03-16 22:24:15 UTC
Forecast (scheduled) also causes it to hang.
Comment 5 Alvaro Soliverez 2010-03-17 00:16:43 UTC
The problem is when it loads the schedules. SCH000042 seems to make the app get into a loop, but I can't find anything wrong with other than it being a one-time payment.
Comment 6 Ian Neal 2010-03-17 01:36:04 UTC
(In reply to comment #5)
> The problem is when it loads the schedules. SCH000042 seems to make the app get
> into a loop, but I can't find anything wrong with other than it being a
> one-time payment.

It's a scheduled payment that has finished, but it's final payment date is in the future (2010-04-01) and has already been entered into the ledger. (On a side note, scheduled transactions that have finished do not get their amounts made anonymous).
Comment 7 Thomas Baumgart 2010-03-17 08:02:20 UTC
On a side note: I am working on the anonimization fixes already.
Comment 8 Ian Neal 2010-03-18 00:33:52 UTC
I've checked builds back as far as 3rd Jan 2010 and have the same issue with all of them, so it's not a recent change that has caused it. I suppose I could try changing the date on my computer and see what happens with that.
Comment 9 Thomas Baumgart 2010-03-20 16:53:23 UTC
SVN commit 1105565 by tbaumgart:

Prevent some endless loops with schedules that are already finished.

BUG: 231029

 M  +5 -0      mymoneyforecast.cpp  
 M  +5 -5      mymoneyscheduled.cpp  
 M  +43 -0     mymoneyscheduletest.cpp  
 M  +2 -0      mymoneyscheduletest.h  
 M  +1 -1      storage/mymoneyseqaccessmgr.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1105565
Comment 10 Ian Neal 2010-03-20 20:05:26 UTC
Verified that it fixes my issue with latest svn build.