iOS SDK - Bad Access - [AnnotEditTool deselectAnnotation]: [m_moving_annotation IsValid]

Hey there,

I'm running into a crash issue regarding annotations.

After selecting a Link in a PDF, iOS will launch Safari. Returning to the application, and immediately navigating away from the PDF controller, triggers the following steps:

- [AnnotEditTool willMoveToSuperview:], where superview is nil
- [AnnotEditTool deselectAnnotation]
- if ([m_moving_annotation IsValid] && ...
Bad Access crash attempting to ask the annotation if it is valid.

This doesn't happen every time, but often. I think the duration of the press on the link annotation is related to whether or not this happens.

Any idea what to do here? I've tried a couple of things, but all I can think of is a hack, and I'm unsure of unintended consequences of changing the behavior.

Thank you

Hi Brad,

I haven’t been able to reproduce the problem you’ve described. When you say “navigating away” from the PDF controller, does it get destroyed (I assume so), or just go off screen? A complete stack trace would also be helpful.