[kmymoney] [Bug 468108] New: ledger freeze on large account

Jonatan Cloutier bugzilla_noreply at kde.org
Mon Apr 3 04:06:59 BST 2023


https://bugs.kde.org/show_bug.cgi?id=468108

            Bug ID: 468108
           Summary: ledger freeze on large account
    Classification: Applications
           Product: kmymoney
           Version: git (master)
          Platform: Archlinux
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kmymoney-devel at kde.org
          Reporter: cloutier.jo at gmail.com
  Target Milestone: ---

Created attachment 157810
  --> https://bugs.kde.org/attachment.cgi?id=157810&action=edit
backtrace while freezed

SUMMARY
When trying to display any account ledger that has a large amount of
transaction (1k+) cpu goes to 100% and KMyMoney freeze and has to be killed.
Maybe I wasn't patient enough and it would have respond back, but more than a
few minutes would still make no sense.

Also, I'm guessing it related to the amount of transaction since it only happen
on a few of my larger account, but maybe some specific transaction that are
more likely to happen there or more reconciliation.

The culprit seems to be arround this:
#13 0x0000555555b452bc in
SpecialLedgerItemFilterPrivate::filterAcceptsRow(QModelIndex const&,
QModelIndex const&, int) const (rowCount=977, source_parent=..., idx=...,
this=<optimized out>)
    at /build/kmymoney/models/specialledgeritemfilter.cpp:288
#14 SpecialLedgerItemFilterPrivate::filterAcceptsRow(QModelIndex const&,
QModelIndex const&, int) const (this=<optimized out>, idx=<optimized out>,
source_parent=..., rowCount=<optimized out>)
    at /build/kmymoney/models/specialledgeritemfilter.cpp:217

and caused by
https://github.com/KDE/kmymoney/commit/281c9759045f2a7929264accb58638ed250cf418
or later (did rollback to  f3b33e9 and it work, haven't try forward reproducing
the issue.

STEPS TO REPRODUCE
1. open ledger on any large account, either from the account page or the ledger
itself switching to another tab

OBSERVED RESULT
freeze

EXPECTED RESULT
display the ledger

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: (available in About System) 5.104.0
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.15.18
Built statically through the docker compose provided, but ran locally on my
arch

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list