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

App can crash on action sheet presentation on iPad #583

Open
buddybuild bot opened this issue Aug 20, 2018 · 1 comment
Open

App can crash on action sheet presentation on iPad #583

buddybuild bot opened this issue Aug 20, 2018 · 1 comment
Labels

Comments

@buddybuild
Copy link

buddybuild bot commented Aug 20, 2018

Buddybuild detected a crash
Exception Class: NSGenericException

Your application has presented a UIAlertController (<UIAlertController: 0x100584c50>) 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.

External Code/ASIHttpRequest/iPhone Sample/main.m line 13

#import <UIKit/UIKit.h>

int main(int argc, char *argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    int retVal = UIApplicationMain(argc, argv, nil, nil); <-- CRASHED
    [pool release];
    return retVal;
}

[View File](https://github.com/steamclock/internetmap/blob/c3189add9f0835dc367ac36f04ee4e1e0390c484/External Code/ASIHttpRequest/iPhone Sample/main.m#L13) | View Full Crash Details

@buddybuild buddybuild bot added the 2.0.5 label Aug 20, 2018
@apike apike changed the title Buddybuild crash report on build #340 App can crash on action sheet presentation on iPad Aug 20, 2018
@nbrooke
Copy link
Member

nbrooke commented Aug 27, 2018

This appears to be an instance of some weirder bug that just the usual "didn't specify a location for the popover" that causes this. We never actually present any popovers of the type that is failing here. Best guess, the thing it's trying to present has been mangles in some way due to a memory corruption bug probably related to it getting deallocated early, per #585.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants