Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] Dev Menu crashes iPad Simulator on 0.36 (UIAlertControllerStyleActionSheet exception) #10485

Closed
K-Leon opened this issue Oct 21, 2016 · 9 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@K-Leon
Copy link
Contributor

K-Leon commented Oct 21, 2016

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
@robclouth
Copy link
Contributor

Same here

@vovkasm
Copy link
Contributor

vovkasm commented Oct 25, 2016

Same for released v0.36.0

@K-Leon
Copy link
Contributor Author

K-Leon commented Oct 25, 2016

v0.36.0 release is still crashing for me too

@ide ide changed the title [IOS] Dev Menu crashes iPad Simulator on 0.36rc (UIAlertControllerStyleActionSheet exception) [iOS] Dev Menu crashes iPad Simulator on 0.36 (UIAlertControllerStyleActionSheet exception) Oct 25, 2016
@bganicky
Copy link

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

@bezenson
Copy link

I am getting error:

<Warning>: notify_suspend_pid() failed with error 7

@neiker
Copy link

neiker commented Oct 27, 2016

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

@neiker
Copy link

neiker commented Oct 27, 2016

Please, release a 0.36.1 with this: fd554c3

/cc
@mhorowitz @frantic

@mattlacey
Copy link

Applied the above change manually and it worked a treat.

@K-Leon
Copy link
Contributor Author

K-Leon commented Nov 2, 2016

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

@K-Leon K-Leon closed this as completed Nov 2, 2016
@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants