[Kmymoney-devel] [Bug 271914] Crash in Reports - Investment

allan agander93 at gmail.com
Thu Apr 28 17:45:25 CEST 2011


https://bugs.kde.org/show_bug.cgi?id=271914





--- Comment #2 from allan <agander93 gmail com>  2011-04-28 17:45:24 ---
Without changing the start date (3 Mar 2010) -
  Change end date to 27 Mar 2011 (from 27 Apr 2011) - Completes OK.
  Then change end date to 31 Mar 2011 - Crashes.

If I change end date to 28 Mar 2011 (from 27 Mar 2011) - Completes OK.
  Then change end date to 29 Mar 2011 - Crashes.
(In reply to comment #1)
> Without changing the start date (3 Mar 2010) -
>   Change end date to 27 Mar 2011 (from 27 Apr 2011) - Completes OK.
>   Then change end date to 31 Mar 2011 - Crashes.
> 
> If I change end date to 28 Mar 2011 (from 27 Mar 2011) - Completes OK.
>   Then change end date to 29 Mar 2011 - Crashes.

(In reply to comment #1)
> Without changing the start date (3 Mar 2010) -
>   Change end date to 27 Mar 2011 (from 27 Apr 2011) - Completes OK.
>   Then change end date to 31 Mar 2011 - Crashes.
> 
> If I change end date to 28 Mar 2011 (from 27 Mar 2011) - Completes OK.
>   Then change end date to 29 Mar 2011 - Crashes.

I had a peep at the code and saw that at the point of crash it was performing
the calculations, not getting the new date.  So I checked my data.  I disabled
all accounts and readded them one by one.  Needless to say, the last one was
the culprit.

My fund manager had decided to close down my original fund and incopporate it
in a larger one.  Previosly, I've handled this by a remove transaction followed
by an add transaction, but concerned that that might affect performance
reporting, this time, I did a sell and a buy, on the same day, and within the
same investment account.  The date was the 28 Mar., the last date that didn't
cause a crash.

So, I suspect that the crash occurred on handling the transaction for the new
fund on the day following the purchase, which was the end-date of the report.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list