Bug 229245

Summary: Crash running Net Worth Today report
Product: [Applications] kmymoney Reporter: Tony B <tonyb.sfkde>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Crash BT
Crash report

Description Tony B 2010-03-03 13:54:10 UTC
Version:           SVN 1098272 (using KDE 4.3.1)
OS:                Linux
Installed from:    openSUSE RPMs

KMM crashes on running the Net Worth Today report. The crash seems to be in KDChart, which is surprising since I don't use charts. BT and anonymous file attached.
Comment 1 Tony B 2010-03-03 13:57:14 UTC
Created attachment 41283 [details]
Crash BT

I'll send the anon file to the M/L since it's too big for bugzilla.
Comment 2 Alvaro Soliverez 2010-03-06 01:19:41 UTC
I don't think the problem's in the Net Worth report. I deactived all components and it still crashes.

The crash is when loading the accountsmodel.
line 495 of accountsmodel.cpp:
foreach(const QModelIndex &index, parentsOnlyList) {
    removeRow(index.row(), index.parent());
  }

At some point, index becomes invalid, and it still tries to remove the row.
Comment 3 Alvaro Soliverez 2010-03-06 01:40:36 UTC
After updating, this appears to be solved in latest SVN. Please confirm.
Comment 4 Tony B 2010-03-06 14:02:09 UTC
Created attachment 41378 [details]
Crash report
Comment 5 Tony B 2010-03-06 14:03:06 UTC
Still crashing as of SVN1099972. I don't see any reference to accountsmodel in the BT.
Comment 6 Alvaro Soliverez 2010-03-06 16:07:09 UTC
Try deactivating all components on the home page and then load the file again and let's see if it crashes then.
It doesn't crash here.
Comment 7 Tony B 2010-03-07 17:45:03 UTC
Okay, since the abort seemed to be occurring in KDChart,I did a bit more investigation. I found that there were 3 different versions of libkmm_kdchart on my system which hadn't been uninstalled, probably my own fault. I got rid of them and re-installed from scratch. All works now.