Crash in the private method UICollectionViewLayoutAttributes _isEquivalentTo

Originator:conrad.stoll
Number:rdar://15515753 Date Originated:
Status: Resolved:
Product:iOS Product Version:7.1
Classification: Reproducible:Yes
 
Summary:
Provide a descriptive summary of the issue.

I get a crash in the _isEquivalentTo method of UICollectionViewLayoutAttributes when transitioning from one layout to another. The crash occurs after prepareLayout gets called. The layout attributes are all instances of the base class, and NOT subclasses. In this case the transition is from a second layout back to the original layout using the UICollectionViewController's layoutToLayout transition in iOS 7. This works without issue in all previous versions of iOS 7, but now the crash above occurs as a EXC_BAD_ACCESS pointing to that method in the beta of iOS 7.1.

Steps to Reproduce:
In numbered format, detail the exact steps taken to produce the bug.

Tap the back button to transition back to the original layout. Crash.

Expected Results:
Describe what you expected to happen when you executed the steps above.

Experience a smooth transition back to the original layout without a crash.

Actual Results:
Explain what actually occurred when steps above were executed.

Regression:
Describe circumstances where the problem occurs or does not occur, such as software versions and/or hardware configurations.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.


I haven't yet tried subclassing layout attributes to implement isEqual and hash methods. I am not sure if that would solve the problem or not.

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!