{"action":"created","issue":{"url":"https://api.github.com/repos/jonkykong/SideMenu/issues/107","repository_url":"https://api.github.com/repos/jonkykong/SideMenu","labels_url":"https://api.github.com/repos/jonkykong/SideMenu/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/jonkykong/SideMenu/issues/107/comments","events_url":"https://api.github.com/repos/jonkykong/SideMenu/issues/107/events","html_url":"https://github.com/jonkykong/SideMenu/issues/107","id":193256666,"number":107,"title":"Crash when presenting UISideMenuNavigationController under specific circumstances","user":{"login":"waninkoko","id":76762,"avatar_url":"https://avatars.githubusercontent.com/u/76762?v=3","gravatar_id":"","url":"https://api.github.com/users/waninkoko","html_url":"https://github.com/waninkoko","followers_url":"https://api.github.com/users/waninkoko/followers","following_url":"https://api.github.com/users/waninkoko/following{/other_user}","gists_url":"https://api.github.com/users/waninkoko/gists{/gist_id}","starred_url":"https://api.github.com/users/waninkoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waninkoko/subscriptions","organizations_url":"https://api.github.com/users/waninkoko/orgs","repos_url":"https://api.github.com/users/waninkoko/repos","events_url":"https://api.github.com/users/waninkoko/events{/privacy}","received_events_url":"https://api.github.com/users/waninkoko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-03T01:42:10Z","updated_at":"2016-12-03T02:20:21Z","closed_at":null,"body":"I have detected a problem (well, not me, my users did) when presenting a UISideMenuNavigationController in a specific scenario.\r\n\r\nThis happens if I do the following steps:\r\n\r\n- Present the UISideMenuNavigationController (with a gesture or pressing a button... it's indifferent)\r\n- From this UISideMenuNavigationController, I present a view controller (e.g.: UIAlertViewController or MFMailComposeViewController)\r\n- While this view controller is showing, I press the home button\r\n- I go back to the app\r\n- At this moment, the UISideMenuNavigationController is hidden and looks like the view controller I presented is... dismissed?\r\n- Now, if I try to present the UISideMenuNavigationController again... crash!\r\n\r\nAnd this is the crash log:\r\n\r\n```\r\n*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present modally an active controller <Wiseplay.SideMenuViewController: 0x1f12dba0>.'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x09504212 __exceptionPreprocess + 194\r\n\t1   libobjc.A.dylib                     0x08ba8e66 objc_exception_throw + 52\r\n\t2   UIKit                               0x05456975 -[UIViewController _presentViewController:withAnimationController:completion:] + 5740\r\n\t3   UIKit                               0x05459b5a __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 363\r\n\t4   UIKit                               0x05459ec3 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 535\r\n\t5   UIKit                               0x054599a8 -[UIViewController presentViewController:animated:completion:] + 182\r\n\t6   SideMenu                            0x04f5017c _TZFC8SideMenu18SideMenuTransition20handlePresentMenuPanfCSo22UIPanGestureRecognizerT_ + 2284\r\n\t7   SideMenu                            0x04f4f74c _TZFC8SideMenu18SideMenuTransition31handlePresentMenuLeftScreenEdgefCSo32UIScreenEdgePanGestureRecognizerT_ + 76\r\n\t8   SideMenu                            0x04f4f7e7 _TToZFC8SideMenu18SideMenuTransition31handlePresentMenuLeftScreenEdgefCSo32UIScreenEdgePanGestureRecognizerT_ + 55\r\n\t9   UIKit                               0x058304c7 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 64\r\n\t10  UIKit                               0x05838eea _UIGestureRecognizerSendTargetActions + 109\r\n\t11  UIKit                               0x0583657a _UIGestureRecognizerSendActions + 288\r\n\t12  UIKit                               0x05835434 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 1059\r\n\t13  UIKit                               0x0581fe74 _UIGestureEnvironmentUpdate + 1461\r\n\t14  UIKit                               0x0581f877 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 494\r\n\t15  UIKit                               0x0581ea21 -[UIGestureEnvironment _updateGesturesForEvent:window:] + 259\r\n\t16  UIKit                               0x052ee3b3 -[UIWindow sendEvent:] + 4276\r\n\t17  UIKit                               0x05294d88 -[UIApplication sendEvent:] + 395\r\n\t18  UIKit                               0x05b3c25d __dispatchPreprocessedEventFromEventQueue + 3706\r\n\t19  UIKit                               0x05b3433f __handleEventQueue + 5345\r\n\t20  CoreFoundation                      0x094a3cbf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n\t21  CoreFoundation                      0x09487df7 __CFRunLoopDoSources0 + 519\r\n\t22  CoreFoundation                      0x09487284 __CFRunLoopRun + 1124\r\n\t23  CoreFoundation                      0x09486bab CFRunLoopRunSpecific + 395\r\n\t24  CoreFoundation                      0x09486a0b CFRunLoopRunInMode + 123\r\n\t25  GraphicsServices                    0x0bb7fb4c GSEventRunModal + 177\r\n\t26  GraphicsServices                    0x0bb7f9c7 GSEventRun + 80\r\n\t27  UIKit                               0x0527432b UIApplicationMain + 148\r\n\t28  MyApp                               0x0011d3e1 main + 145\r\n\t29  libdyld.dylib                       0x0ac10799 start + 1\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n```"},"comment":{"url":"https://api.github.com/repos/jonkykong/SideMenu/issues/comments/264609072","html_url":"https://github.com/jonkykong/SideMenu/issues/107#issuecomment-264609072","issue_url":"https://api.github.com/repos/jonkykong/SideMenu/issues/107","id":264609072,"user":{"login":"jonkykong","id":5727743,"avatar_url":"https://avatars.githubusercontent.com/u/5727743?v=3","gravatar_id":"","url":"https://api.github.com/users/jonkykong","html_url":"https://github.com/jonkykong","followers_url":"https://api.github.com/users/jonkykong/followers","following_url":"https://api.github.com/users/jonkykong/following{/other_user}","gists_url":"https://api.github.com/users/jonkykong/gists{/gist_id}","starred_url":"https://api.github.com/users/jonkykong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonkykong/subscriptions","organizations_url":"https://api.github.com/users/jonkykong/orgs","repos_url":"https://api.github.com/users/jonkykong/repos","events_url":"https://api.github.com/users/jonkykong/events{/privacy}","received_events_url":"https://api.github.com/users/jonkykong/received_events","type":"User","site_admin":false},"created_at":"2016-12-03T02:20:21Z","updated_at":"2016-12-03T02:20:21Z","body":"@waninkoko Verified this is occurring in the demo project as well. I have a fix prepared and will update it when I have a chance to incorporate outstanding pull requests."}}
{"actor":{"display_login":"jonkykong"}}