zdavatz / amiko-osx

AmiKo Desitin for AmiKo OS X
https://apps.apple.com/ch/app/amiko-desitin/id708142753?mt=12
GNU General Public License v3.0
3 stars 2 forks source link

Selecting patient throws an error #256

Closed zdavatz closed 1 year ago

zdavatz commented 1 year ago
  1. Start the App.
  2. Select a patient.
  3. Selecting a patient does not work if I double click on the patient name.
    2023-07-11 09:09:25.868601+0200 AmiKo Desitin[4866:65855] 4554 Treffer in 2286ms
    2023-07-11 09:09:25.959805+0200 AmiKo Desitin[4866:65855] -[MLPrescriptionsAdapter listOfPrescriptionsForPatient:] MLPatient not defined
    2023-07-11 09:09:25.959840+0200 AmiKo Desitin[4866:65855] -[MLPrescriptionsAdapter listOfPrescriptionsForPatient:] MLPatient not defined
    2023-07-11 09:09:27.551099+0200 AmiKo Desitin[4866:65855] Metal API Validation Enabled
    2023-07-11 09:09:29.315048+0200 AmiKo Desitin[4866:65855] Patient findParticipantsKvg ''
    2023-07-11 09:09:48.043232+0200 AmiKo Desitin[4866:65855] [General] Row index -1 out of row range (numberOfRows: 1) for <NSTableView: 0x12a1ae200>
    2023-07-11 09:09:48.048075+0200 AmiKo Desitin[4866:65855] [General] (
    0   CoreFoundation                      0x0000000185767154 __exceptionPreprocess + 176
    1   libobjc.A.dylib                     0x00000001852864d4 objc_exception_throw + 60
    2   AppKit                              0x00000001889fa090 -[NSTableRowData _availableRowViewWhileUpdatingAtRow:] + 0
    3   AmiKo Desitin                       0x00000001027ad590 -[MLPatientSheetController tableViewSelectionDidChange:] + 196
    4   CoreFoundation                      0x00000001856e3180 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
    5   CoreFoundation                      0x000000018577eeec ___CFXRegistrationPost_block_invoke + 88
    6   CoreFoundation                      0x000000018577ee34 _CFXRegistrationPost + 440
    7   CoreFoundation                      0x00000001856b44cc _CFXNotificationPost + 704
    8   Foundation                          0x00000001866128f4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
    9   AppKit                              0x00000001889ff120 -[NSTableView _sendSelectionChangedNotificationForRows:columns:] + 196
    10  AppKit                              0x0000000188bbb0c8 -[NSTableView mouseDown:] + 3968
    11  AppKit                              0x0000000188ab02cc -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 3476
    12  AppKit                              0x0000000188a3af08 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 364
    13  AppKit                              0x0000000188a3abc8 -[NSWindow(NSEventRouting) sendEvent:] + 284
    14  AppKit                              0x0000000188a39f0c -[NSApplication(NSEvent) sendEvent:] + 1556
    15  AppKit                              0x0000000188c89fc4 -[NSApplication _handleEvent:] + 60
    16  AppKit                              0x0000000188901368 -[NSApplication run] + 500
    17  AppKit                              0x00000001888d8794 NSApplicationMain + 880
    18  AmiKo Desitin                       0x000000010274b804 main + 36
    19  dyld                                0x00000001852b7f28 start + 2236
    )
  4. After a couple of tries it works.
zdavatz commented 1 year ago
  1. Erst beim zweiten Mal Doppelklicken hat es geklappt und der Patient wurde ausgewählt.
  2. https://github.com/zdavatz/amiko-osx/assets/4953/3019795c-3891-4575-b311-81bc16b18cd9
  3. Vielleicht klicke ich zu langsam ;).