CALayer renderInContext: causing "Assertion failed: (transform_is_valid(m)), function CGPathRef CGPathCreateWithRect(CGRect, const CGAffineTransform *)" on iOS 8.2

Originator:sean
Number:rdar://19088023 Date Originated:27th November 2014
Status:Open Resolved:
Product:iOS Product Version:8.2
Classification: Reproducible:Yes
 
Summary:
When calling renderInContext: on a layer configured in a certain way in iOS 8.2 you will get an assertions with the message "Assertion failed: (transform_is_valid(m)), function CGPathRef CGPathCreateWithRect(CGRect, const CGAffineTransform *)".

This assertions does not occur in iOS 7.1.

Steps to Reproduce:
1. Extract the CGPathCreateWithRectAssertion.zip archive (attached).
2. Open the CGPathCreateWithRectAssertion Xcode project and run the app on the iOS 8.2 simulator.
3. Press the 'Snapshot' button (this invokes renderInContext:).


Expected Results:
A message "Successfully rendered view" should appear in the log

Actual Results:
The application will crash with an assertion "Assertion failed: (transform_is_valid(m)), function CGPathRef CGPathCreateWithRect(CGRect, const CGAffineTransform *)"


Version:
iOS 8.2

Notes:
If you run the application under iOS 7.1 the crash does not occur.

Configuration:
iOS simulator

Attachments:
'CGPathCreateWithRectAssertion.zip' was successfully uploaded.

Comments


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!