Bug 406220

Summary: Crash when deleting more than 5000 transactions at once
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.0.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.0.4

Description Thomas Baumgart 2019-04-04 15:21:52 UTC
SUMMARY
While deleting around 5800 transactions in one account at once KMyMoney crashes.

STEPS TO REPRODUCE
1. Open ledger of account
2. Select all transactions using Ctrl+A
3. Open context menu and select "Delete transactions"

OBSERVED RESULT
Operation starts (progress bar starts moving) and then crashes

EXPECTED RESULT
Should not crash but finish operation


ADDITIONAL INFORMATION
It seems that this happened on a transaction with two splits in the account and depends on the data on file.
Comment 1 Thomas Baumgart 2019-04-04 18:00:36 UTC
Git commit a4a39821bbea41228f6f7ee49d1d97f6f006ea8e by Thomas Baumgart.
Committed on 04/04/2019 at 18:00.
Pushed by tbaumgart into branch '5.0'.

Avoid crash when removing items from container
FIXED-IN: 5.0.4

M  +14   -10   kmymoney/views/kgloballedgerview_p.h

https://commits.kde.org/kmymoney/a4a39821bbea41228f6f7ee49d1d97f6f006ea8e