Bug 171744 - Crash while budget report
Summary: Crash while budget report
Status: RESOLVED FIXED
Alias: None
Product: kmymoney2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Development Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-27 17:08 UTC by Roman
Modified: 2008-09-29 12:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Simple KMyMoney2 file (4.51 KB, application/x-gzip)
2008-09-27 21:14 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2008-09-27 17:08:37 UTC
Version:           0.9.2. (using KDE 3.5.9)
OS:                Linux
Installed from:    Compiled From Sources

When i just have entered data in the Budget, and then choose Yearly Budgeted vs Actual Graph report, the memory and cpu had been overflowing, so, the system became are very slowly, and after 2 minutes of it, the program has been aborted by the system, and my budget data have been lost.

So, i had one record in Budget before, and nothing like was happened.

I did reproduce the problem. I have Russian version, so, i try to translate checkbox names to English

In Budget tab ("Бюджеты") when the checkbox "Include sub-accounts" ("Включая субсчета") is checked in some accounts, and when in some sub-accounts has entered the data, then the crashes must be Ok.

For example:

Case 1

- The Cars       ("Include sub-accounts" ("Включая субсчета") is checked) 
  - Parking      (No data has been entered)
  - Fuel         (Some data has been entered)

In this case the crash will be repeat.

Case 2

- The Cars       ("Include sub-accounts" ("Включая субсчета") is not checked) 
  - Parking      (No data has been entered)
  - Fuel         (Some data has been entered)

In this case there is no crash.

Sincerely, Ram.
Comment 1 Alvaro Soliverez 2008-09-27 19:11:48 UTC
There is probably something odd in your file, because I have that option and it works fine here. There were problems with that option, but that was a long time ago, and they were corrected.

Are you trying the stock report? 

Can you post the log of the crash?

Also, perhaps I will have to ask you for an anonymized file to debug it further.
Comment 2 Roman 2008-09-27 21:14:15 UTC
Created attachment 27594 [details]
Simple KMyMoney2 file

The file was create by the KMyMoney2 0.9.2.
Comment 3 Roman 2008-09-27 21:52:26 UTC
I think, there is not. Because i have made a single file in which this problem 
repeated well (the file attached)

There are 3 steps to repeat the problem:

1. Check the Checkbox "Include Sub-aacounts" in the Budget tab, account "Main
Account".
2. Write a some value (1 for example) in the "January" textbox, account "Sub
Account 1"
3. Accepts the entered value and stores the budget.

In the reports tab, just call Yearly Budget vs Actual Graph

In my case, the problem repeating again and again.

PS. Sorry, i do not know how i could make the log of the crash, and what is 
the "stock report".
Comment 4 Alvaro Soliverez 2008-09-29 02:52:28 UTC
By "stock report" I meant the default report, without any additional configuration.

I tried your file, and it works fine here. I checked "Include subaccounts", then stored the value, and opened budget reports without problem. I also added values to the subaccounts and the reports worked ok.

Usually, when you get an application crash, you will have a window popup, telling you about it. In that same window you will have the option to see the log of the crash. That might take a while, but it could give us more info that may be useful to find what is going on.
Comment 5 Thomas Baumgart 2008-09-29 12:36:35 UTC
Fixed in CVS HEAD.