steamclock / internetmap

The Cogeco Peer 1 Map of the Internet apps for iOS and Android.
MIT License
25 stars 14 forks source link

App can crash on action sheet presentation on iPad #583

Open buddybuild[bot] opened 6 years ago

buddybuild[bot] commented 6 years ago

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

nbrooke commented 6 years ago

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.