Summary: | KMyMoney crashed when opening the 'Loan information' report after deleting the payee which is referenced by a loan | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Pedro Vaz <pedrovaz> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | pedrovaz |
Priority: | NOR | ||
Version: | 4.5.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
New crash information added by DrKonqi
Anon file that produces this defect |
Description
Pedro Vaz
2011-08-14 11:56:31 UTC
Could you please save the file in the anonymous data format http://kmymoney2.sourceforge.net/kde4/online-manual/details.formats.anonymous.html check that the crash can be reproduced with the anonymous file and attach it to this report or you could directly email it to me. This would make fixing this bug a lot easier. Thanks :). Created attachment 62875 [details]
New crash information added by DrKonqi
kmymoney (4.5.3) on KDE Platform 4.6.2 (4.6.2) using Qt 4.7.2
- What I was doing when the application crashed:
Opened 9.Informatio -> Loan Information report and it always crashes
-- Backtrace (Reduced):
#14 0x0844af3e in MyMoneySeqAccessMgr::payee (this=0xb2e2e68, id=...) at /build/buildd/kmymoney-4.5.3/kmymoney/mymoney/storage/mymoneyseqaccessmgr.cpp:167
#15 0x00257a39 in MyMoneyObjectContainer::payee (this=0xa4ee528, id=...) at /build/buildd/kmymoney-4.5.3/kmymoney/mymoney/mymoneyobjectcontainer.cpp:200
#16 0x0021a0ba in MyMoneyFile::payee (this=0x28456c, id=...) at /build/buildd/kmymoney-4.5.3/kmymoney/mymoney/mymoneyfile.cpp:905
#17 0x0819129a in reports::ObjectInfoTable::constructAccountLoanTable (this=0xbdc8080) at /build/buildd/kmymoney-4.5.3/kmymoney/reports/objectinfotable.cpp:315
#18 0x08198103 in reports::ObjectInfoTable::init (this=0xbdc8080) at /build/buildd/kmymoney-4.5.3/kmymoney/reports/objectinfotable.cpp:84
Created attachment 62876 [details]
Anon file that produces this defect
Thanks for the input data but I'm still not able to reproduce it using the current version from trunk. But the code that crashes was not changed for a long time. Looking at the stack trace the explanation is that the loan data contains a payee id which is not present in the payees list and that causes the exception to be thrown. Now looking at the xml file you've attached (I've tested it first but it did not crash) I see that the payees of each loan (A000339 with P000076 and A000308 with P000228) are correct and present in the payees list. Are you sure that your version crashes with the same file? The only way I could obtain your crash is by deleting the payee referenced by the loan and then opening the report, is this what you've done? Thomas, this is a case if dangling references in the engine, will you look at it? Encomendar um para o Músico ☺
On Aug 16, 2011, at 20:21 , Cristian Onet wrote:
> https://bugs.kde.org/show_bug.cgi?id=280071
>
>
>
>
>
> --- Comment #5 from Cristian Onet <onet cristian gmail com> 2011-08-16 18:21:56 ---
> Thomas, this is a case if dangling references in the engine, will you look at
> it?
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
> You reported the bug.
SVN commit 1247865 by conet: BUG: 280071 A payee could be referenced by a loan account. When a payee is deleted consider this reference also and update it according to the user's reassignment choice. Fixed the payee deletion code and added a step in the consistency check to fix files that where affected by this issue. M +27 -3 kmymoney.cpp M +17 -3 mymoney/mymoneyfile.cpp M +1 -4 reports/objectinfotable.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1247865 SVN commit 1247866 by conet: BUG: 280071 A payee could be referenced by a loan account. When a payee is deleted consider this reference also and update it according to the user's reassignment choice. Fixed the payee deletion code and added a step in the consistency check to fix files that where affected by this issue. Backported to the stable branch. M +27 -3 kmymoney.cpp M +17 -3 mymoney/mymoneyfile.cpp M +1 -4 reports/objectinfotable.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1247866 |