Modifying the angle value on a UIGravityBehavior can lead to a crash
| Originator: | jerry | ||
| Number: | rdar://15827347 | Date Originated: | Jan-15-2014 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 7 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: If the dynamicAnimator to which a UIGravityBehavior is attached has been deallocated, and the gravity's angle value is change, a crash occurs. Steps to Reproduce: 1. Setup a dynamic animator and attach a UIGravity Behavior (do not attach to properties or ivars) 2. With a dispatch_after block, modify the angle of the gravity behavior (ensuring a weak reference to the gravity behavior is not used) Expected Results: The modified value should have no effect. Actual Results: A crash occurs -- the gravity behavior attempts to modify a value on it's currently bad pointer to it's dynamicAnimator. Version: iOS SDK 7 Notes: Configuration: Attachments: https://github.com/jerryhjones/BadGravity
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!