React-native: [iOS] Dev Menu crashes iPad Simulator on 0.36 (UIAlertControllerStyleActionSheet exception)

Created on 21 Oct 2016  路  9Comments  路  Source: facebook/react-native

Issue Description

In current stable everything works like expected - after updating to 0.36 Dev Menu fails in Simulator. Reverting to current stable fixes it.

I get the following crashlog:

*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Your application has presented a UIAlertController (<UIAlertController: 0x7fd5e34b2f40>) of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'
    *** First throw call stack:
    (
        0   CoreFoundation                      0x000000010df2bd85 __exceptionPreprocess + 165
        1   libobjc.A.dylib                     0x000000010d55edeb objc_exception_throw + 48
        2   UIKit                               0x0000000110629396 -[UIPopoverPresentationController presentationTransitionWillBegin] + 3407
        3   UIKit                               0x000000010fdbff44 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2035
        4   UIKit                               0x000000010fdbdb76 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 309
        5   UIKit                               0x000000010fc5bf62 _runAfterCACommitDeferredBlocks + 317
        6   UIKit                               0x000000010fc6fe4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 95
        7   UIKit                               0x000000010fc7c147 _afterCACommitHandler + 90
        8   CoreFoundation                      0x000000010de50c37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        9   CoreFoundation                      0x000000010de50ba7 __CFRunLoopDoObservers + 391
        10  CoreFoundation                      0x000000010de467fb __CFRunLoopRun + 1147
        11  CoreFoundation                      0x000000010de460f8 CFRunLoopRunSpecific + 488
        12  GraphicsServices                    0x0000000113e2ead2 GSEventRunModal + 161
        13  UIKit                               0x000000010fc4ff09 UIApplicationMain + 171
        14  MyApp                            0x000000010b67ee0f main + 111
        15  libdyld.dylib                       0x000000011189192d start + 1

Steps to Reproduce / Code Snippets

Launch APP in Simulator, Press CMD + D or Shake Gesture => CRASH

Additional Information

  • React Native version: v0.36.0-rc.1
  • Platform(s) (iOS, Android, or both?): iOS
  • Operating System (macOS, Linux, or Windows?): macOS
Locked

Most helpful comment

Please, release a 0.36.1 with this: https://github.com/facebook/react-native/commit/fd554c31c7bcb2aae5c7d6a64e5bef9bedf56ebb

/cc
@mhorowitz @frantic

All 9 comments

Same here

Same for released v0.36.0

v0.36.0 release is still crashing for me too

Same thing happens when run on device (iPad Air in my case) as well.

I am getting error:

<Warning>: notify_suspend_pid() failed with error 7

yep! Same here, it crash on emulators and real devices too

Please, release a 0.36.1 with this: https://github.com/facebook/react-native/commit/fd554c31c7bcb2aae5c7d6a64e5bef9bedf56ebb

/cc
@mhorowitz @frantic

Applied the above change manually and it worked a treat.

Thx for the fast fix. I'll close this issue.

Was this page helpful?
0 / 5 - 0 ratings