<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>468633</bug_id>
          
          <creation_ts>2023-04-17 21:04:55 +0000</creation_ts>
          <short_desc>segfault when hidding reconciliated transacion</short_desc>
          <delta_ts>2023-04-22 03:00:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>drkonqi</keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jonatan Cloutier">cloutier.jo</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/commit/60f113119ff2a080037ee6668c5764d8425daeb0</cf_commitlink>
          <cf_versionfixedin>5.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2223444</commentid>
    <comment_count>0</comment_count>
    <who name="Jonatan Cloutier">cloutier.jo</who>
    <bug_when>2023-04-17 21:04:55 +0000</bug_when>
    <thetext>Application: kmymoney (5.1.80-)

Qt Version: 5.15.8
Frameworks Version: 5.104.0
Operating System: Linux 6.2.8-arch1-1 x86_64
Windowing System: X11
Distribution: &quot;Arch Linux&quot;
DrKonqi: 5.27.3 [KCrashBackend]

-- Information about the crash:
When on the ledger with reconciled. If I got on the view menu and select &quot;hide reconcilated transaction&quot; (my own translation) KMyMoney crash.

This is using the master from today

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault

[KCrash Handler]
#4  0x000055ec99af17d8 in LedgerViewSettings::hideTransactionsBefore() const (this=0x55eca32c16a0) at /build/kmymoney/views/ledgerviewsettings.cpp:130
#5  0x000055ec99add021 in &lt;lambda()&gt;::operator() (__closure=0x55eca2f01760, __closure=0x55eca2f01760) at /build/kmymoney/views/ledgerviewpage.cpp:126
#6  QtPrivate::FunctorCall&lt;QtPrivate::IndexesList&lt;&gt;, QtPrivate::List&lt;&gt;, void, LedgerViewPage::initModel()::&lt;lambda()&gt; &gt;::call (arg=&lt;optimized out&gt;, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#7  QtPrivate::Functor&lt;LedgerViewPage::initModel()::&lt;lambda()&gt;, 0&gt;::call&lt;QtPrivate::List&lt;&gt;, void&gt; (arg=&lt;optimized out&gt;, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#8  QtPrivate::QFunctorSlotObject&lt;LedgerViewPage::initModel()::&lt;lambda()&gt;, 0, QtPrivate::List&lt;&gt;, void&gt;::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=&lt;optimized out&gt;, this_=0x55eca2f01750, r=&lt;optimized out&gt;, a=&lt;optimized out&gt;, ret=&lt;optimized out&gt;) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:443
#9  0x00007f4b430bea71 in  () at /usr/lib/libQt5Core.so.5
#10 0x00007f4b430bea71 in  () at /usr/lib/libQt5Core.so.5
#11 0x00007f4b430c0fcf in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/libQt5Core.so.5
#12 0x00007f4b430b1b56 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#13 0x00007f4b43d78b5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007f4b4308df48 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#15 0x00007f4b430d84b3 in QTimerInfoList::activateTimers() () at /usr/lib/libQt5Core.so.5
#16 0x00007f4b430d8aaa in  () at /usr/lib/libQt5Core.so.5
#17 0x00007f4b40b0f53b in g_main_dispatch (context=0x7f4b20000ee0) at ../glib/glib/gmain.c:3460
#18 g_main_context_dispatch (context=0x7f4b20000ee0) at ../glib/glib/gmain.c:4200
#19 0x00007f4b40b6c219 in g_main_context_iterate.constprop.0 (context=0x7f4b20000ee0, block=1, dispatch=1, self=&lt;optimized out&gt;) at ../glib/glib/gmain.c:4276
#20 0x00007f4b40b0e1a2 in g_main_context_iteration (context=0x7f4b20000ee0, may_block=1) at ../glib/glib/gmain.c:4343
#21 0x00007f4b430d8c6c in QEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /usr/lib/libQt5Core.so.5
#22 0x00007f4b430866ec in QEventLoop::exec(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;) () at /usr/lib/libQt5Core.so.5
#23 0x00007f4b43091219 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#24 0x000055ec9982443d in runKMyMoney(QUrl const&amp;, bool, QApplication&amp;) (file=..., noFile=noFile@entry=false, a=...) at /build/kmymoney/main.cpp:384
#25 0x000055ec9981e6a7 in main(int, char**) (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at /build/kmymoney/main.cpp:293
[Inferior 1 (process 3813812) detached]

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2223457</commentid>
    <comment_count>1</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2023-04-17 23:28:27 +0000</bug_when>
    <thetext>I tested with a build from master from several days ago and had some very strange results.  In one investment account, Ctl-R (do not show reconciled transactions) had no effect - reconciled transactions remained displayed, and no crash.  In the brokerage account for that investment account, Ctl-R did what it is supposed to do, still no crash.  I then tested in a cash account and got a crash.  I just updated git and am building again and will test with a wider variety of accounts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2223460</commentid>
    <comment_count>2</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2023-04-17 23:50:42 +0000</bug_when>
    <thetext>I confirm the crash, now in all accounts I&apos;ve tested.  BT looks the same as posted above.  I&apos;ll try a git bisect, but probably not until tomorrow.
Confirmed with kmymoney 5.1.80-7f771f516.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2223741</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2023-04-19 10:27:53 +0000</bug_when>
    <thetext>Git commit 60f113119ff2a080037ee6668c5764d8425daeb0 by Thomas Baumgart.
Committed on 19/04/2023 at 10:27.
Pushed by tbaumgart into branch &apos;master&apos;.

Fix crash when changing option
FIXED-IN: 5.2

M  +13   -7    kmymoney/models/specialledgeritemfilter.cpp
M  +5    -0    kmymoney/models/specialledgeritemfilter.h
M  +5    -4    kmymoney/views/ledgerviewpage.cpp

https://invent.kde.org/office/kmymoney/commit/60f113119ff2a080037ee6668c5764d8425daeb0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2224486</commentid>
    <comment_count>4</comment_count>
    <who name="Jonatan Cloutier">cloutier.jo</who>
    <bug_when>2023-04-22 02:20:49 +0000</bug_when>
    <thetext>I confirm it&apos;s fixed, thank you</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>