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.

Frank Shearar
  • 16,809
  • 8
  • 66
  • 92
cduck
  • 2,651
  • 6
  • 28
  • 35

1 Answers1

1

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.

Community
  • 1
  • 1
kennytm
  • 491,404
  • 99
  • 1,053
  • 989
  • It turns out, after some debugging, that the only thing wrong that the cover-flow was being initialized with zero covers. – cduck Mar 17 '10 at 06:09