Sweeper777 / iEnglish2

iEnglish, remade in Swift 5
0 stars 0 forks source link

Crash when presenting photo library #13

Closed Sweeper777 closed 5 years ago

Sweeper777 commented 5 years ago

If I press the photo library button in camera controller, the app crashes, with the following in the log:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: key cannot be nil'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff23b98bde __exceptionPreprocess + 350
    1   libobjc.A.dylib                     0x00007fff503b5b20 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff23c2af71 _CFThrowFormattedException + 194
    3   CoreFoundation                      0x00007fff23c35ad3 -[__NSDictionaryM setObject:forKey:].cold.1 + 35
    4   CoreFoundation                      0x00007fff23bf93c6 -[__NSDictionaryM setObject:forKey:] + 1062
    5   Foundation                          0x00007fff25646b6c -[NSExtension _newExtensionContextAndGetConnection:assertion:inputItems:] + 317
    6   Foundation                          0x00007fff256468fa -[NSExtension _reallyBeginExtensionRequestWithInputItems:processAssertion:listenerEndpoint:completion:] + 67
    7   libdispatch.dylib                   0x0000000108534df0 _dispatch_call_block_and_release + 12
    8   libdispatch.dylib                   0x0000000108535d64 _dispatch_client_callout + 8
    9   libdispatch.dylib                   0x000000010853c60b _dispatch_lane_serial_drain + 788
    10  libdispatch.dylib                   0x000000010853d19b _dispatch_lane_invoke + 422
    11  libdispatch.dylib                   0x0000000108548a59 _dispatch_workloop_worker_thread + 722
    12  libsystem_pthread.dylib             0x00007fff5141c611 _pthread_wqthread + 421
    13  libsystem_pthread.dylib             0x00007fff5141c3fd start_wqthread + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Sweeper777 commented 5 years ago

Apparently I shouldn't have set the root view controller of the image picker...