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

Trying to sign PDF results in exception #263

Closed zdavatz closed 1 year ago

zdavatz commented 1 year ago
  1. Trying to sign the PDF on another Mac (Intel CPU) results in the following exception:
    
    2023-07-13 11:25:43.184358+0300 AmiKo Desitin[3153:57276] received Auth Handle1 (null) D7T2Li2xQfYfpNQ6gSaT
    2023-07-13 11:25:43.199398+0300 AmiKo Desitin[3153:50833] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
    *** First throw call stack:
    (
    0   CoreFoundation                      0x00007ff81a5bf18a __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x00007ff81a0e542b objc_exception_throw + 48
    2   CoreFoundation                      0x00007ff81a6993ca -[__NSCFString characterAtIndex:].cold.1 + 0
    3   CoreFoundation                      0x00007ff81a6a4231 -[__NSPlaceholderDictionary initWithCapacity:].cold.1 + 0
    4   CoreFoundation                      0x00007ff81a4d6820 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 283
    5   CoreFoundation                      0x00007ff81a4d66eb +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
    6   AmiKo Desitin                       0x00000001016cbb68 -[MLePrescriptionPrepareWindowController preparePrescriptionFile] + 536
    7   AmiKo Desitin                       0x00000001016ca983 __51-[MLePrescriptionPrepareWindowController startFlow]_block_invoke.36 + 723
    8   AmiKo Desitin                       0x00000001016cb8c7 __62-[MLePrescriptionPrepareWindowController prepareSAMLIfNeeded:]_block_invoke + 167
    9   AppKit                              0x00007ff81df28a44 NSWindowEndWindowModalSession + 378
    10  AmiKo Desitin                       0x000000010169e95f __89-[MLADSwissSAMLWindowController webView:decidePolicyForNavigationAction:decisionHandler:]_block_invoke_2 + 159
    11  libdispatch.dylib                   0x0000000101bc569d _dispatch_call_block_and_release + 12
    12  libdispatch.dylib                   0x0000000101bc698e _dispatch_client_callout + 8
    13  libdispatch.dylib                   0x0000000101bd759b _dispatch_main_queue_drain + 1115
    14  libdispatch.dylib                   0x0000000101bd7132 _dispatch_main_queue_callback_4CF + 31
    15  CoreFoundation                      0x00007ff81a587205 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    16  CoreFoundation                      0x00007ff81a546f2f __CFRunLoopRun + 2452
    17  CoreFoundation                      0x00007ff81a545f31 CFRunLoopRunSpecific + 560
    18  HIToolbox                           0x00007ff823fc1dad RunCurrentEventLoopInMode + 292
    19  HIToolbox                           0x00007ff823fc1bbe ReceiveNextEventCommon + 657
    20  HIToolbox                           0x00007ff823fc1918 _BlockUntilNextEventMatchingListInModeWithFilter + 64
    21  AppKit                              0x00007ff81d5da5d0 _DPSNextEvent + 858
    22  AppKit                              0x00007ff81d5d947a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
    23  AppKit                              0x00007ff81d5cbae8 -[NSApplication run] + 586
    24  AppKit                              0x00007ff81d59fd02 NSApplicationMain + 817
    25  AmiKo Desitin                       0x00000001016444d2 main + 34
    26  dyld                                0x00007ff81a11241f start + 1903
    )
    2023-07-13 11:25:43.199934+0300 AmiKo Desitin[3153:50833] [General] An uncaught exception was raised
    2023-07-13 11:25:43.199994+0300 AmiKo Desitin[3153:50833] [General] *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
    2023-07-13 11:25:43.200085+0300 AmiKo Desitin[3153:50833] [General] (
    0   CoreFoundation                      0x00007ff81a5bf18a __exceptionPreprocess + 242
    1   libobjc.A.dylib                     0x00007ff81a0e542b objc_exception_throw + 48
    2   CoreFoundation                      0x00007ff81a6993ca -[__NSCFString characterAtIndex:].cold.1 + 0
    3   CoreFoundation                      0x00007ff81a6a4231 -[__NSPlaceholderDictionary initWithCapacity:].cold.1 + 0
    4   CoreFoundation                      0x00007ff81a4d6820 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 283
    5   CoreFoundation                      0x00007ff81a4d66eb +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
    6   AmiKo Desitin                       0x00000001016cbb68 -[MLePrescriptionPrepareWindowController preparePrescriptionFile] + 536
    7   AmiKo Desitin                       0x00000001016ca983 __51-[MLePrescriptionPrepareWindowController startFlow]_block_invoke.36 + 723
    8   AmiKo Desitin                       0x00000001016cb8c7 __62-[MLePrescriptionPrepareWindowController prepareSAMLIfNeeded:]_block_invoke + 167
    9   AppKit                              0x00007ff81df28a44 NSWindowEndWindowModalSession + 378
    10  AmiKo Desitin                       0x000000010169e95f __89-[MLADSwissSAMLWindowController webView:decidePolicyForNavigationAction:decisionHandler:]_block_invoke_2 + 159
    11  libdispatch.dylib                   0x0000000101bc569d _dispatch_call_block_and_release + 12
    12  libdispatch.dylib                   0x0000000101bc698e _dispatch_client_callout + 8
    13  libdispatch.dylib                   0x0000000101bd759b _dispatch_main_queue_drain + 1115
    14  libdispatch.dylib                   0x0000000101bd7132 _dispatch_main_queue_callback_4CF + 31
    15  CoreFoundation                      0x00007ff81a587205 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
    16  CoreFoundation                      0x00007ff81a546f2f __CFRunLoopRun + 2452
    17  CoreFoundation                      0x00007ff81a545f31 CFRunLoopRunSpecific + 560
    18  HIToolbox                           0x00007ff823fc1dad RunCurrentEventLoopInMode + 292
    19  HIToolbox                           0x00007ff823fc1bbe ReceiveNextEventCommon + 657
    20  HIToolbox                           0x00007ff823fc1918 _BlockUntilNextEventMatchingListInModeWithFilter + 64
    21  AppKit                              0x00007ff81d5da5d0 _DPSNextEvent + 858
    22  AppKit                              0x00007ff81d5d947a -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1214
    23  AppKit                              0x00007ff81d5cbae8 -[NSApplication run] + 586
    24  AppKit                              0x00007ff81d59fd02 NSApplicationMain + 817
    25  AmiKo Desitin                       0x00000001016444d2 main + 34
    26  dyld                                0x00007ff81a11241f start + 1903
    )
    libc++abi: terminating due to uncaught exception of type NSException
    (lldb) 
    ´´´
  2. If I restart the App then I can sign the PDF.