Summary: | Crash after account name change | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Jared B <jared.bishop> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | agander93, arto.kemppainen, debaux.manuel, lordcain2nd, mail, peer.frank, rvalkass, tilda |
Priority: | NOR | ||
Version: | 4.5.2 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Anon files to recreate |
Description
Jared B
2011-01-14 00:34:17 UTC
Just just had another crash of similar nature (though I was just navigating the ledger this time). I upgraded to new libc packages that were released on the kubuntu repos yesterday. Could that be related? *** Bug 267154 has been marked as a duplicate of this bug. *** *** Bug 263259 has been marked as a duplicate of this bug. *** *** Bug 271486 has been marked as a duplicate of this bug. *** *** Bug 264030 has been marked as a duplicate of this bug. *** Since this one appears to have a lot of duplicates, could we try to make this reproducible? An anon file would be nice :). Created attachment 60088 [details] Anon files to recreate Anon file attached. Bug 267154 probably has a better explaination of this as I didn't know what was causing it at the time I reported this: "moving a transaction from one account to another fails: moving (right mouse click) works, but KMM crashes when trying to open the target account". It is reproducible - anon files attached. (In reply to comment #7) > Created an attachment (id=60088) [details] > Anon files to recreate > > Anon file attached. > > Bug 267154 probably has a better explaination of this as I didn't know what was > causing it at the time I reported this: > > "moving a transaction from one account to another fails: moving (right mouse > click) works, but KMM crashes when trying to open the target account". > > It is reproducible - anon files attached. Could you please state what transactions you move from which account where from the one in the anonymous file? I'm asking because moving transaction works fine here. I'm running SVN trunk. Nevermind, I can see now what is going wrong, although I'm not able to reproduce it, just by looking at the code. KMyMoneySelector::ensureItemVisible's implementation itself can cause the crash by storing a pointer and using it later. The problem is that it could become invalid by then. I'll fix this later today. SVN commit 1232629 by conet: BUG: 263087 Remove the delayed scroll to item because storing a pointer to a tree view item and using it later (after the event loop has run) is a good way to obtain a crash. The reason why the delayed scroll to item was used in the first place is no longer valid from what I can see (the selected item is highlighted correctly in the account combo). Anyway it's better to have an item that is not highlighted then a crash. M +3 -3 kmymoneycompletion.cpp M +2 -23 kmymoneyselector.cpp M +0 -23 kmymoneyselector.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1232629 *** Bug 274162 has been marked as a duplicate of this bug. *** *** Bug 282750 has been marked as a duplicate of this bug. *** *** Bug 286438 has been marked as a duplicate of this bug. *** *** Bug 282929 has been marked as a duplicate of this bug. *** *** Bug 281311 has been marked as a duplicate of this bug. *** *** Bug 293606 has been marked as a duplicate of this bug. *** |