Bug 216931 - Loop when checking schedules
Summary: Loop when checking schedules
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-01 13:37 UTC by David Houlden
Modified: 2010-01-21 21:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Anon file (102.39 KB, application/x-gzip)
2009-12-01 13:43 UTC, David Houlden
Details
gdb backtrace attached (6.60 KB, text/plain)
2009-12-01 19:45 UTC, David Houlden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Houlden 2009-12-01 13:37:44 UTC
Version:            (using KDE 4.3.3)
OS:                Linux

Latest SVN version.

When I attempted to open my kmy file today, kmymoney goes into a loop displaying a status of "checking for overdue scheduled transactions". Possibly connected to a number of scheduled transactions set up for the first of the month.

Anon file attached which shows the problem.
Comment 1 David Houlden 2009-12-01 13:43:36 UTC
Created attachment 38737 [details]
Anon file
Comment 2 Thomas Baumgart 2009-12-01 13:54:15 UTC
Tested anon file against KMyMoney's KDE3 version with settings enter transaction 0 days in advance and 14 days preview period. Noticed, that it takes a rather long time to get through the checking.

What are your settings wrt to schedules?
Comment 3 David Houlden 2009-12-01 14:08:36 UTC
In my KDE3 version it goes through the checking of schedules in about 2 seconds.
In both KDE3 and KDE4 I have enter transactions 0 days in advance with 5 days preview.
Comment 4 David Houlden 2009-12-01 19:45:51 UTC
Created attachment 38750 [details]
gdb backtrace attached
Comment 5 David Houlden 2009-12-02 11:21:27 UTC
Today, 2nd December I am able to open this file. I have not updated kmymoney. If I set my PC date back to 1st December then I get the problem as originally reported.
Comment 6 David Houlden 2009-12-02 12:20:28 UTC
Think I have found the reason for this. The problem only happens when I have payments displayed on the home page. If I deselect this option in the home page configuration the file opens ok with the date set to 1st December.
Comment 7 KMyMoney Devel Mailing List 2010-01-18 11:33:26 UTC
Does this still happen?
Comment 8 David Houlden 2010-01-18 20:21:38 UTC
I'll do some testing and report back.
Comment 9 David Houlden 2010-01-18 22:10:38 UTC
OK. Tested with latest svn as at today and with the anon file I attached to this bug report.
With the PC date set to 1st Dec 2009 it hangs as described earlier. Removing the home page option to display payments allows the file to load normally with the date set to 1st Dec 2009. Again as described earlier.
Could be something to do with schedule SCH00001 which ends on 1st Dec. If I let the file load with payments not displayed on the home page this schedule shows as finished in the scheduled transaction window. However, I am then unable to edit this schedule. If I right click on it and select edit, kmymoney hangs again.
Comment 10 KMyMoney Devel Mailing List 2010-01-18 23:17:59 UTC
There seems to be a problem in your file. Can you save it as anonymous file and attach it?
Comment 11 David Houlden 2010-01-19 00:00:40 UTC
Anon file is already attached. See comment #1 on this bug report.
Comment 12 Cristian Oneț 2010-01-21 21:17:50 UTC
SVN commit 1078229 by conet:

BUG: 216931
Only set the postDate of the transaction if a valid date was received (nextPaymentDate could return an invalid date).

 M  +3 -2      mymoneyscheduled.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1078229