Bug 493449

Summary: Crash when editing and reconciling entries in ledger
Product: [Applications] kmymoney Reporter: Petr Kadlec <mormegil>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WORKSFORME    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.1.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Petr Kadlec 2024-09-21 16:43:55 UTC
Application: kmymoney (5.1.3)

Qt Version: 5.15.13
Frameworks Version: 5.115.0
Operating System: Linux 6.8.0-45-generic x86_64
Windowing System: X11
Distribution: Ubuntu 24.04.1 LTS
DrKonqi: 5.27.11 [KCrashBackend]

-- Information about the crash:
I was reconciling ledger entries, editing and merging the corresponding records, when suddenly KMyMoney window disappeared. Unfortunately, I do not recall which _exact_ operation I was doing at the time.

The reporter is unsure if this crash is reproducible.

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

[KCrash Handler]
#4  0x000072afac6b9842 in __dynamic_cast () at /lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x000055976d9b5dbe in TransactionEditor::~TransactionEditor (this=0x5597847c65f0, this=<optimized out>) at /usr/src/kmymoney-5.1.3-1build15/kmymoney/dialogs/transactioneditor.cpp:105
#6  0x000055976d9b80ff in StdTransactionEditor::~StdTransactionEditor (this=0x5597847c65f0, this=<optimized out>) at /usr/src/kmymoney-5.1.3-1build15/kmymoney/dialogs/stdtransactioneditor.cpp:99
#7  StdTransactionEditor::~StdTransactionEditor (this=0x5597847c65f0, this=<optimized out>) at /usr/src/kmymoney-5.1.3-1build15/kmymoney/dialogs/stdtransactioneditor.cpp:99
#8  0x000055976d885266 in KGlobalLedgerViewPrivate::deleteTransactionEditor (this=<optimized out>) at /usr/src/kmymoney-5.1.3-1build15/kmymoney/views/kgloballedgerview_p.h:1225
#9  0x000055976d898d77 in KGlobalLedgerView::slotCancelTransaction (this=0x55976ebc1f30) at /usr/src/kmymoney-5.1.3-1build15/kmymoney/views/kgloballedgerview.cpp:1616
#10 0x000055976d88ea80 in KGlobalLedgerView::slotCancelOrEnterTransactions (this=0x55976ebc1f30, okToSelect=@0x7ffda1e4dfbf: false) at /usr/src/kmymoney-5.1.3-1build15/kmymoney/views/kgloballedgerview.cpp:1359
#11 0x000072afacd12e16 in ??? () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x000055976d875931 in MousePressFilter::mousePressedOnExternalWidget (_t1=@0x7ffda1e4dfbf: false, this=0x55977039d220) at /usr/src/kmymoney-5.1.3-1build15/obj-x86_64-linux-gnu/kmymoney/views/views_autogen/EWIEGA46WW/moc_kgloballedgerview_p.cpp:153
#13 MousePressFilter::eventFilter (this=0x55977039d220, o=0x55976eb652c0, e=0x7ffda1e4e4b0) at /usr/src/kmymoney-5.1.3-1build15/obj-x86_64-linux-gnu/kmymoney/views/views_autogen/EWIEGA46WW/../../../../../kmymoney/views/kgloballedgerview_p.h:195
#14 0x000072afaccd7d5e in QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x000072afad96bd80 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x000072afad9746b0 in QApplication::notify(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x000072afaccd8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x000072afad972874 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x000072afad9caa39 in ??? () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x000072afad9cdfbf in ??? () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x000072afad96bd45 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x000072afaccd8118 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x000072afad145a3b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#24 0x000072afad117bfc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Gui.so.5
#25 0x000072afa5afcd06 in ??? () at /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#26 0x000072afaa8245b5 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x000072afaa883717 in ??? () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x000072afaa823a53 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x000072afacd35279 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x000072afaccd6a7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x000072afaccdf3e8 in QCoreApplication::exec() () at /lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x000055976d84d77a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/kmymoney-5.1.3-1build15/kmymoney/main.cpp:305
[Inferior 1 (process 60407) detached]

Reported using DrKonqi
Comment 1 Jack 2024-09-21 21:17:22 UTC
Have you tried to complete the reconciliation?  #5 in the traceback is called when you are done editing a transaction (usually by clicking OK or cancel.)  If you can replicate the crash, let us know exactly when it happens.  If you can edit several transactions without a crash, it's unlikely we can find the actual cause.
Comment 2 Petr Kadlec 2024-09-29 09:21:15 UTC
(In reply to Jack from comment #1)
> Have you tried to complete the reconciliation?  #5 in the traceback is
> called when you are done editing a transaction (usually by clicking OK or
> cancel.) 
Yes, after the crash, I restarted kmymoney and redid everything I wanted to do. Unfortunately, I can’t say which _exact_ operations I did prior to the crash.

> If you can edit several transactions without a crash, it's
> unlikely we can find the actual cause.
Yeah, I understand that, unless the stack trace hints to a specific issue, I’m afraid I am unable to provide more info.
Comment 3 Bug Janitor Service 2024-10-14 03:47:34 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2024-10-29 03:46:52 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.