I've been stuck on this thing for many hours now and I don't know what else to search for.
There's not much I can provide since the debugger doesn't show any errors but it's reproducible--I tap on a very specific item in a table view, the act of which should dismiss that modal, and then my app freezes. That doesn't happen for the other items in the table view--the modal dismisses perfectly and the app goes on.
I checked this answer suspecting that it's a deadlock, however:
- Everytime I hit the pause button in the debugger, the main thread is up to something different.
- The CPU usage as seen from Xcode's Debug navigator increases over time.
- I put breakpoints at one of my custom UIControl's
layoutSubviews
method and it keeps getting called. It does not call[super layoutSubviews]
, does not callsetNeedsLayout
on anyone, and simply sets the frames of its subviews because I'm not using Autolayout.
How can I debug this thing? I've been looking around Xcode Instruments but I can't make sense of the data I'm seeing. The System Trace template, specifically, seems capable of stopping right when the freeze occurs, unlike the others which keep on recording.
Added: What I see in System Trace