views:

34

answers:

1

My iPhone app started logging this error:
lo->hi recycling invariant violated!
followed by:
Program received signal: “EXC_BAD_ACCESS”
whenever I launched it on my iPod (3.1.3) and sometimes when I launch it in the simulator.

What does this error mean, and how can I fix it?

I am using cover-flow in my app. I think this might be the problem.

Thanks in advance.

+1  A: 

Yes cover flow is the problem. Note that UICoverFlowLayer is private API. If you're targeting for AppStore, consider other alternatives here.

The error "lo->hi recycling invariant violated!" is raised by -[UICoverFlowLayer _updateTick], which should be caused by reusing the wrong sublayer for display. The detail I don't know because there's no detail code, nor I'm familiar with the Cover Flow API.

KennyTM
It turns out, after some debugging, that the only thing wrong that the cover-flow was being initialized with zero covers.
cduck