Bug 455735 - When editing a transaction, choosing a category from the list and confirming with 'Enter' resets it back to 'Asset'
Summary: When editing a transaction, choosing a category from the list and confirming ...
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-21 16:48 UTC by Dawid Wróbel
Modified: 2022-08-31 17:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Drop-down list misbehavior (3.85 MB, video/quicktime)
2022-07-10 22:15 UTC, Dawid Wróbel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dawid Wróbel 2022-06-21 16:48:20 UTC
SUMMARY
When editing an imported transaction, choosing a category from the list and confirming with 'Enter' resets it back to 'Asset'. This does not happen if the category is chosen with a mouse cursor. 

STEPS TO REPRODUCE
1. Edit an imported transaction that does not yet have a Category assigned
2. Use 'Tab' to move to 'Category' field
3. Choose a category by typing first letters and/or with arrows, confirm with Enter

OBSERVED RESULT
As soon as the 'Enter' is pressed, the category is reset back to root 'Asset' node

EXPECTED RESULT
The selected category should be left assigned
Comment 1 Thomas Baumgart 2022-06-22 16:43:48 UTC
This works for me. Maybe, it has something to do with the specific environment (e.g. Qt Version). I am on Linux, Qt 5.12.7 and KF5 5.76
Comment 2 Dawid Wróbel 2022-06-22 16:48:14 UTC
Qt is 5.15.2
KF5 5.95.0
Comment 3 Bug Janitor Service 2022-07-07 04:36:59 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Thomas Baumgart 2022-07-07 04:48:29 UTC
Maybe, the behavior you describe is related to MacOS (which I don't have access to).
Comment 5 Dawid Wróbel 2022-07-10 22:15:52 UTC
Created attachment 150522 [details]
Drop-down list misbehavior

So I noticed today that it happens with mouse selection at times, too, except slightly differently and only for some accounts. Even more weirdly, it can be reset by choosing another account from the list.
Comment 6 Bug Janitor Service 2022-07-25 04:36:19 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Jack 2022-08-07 21:25:18 UTC
It just happened to me - but only if I tab out of the category dropdown, not if I select the value with Enter.  Also, when I do tab out of the category field, that field continues to show the correct category - it is just not retained when saving the transaction.
KMyMoney Version 5.1.80-932e4a272
KDE Frameworks 5.96.0,  QT 5.15.5 (Gentoo Linux)

Note that I thought it happened earlier when selecting the category with Enter, but I was unable to replicate that behavior when creating several more transactions.  So far I have only replicated this once, so I can't tell if it is completely consistent or not.
Comment 8 Dawid Wróbel 2022-08-31 17:06:26 UTC
More misbehavior: the app crashed after I pressed ESC after it no longer showed any categories despite typing (this happens quite frequently)



Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0xa00007fb7feec6b0 -> 0x000007fb7feec6b0 (possible pointer authentication failure)
Exception Codes:       0x0000000000000001, 0xa00007fb7feec6b0
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process:   exc handler [53815]

VM Region Info: 0x7fb7feec6b0 is not in any region.  Bytes after previous region: 8295728203441  Bytes before following region: 131651409623376
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      commpage (reserved)        1000000000-7000000000   [384.0G] ---/--- SM=NUL  ...(unallocated)
--->  GAP OF 0x7f47fb700000 BYTES
      MALLOC_TINY              7fb7fb700000-7fb7fb800000 [ 1024K] rw-/rwx SM=PRV  

Kernel Triage:
VM - Fault hit memory shortage
VM - Fault hit memory shortage
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   QtCore                        	       0x1193055b8 QObject::blockSignals(bool) + 8
1   QtWidgets                     	       0x11187ebed QComboBox::hidePopup() + 909
2   QtWidgets                     	       0x11187881e QComboBoxPrivateContainer::eventFilter(QObject*, QEvent*) + 606
3   QtCore                        	       0x1192dc9f9 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 249
4   QtWidgets                     	       0x11177cc91 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 241
5   QtWidgets                     	       0x11177e213 QApplication::notify(QObject*, QEvent*) + 915
6   QtCore                        	       0x1192dc727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
7   QtWidgets                     	       0x1117d38fd QWidgetWindow::event(QEvent*) + 301
8   QtWidgets                     	       0x11177cca6 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
9   QtWidgets                     	       0x11177e060 QApplication::notify(QObject*, QEvent*) + 480
10  QtCore                        	       0x1192dc727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
11  QtGui                         	       0x118294067 QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) + 167
12  QtGui                         	       0x1182752a7 QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) + 503
13  libqcocoa.dylib               	       0x123658fd9 -[QNSView(Keys) handleKeyEvent:eventType:] + 1321
14  libqcocoa.dylib               	       0x1236590f8 -[QNSView(Keys) keyDown:] + 88
15  AppKit                        	    0x7ff8152d8f56 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 7150
16  AppKit                        	    0x7ff8152d714e -[NSWindow(NSEventRouting) sendEvent:] + 352
17  libqcocoa.dylib               	       0x12365d3c7 -[QNSPanel sendEvent:] + 551
18  AppKit                        	    0x7ff8152d5f78 -[NSApplication(NSEvent) sendEvent:] + 2996
19  libqcocoa.dylib               	       0x1236631ba -[QNSApplication sendEvent:] + 74
20  AppKit                        	    0x7ff815417487 -[NSApplication _doModalLoop:peek:] + 364
21  AppKit                        	    0x7ff81558eb92 __33-[NSApplication runModalSession:]_block_invoke_2 + 69
22  AppKit                        	    0x7ff81558eb3a __33-[NSApplication runModalSession:]_block_invoke + 78
23  AppKit                        	    0x7ff8154157be _NSTryRunModal + 100
24  AppKit                        	    0x7ff81558ea37 -[NSApplication runModalSession:] + 128
25  libqcocoa.dylib               	       0x12365f487 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 663
26  QtCore                        	       0x1192d8d17 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 471
27  QtWidgets                     	       0x11197ab08 QDialog::exec() + 504
28  kmymoney                      	       0x104adf957 0x1049d9000 + 1075543
29  QtCore                        	       0x11930cfd4 void doActivate<false>(QObject*, int, void**) + 1124
30  QtCore                        	       0x11930cfd4 void doActivate<false>(QObject*, int, void**) + 1124
31  QtWidgets                     	       0x1117736d6 QAction::activate(QAction::ActionEvent) + 310
32  QtWidgets                     	       0x1118640a0 QAbstractButtonPrivate::click() + 144
33  QtWidgets                     	       0x11186529e QAbstractButton::mouseReleaseEvent(QMouseEvent*) + 270
34  QtWidgets                     	       0x11195f8af QToolButton::mouseReleaseEvent(QMouseEvent*) + 15
35  QtWidgets                     	       0x1117b62db QWidget::event(QEvent*) + 443
36  QtWidgets                     	       0x11196006f QToolButton::event(QEvent*) + 303
37  QtWidgets                     	       0x11177cca6 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
38  QtWidgets                     	       0x11177f997 QApplication::notify(QObject*, QEvent*) + 6935
39  QtCore                        	       0x1192dc727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
40  QtWidgets                     	       0x11177d5ac QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 892
41  QtWidgets                     	       0x1117d4c64 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 1908
42  QtWidgets                     	       0x1117d38bf QWidgetWindow::event(QEvent*) + 239
43  QtWidgets                     	       0x11177cca6 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 262
44  QtWidgets                     	       0x11177e060 QApplication::notify(QObject*, QEvent*) + 480
45  QtCore                        	       0x1192dc727 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 167
46  QtGui                         	       0x1182933a7 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3559
47  QtGui                         	       0x118278e8c QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 204
48  libqcocoa.dylib               	       0x123660d68 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
49  CoreFoundation                	    0x7ff8127f737a __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
50  CoreFoundation                	    0x7ff8127f72e2 __CFRunLoopDoSource0 + 180
51  CoreFoundation                	    0x7ff8127f7060 __CFRunLoopDoSources0 + 242
52  CoreFoundation                	    0x7ff8127f5a70 __CFRunLoopRun + 892
53  CoreFoundation                	    0x7ff8127f5034 CFRunLoopRunSpecific + 562
54  HIToolbox                     	    0x7ff81b9115e6 RunCurrentEventLoopInMode + 292
55  HIToolbox                     	    0x7ff81b911213 ReceiveNextEventCommon + 283
56  HIToolbox                     	    0x7ff81b9110e5 _BlockUntilNextEventMatchingListInModeWithFilter + 70
57  AppKit                        	    0x7ff815165fad _DPSNextEvent + 927
58  AppKit                        	    0x7ff81516466a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394
59  AppKit                        	    0x7ff815156d19 -[NSApplication run] + 586
60  libqcocoa.dylib               	       0x12365fa1a QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2090
61  QtCore                        	       0x1192d8d17 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 471
62  QtCore                        	       0x1192dccc2 QCoreApplication::exec() + 130
63  kmymoney                      	       0x1049f32d7 0x1049d9000 + 107223
64  kmymoney                      	       0x1049f1d20 0x1049d9000 + 101664
65  dyld                          	       0x204dd352e start + 462

Thread 1:: com.apple.rosetta.exceptionserver
0   runtime                       	    0x7ff7ffe5a944 0x7ff7ffe56000 + 18756
1   runtime                       	    0x7ff7ffe683e0 0x7ff7ffe56000 + 74720
2   runtime                       	    0x7ff7ffe69e58 0x7ff7ffe56000 + 81496

Thread 2:: com.apple.CFSocket.private
0   ???                           	    0x7ff8a2bc6940 ???
1   libsystem_kernel.dylib        	    0x7ff8126fcd5a __select + 10
2   CoreFoundation                	    0x7ff81281e2db __CFSocketManager + 643
3   libsystem_pthread.dylib       	    0x7ff8127314e1 _pthread_start + 125
4   libsystem_pthread.dylib       	    0x7ff81272cf6b thread_start + 15

Thread 3:: QDBusConnectionManager
0   ???                           	    0x7ff8a2bc6940 ???
1   libsystem_kernel.dylib        	    0x7ff8126fb0aa poll + 10
2   QtCore                        	       0x11933a00e qt_safe_poll(pollfd*, unsigned int, timespec const*) + 94
3   QtCore                        	       0x11933b85c QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 812
4   QtCore                        	       0x1192d8d17 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 471
5   QtCore                        	       0x1191172fc QThread::exec() + 140
6   QtDBus                        	       0x11112bf93 QDBusConnectionManager::run() + 19
7   QtCore                        	       0x11911820a QThreadPrivate::start(void*) + 330
8   libsystem_pthread.dylib       	    0x7ff8127314e1 _pthread_start + 125
9   libsystem_pthread.dylib       	    0x7ff81272cf6b thread_start + 15

Thread 4:: com.apple.NSEventThread
0   ???                           	    0x7ff8a2bc6940 ???
1   libsystem_kernel.dylib        	    0x7ff8126f497a mach_msg_trap + 10
2   libsystem_kernel.dylib        	    0x7ff8126f4ce8 mach_msg + 56
3   CoreFoundation                	    0x7ff8127f7560 __CFRunLoopServiceMachPort + 319
4   CoreFoundation                	    0x7ff8127f5bf0 __CFRunLoopRun + 1276
5   CoreFoundation                	    0x7ff8127f5034 CFRunLoopRunSpecific + 562
6   AppKit                        	    0x7ff8152d39ce _NSEventThread + 132
7   libsystem_pthread.dylib       	    0x7ff8127314e1 _pthread_start + 125
8   libsystem_pthread.dylib       	    0x7ff81272cf6b thread_start + 15

Thread 5:
0   runtime                       	    0x7ff7ffe78814 0x7ff7ffe56000 + 141332

Thread 6:
0   runtime                       	    0x7ff7ffe78814 0x7ff7ffe56000 + 141332

Thread 7:
0   runtime                       	    0x7ff7ffe78814 0x7ff7ffe56000 + 141332

Thread 8:
0   runtime                       	    0x7ff7ffe78814 0x7ff7ffe56000 + 141332

Thread 9:
0   runtime                       	    0x7ff7ffe78814 0x7ff7ffe56000 + 141332


Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00000000ffffffff  rbx: 0x000000011d0012a8  rcx: 0xa00007fb7feec690  rdx: 0x00000000005e7d00
  rdi: 0x00007fb7fee8f8b0  rsi: 0x0000000000000000  rbp: 0x000000030d85af70  rsp: 0x000000030d85af70
   r8: 0x0000000000006f64   r9: 0x0000000000000000  r10: 0x00007fb85b700000  r11: 0x00007fb84cbd83d0
  r12: 0x00007fb7fee8ea10  r13: 0x00007fb7fee8f8b0  r14: 0x0000000000000000  r15: 0x00007fb85b727dc0
  rip: <unavailable>       rfl: 0x0000000000000203
 tmp0: 0x0000000119a0ace0 tmp1: 0x0000000112434c20 tmp2: 0x00000001193055b0


Binary Images:
       0x1190f6000 -        0x119599fff org.qt-project.QtCore (5.15) <c022575b-d6d4-319a-b599-4c0d7beb726a> /Applications/kmymoney.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
       0x11176a000 -        0x111badfff org.qt-project.QtWidgets (5.15) <5ddd64ab-f7c0-386f-abf4-195c862ce208> /Applications/kmymoney.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
       0x118259000 -        0x1186c0fff org.qt-project.QtGui (5.15) <48bd8885-4cf6-385a-837a-81b9b8c44329> /Applications/kmymoney.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
       0x123625000 -        0x1236d0fff libqcocoa.dylib (*) <c6f2c655-d204-3dbd-8118-d55ef2e94ba6> /Applications/kmymoney.app/Contents/PlugIns/platforms/libqcocoa.dylib
    0x7ff815127000 -     0x7ff815fb6fff com.apple.AppKit (6.9) <bcb46e9b-acd5-3b26-878f-a3988bc5df7e> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1049d9000 -        0x104c10fff org.kde.KMyMoney (5.1.80) <797dfcf9-5fb8-3771-9180-d7f45faab7ec> /Applications/kmymoney.app/Contents/MacOS/kmymoney
    0x7ff812778000 -     0x7ff812c78fff com.apple.CoreFoundation (6.9) <32d2d187-4e52-376e-bc07-245a48c37e2b> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7ff81b8e3000 -     0x7ff81bbd6fff com.apple.HIToolbox (2.1.1) <95eab511-8fc1-353a-ac8a-26aa19032e2e> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x204dce000 -        0x204e39fff dyld (*) <f71fb3ca-5fcc-3577-9457-b047888a46d1> /usr/lib/dyld
    0x7ff7ffe56000 -     0x7ff7ffe85fff runtime (*) <ef33add1-6b70-3cc9-8bbc-c8544b609d2b> /usr/libexec/rosetta/runtime
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
    0x7ff8126f3000 -     0x7ff81272afff libsystem_kernel.dylib (*) <792406fe-2224-3c14-ba9f-f076fd7839d2> /usr/lib/system/libsystem_kernel.dylib
    0x7ff81272b000 -     0x7ff812736fff libsystem_pthread.dylib (*) <f32b6d06-b156-3da0-b086-a31cf011362b> /usr/lib/system/libsystem_pthread.dylib
       0x111128000 -        0x111187fff org.qt-project.QtDBus (5.15) <a911a764-31d6-3db7-b382-3cd055361733> /Applications/kmymoney.app/Contents/Frameworks/QtDBus.framework/Versions/5/QtDBus