{"action":"closed","issue":{"url":"https://api.github.com/repos/defagos/CoconutKit/issues/32","labels_url":"https://api.github.com/repos/defagos/CoconutKit/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/defagos/CoconutKit/issues/32/comments","events_url":"https://api.github.com/repos/defagos/CoconutKit/issues/32/events","html_url":"https://github.com/defagos/CoconutKit/issues/32","id":104518412,"number":32,"title":"Crash on ViewController Lifecycle when running an app with a 3rd party keyboard","user":{"login":"matan23","id":2464490,"avatar_url":"https://avatars.githubusercontent.com/u/2464490?v=3","gravatar_id":"","url":"https://api.github.com/users/matan23","html_url":"https://github.com/matan23","followers_url":"https://api.github.com/users/matan23/followers","following_url":"https://api.github.com/users/matan23/following{/other_user}","gists_url":"https://api.github.com/users/matan23/gists{/gist_id}","starred_url":"https://api.github.com/users/matan23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matan23/subscriptions","organizations_url":"https://api.github.com/users/matan23/orgs","repos_url":"https://api.github.com/users/matan23/repos","events_url":"https://api.github.com/users/matan23/events{/privacy}","received_events_url":"https://api.github.com/users/matan23/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-02T16:16:59Z","updated_at":"2015-09-04T19:40:01Z","closed_at":"2015-09-04T19:40:01Z","body":"Hi,\r\n\r\nI have found an issue when using CoconutKit with a device having a 3rd party keyboard installed.\r\n\r\nIt crashes in UIViewController+HLSExtensions.m when keyboard is going to appear.\r\nFound the issue using master branch  (commit: 0332e94bb255af6efbea155f556a2b4c459a6c3c)\r\n\r\n_Exception_\r\nstatic void swizzle_viewDidLoad(UIViewController *self, SEL _cmd)\r\n{\r\n    if (! [self isViewLoaded]) {\r\n        @throw [NSException exceptionWithName:NSInternalInconsistencyException \r\n                                       reason:@\"The view controller's view has not been loaded\" \r\n                                     userInfo:nil];\r\n    }\r\n\r\n_Stacktrace_\r\n*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The view controller's view has not been loaded'\r\n\r\nLast Exception Backtrace:\r\n0   CoreFoundation                       0x00000001852242d8 __exceptionPreprocess + 132\r\n1   libobjc.A.dylib                      0x0000000196ef80e4 objc_exception_throw + 56\r\n2   Jobs                                 0x000000010029afe8 swizzled_UIViewController__viewDidLoad_Imp (UIViewController+HLSExtensions.m:244)\r\n3   UIKit                                0x0000000189c9cc18 -[UIViewController loadViewIfRequired] + 688\r\n4   UIKit                                0x0000000189c9c928 -[UIViewController view] + 28\r\n5   UIKit                                0x000000018a2c4164 -[_UIRemoteInputViewController viewDidInvalidateIntrinsicContentSize] + 20\r\n6   libdispatch.dylib                    0x0000000197575994 _dispatch_call_block_and_release + 20\r\n7   libdispatch.dylib                    0x0000000197575954 _dispatch_client_callout + 12\r\n8   libdispatch.dylib                    0x000000019757a20c _dispatch_main_queue_callback_4CF + 1604\r\n9   CoreFoundation                       0x00000001851db7f8 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8\r\n10  CoreFoundation                       0x00000001851d98a0 __CFRunLoopRun + 1488\r\n11  CoreFoundation                       0x00000001851052d4 CFRunLoopRunSpecific + 392\r\n12  GraphicsServices                     0x000000018eb5b6fc GSEventRunModal + 164\r\n13  UIKit                                0x0000000189d02f40 UIApplicationMain + 1484\r\n\r\nThanks."}}