keepassium / KeePassium

KeePass-compatible password manager for iOS
https://keepassium.com
Other
1.2k stars 103 forks source link

Keepassium 1.53.152 crashes when trying to search #379

Closed vit9696 closed 2 months ago

vit9696 commented 4 months ago

Description Current Testflight build crashes almost immediately after unlocking when searching for a login.

How to reproduce Steps to reproduce the behavior:

  1. Open Keepassium.
  2. Unlock database.
  3. Type login name in search field.
  4. Get crash soon after.

Expected behavior Thea app should filter login items.

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               KeePassium [66976]
Path:                  /Applications/KeePassium.app/Contents/MacOS/KeePassium
Identifier:            com.keepassium.ios
Version:               1.53 (152)
App Item ID:           1435127111
Code Type:             X86-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2024-07-19 19:10:43.2507 +0300
OS Version:            macOS 14.5 (23F79)
Report Version:        12
Anonymous UUID:        

Time Awake Since Boot: 2700000 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Termination Reason:    Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process:   KeePassium [66976]

Application Specific Information:
abort() called

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib              0x7ff80b21e14a __pthread_kill + 10
1   libsystem_pthread.dylib             0x7ff80b256ebd pthread_kill + 262
2   libsystem_c.dylib                   0x7ff80b17ca79 abort + 126
3   libc++abi.dylib                     0x7ff80b20f922 abort_message + 241
4   libc++abi.dylib                     0x7ff80b20212a demangling_terminate_handler() + 266
5   libobjc.A.dylib                     0x7ff80ae9f00a _objc_terminate() + 96
6   libc++abi.dylib                     0x7ff80b20ed7b std::__terminate(void (*)()) + 6
7   libc++abi.dylib                     0x7ff80b20ed36 std::terminate() + 54
8   libdispatch.dylib                   0x7ff80b0b5dd0 _dispatch_client_callout + 28
9   libdispatch.dylib                   0x7ff80b0c21df _dispatch_main_queue_drain + 984
10  libdispatch.dylib                   0x7ff80b0c1df9 _dispatch_main_queue_callback_4CF + 31
11  CoreFoundation                      0x7ff80b373e46 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
12  CoreFoundation                      0x7ff80b333075 __CFRunLoopRun + 2459
13  CoreFoundation                      0x7ff80b332112 CFRunLoopRunSpecific + 557
14  HIToolbox                           0x7ff815d4ba09 RunCurrentEventLoopInMode + 292
15  HIToolbox                           0x7ff815d4b646 ReceiveNextEventCommon + 201
16  HIToolbox                           0x7ff815d4b561 _BlockUntilNextEventMatchingListInModeWithFilter + 66
17  AppKit                              0x7ff80e9a2c61 _DPSNextEvent + 880
18  AppKit                              0x7ff80f2b6dc0 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1273
19  AppKit                              0x7ff80e994075 -[NSApplication run] + 603
20  AppKit                              0x7ff80e967ff3 NSApplicationMain + 816
21  AppKit                              0x7ff80ec1c307 _NSApplicationMainWithInfoDictionary + 16
22  UIKitMacHelper                      0x7ff82531dc07 UINSApplicationMain + 1329
23  UIKitCore                           0x7ff91b985988 UIApplicationMain + 144
24  KeePassium                             0x10121e45b 0x10121c000 + 9307
25  dyld                                0x7ff80aecb366 start + 1942

Thread 1:
0   libsystem_pthread.dylib             0x7ff80b252ac0 start_wqthread + 0

Thread 2:: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib              0x7ff80b2173ce mach_msg2_trap + 10
1   libsystem_kernel.dylib              0x7ff80b225c88 mach_msg2_internal + 84
2   libsystem_kernel.dylib              0x7ff80b21e510 mach_msg_overwrite + 653
3   libsystem_kernel.dylib              0x7ff80b2176bd mach_msg + 19
4   CoreFoundation                      0x7ff80b3341c5 __CFRunLoopServiceMachPort + 143
5   CoreFoundation                      0x7ff80b332c35 __CFRunLoopRun + 1371
6   CoreFoundation                      0x7ff80b332112 CFRunLoopRunSpecific + 557
7   Foundation                          0x7ff80c2e3b11 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 216
8   Foundation                          0x7ff80c361fd5 -[NSRunLoop(NSRunLoop) runUntilDate:] + 103
9   UIKitCore                           0x7ff91b986e27 -[UIEventFetcher threadMain] + 138
10  Foundation                          0x7ff80c2dcd9c __NSThread__start__ + 1013
11  libsystem_pthread.dylib             0x7ff80b25718b _pthread_start + 99
12  libsystem_pthread.dylib             0x7ff80b252ae3 thread_start + 15

Thread 3:: com.apple.NSEventThread
0   libsystem_kernel.dylib              0x7ff80b2173ce mach_msg2_trap + 10
1   libsystem_kernel.dylib              0x7ff80b225c88 mach_msg2_internal + 84
2   libsystem_kernel.dylib              0x7ff80b21e510 mach_msg_overwrite + 653
3   libsystem_kernel.dylib              0x7ff80b2176bd mach_msg + 19
4   CoreFoundation                      0x7ff80b3341c5 __CFRunLoopServiceMachPort + 143
5   CoreFoundation                      0x7ff80b332c35 __CFRunLoopRun + 1371
6   CoreFoundation                      0x7ff80b332112 CFRunLoopRunSpecific + 557
7   AppKit                              0x7ff80eb00bbc _NSEventThread + 122
8   libsystem_pthread.dylib             0x7ff80b25718b _pthread_start + 99
9   libsystem_pthread.dylib             0x7ff80b252ae3 thread_start + 15

Thread 4:
0   libsystem_pthread.dylib             0x7ff80b252ac0 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib             0x7ff80b252ac0 start_wqthread + 0

Thread 6:
0   libsystem_pthread.dylib             0x7ff80b252ac0 start_wqthread + 0

Thread 7:
0   libsystem_pthread.dylib             0x7ff80b252ac0 start_wqthread + 0

Thread 8:: CVDisplayLink
0   libsystem_kernel.dylib              0x7ff80b219f7a __psynch_cvwait + 10
1   libsystem_pthread.dylib             0x7ff80b2576f3 _pthread_cond_wait + 1211
2   CoreVideo                           0x7ff8140e6c12 CVDisplayLink::runIOThread() + 752
3   libsystem_pthread.dylib             0x7ff80b25718b _pthread_start + 99
4   libsystem_pthread.dylib             0x7ff80b252ae3 thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007ff7bece1e88  rdx: 0x0000000000000000
  rdi: 0x0000000000000103  rsi: 0x0000000000000006  rbp: 0x00007ff7bece1eb0  rsp: 0x00007ff7bece1e88
   r8: 0x00007ff7bece1d50   r9: 0x00007ff7bece1fb0  r10: 0x0000000000000000  r11: 0x0000000000000246
  r12: 0x0000000000000103  r13: 0x0000003000000008  r14: 0x00007ff84e797fc0  r15: 0x0000000000000016
  rip: 0x00007ff80b21e14a  rfl: 0x0000000000000246  cr2: 0x0000000000000000

Environment:

keepassium commented 4 months ago

Yeah, sorry, my bad. I will patch this over the next couple of days.

keepassium commented 4 months ago

The fix is already in TestFlight, I'll update the repo now.

keepassium commented 4 months ago

Nope, still crashes when search results shrink from groups+entries to entries only. Reopening.

keepassium commented 2 months ago

Oddly enough, I could not replicate my crash since the last comment…

If it still occurs in 1.53.154, please report.