-[CALayer renderInContext:] never returns on retina devices
| Originator: | green | ||
| Number: | rdar://18035795 | Date Originated: | August 15, 2014 |
| Status: | Duplicate | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 7.1 |
| Classification: | Reproducible: | Always |
Summary: Trying to generate an image using -[CALayer renderInContext:] never returns _if_ the layer has zero width, zero height, a corner radius, a border width _and_ the app is running on a retina device. Steps to Reproduce: Run the attached Xcode project in a retina simulator. Expected Results: -[CALayer renderInContext:] returns and has the same behaviour as non-retina devices. Actual Results: -[CALayer renderInContext:] enters into an infinite loop inside CG::Cubic::is_near and never leaves the function. The app is eventually killed by the watchdog timer (0x8badf00d). Version: iOS 7.1 Notes: Our app creates 3 of these empty layers in -loadView and skips them in -layoutSubviews because they have no content to display. If the user taps a bookmark, the app captures a snapshot of the current view hierarchy before navigating away. Configuration: Retina simulator (32-bit or 64-bit) Attachments: 'CoreGraphicsFreeze.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!