Unused UIToolbar causes crash on some devices when an MKMapView is present

Originator:scelis
Number:rdar://15383244 Date Originated:04-Nov-2013 11:15 AM
Status:Closed Resolved:Yes
Product:iOS SDK Product Version:7.0.3
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
In iOS 7.0.3, it appears that an unused UIToolbar can cause a system crash when an MKMapView is present. This crash only occurs on certain devices. It appears to only affect the iPhone 4, the iPhone 4S, and the iPod Touch 5th Generation.

Steps to Reproduce:
1. On an iPhone 4 or iPhone 4S, create a UIViewController that displays a map.
2. In viewDidLoad of that view controller, create a black transparent UIToolbar but do nothing with it.
3. When the system attempts to layout and display that viewController, it crashes.

Expected Results:
I expect the view controller to display without crashing the app.

Actual Results:
The app crashes.

Version:
iOS 7.0.3

Notes:
Please see the attached Xcode project for a simple reproducible test case. Run the app on an iPhone 4S running iOS 7.0.3 and it should crash on launch.

Configuration:
iOS 7.0.3
iPhone 4
iPhone 4S
iPod Touch 5th Generation

Attachments:
'ToolbarCrash.zip' was successfully uploaded.

Comments

scelis

The test case no longer crashes on iOS 8 beta (Build 12A4265u) on my iPhone 4S. This issue has been verified as resolved and can be closed.

Apple Developer Relations

We believe this issue has been addressed. Please verify with iOS 8 beta (Build 12A4265u) release, and reply back with your results.

iOS 8 beta (Build 12A4265u) https://developer.apple.com/devcenter/ios/index.action Posted Date: June 2, 2014

If this issue is still occurring, please include any relevant logs, and or a test case with your update.

Logging Instructions/Test Case Requirements: https://developer.apple.com/bug-reporting/ios/


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!