ICViewPager icon indicating copy to clipboard operation
ICViewPager copied to clipboard

Switching quickly between tabs causes an NSInternalInconsistencyException

Open jamesaspence opened this issue 10 years ago • 7 comments

I have an application with three tabs. If I mash two of the tab's buttons and go back and forth quickly, I get some unexpected behavior: The views begin to jump around weirdly, and then the app crashes relatively soon after.

Just wondering, is this an issue that is known? Any ideas of how to resolve this?

jamesaspence avatar Dec 18 '14 17:12 jamesaspence

For further information, the error was as follows: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Duplicate states in queue'

jamesaspence avatar Dec 18 '14 18:12 jamesaspence

Is there any dispatch_after or similar involved in switching tabs? I had a similar issue with triggering too many similar view transitions in a dispatch_after

maciekish avatar Feb 19 '15 15:02 maciekish

Nope. Behind the scenes, it uses UIPageViewController.

iltercengiz avatar Feb 19 '15 15:02 iltercengiz

I don't know this project at all, just arrived here via Google. All I'm saying is it's worth going over the calls to UIPageViewController and making sure none of them are wrapped in any kind of delay block :)

maciekish avatar Feb 19 '15 15:02 maciekish

Thanks for the advice! :) :+1: I will definitely consider this with the new version! :+1:

iltercengiz avatar Feb 19 '15 15:02 iltercengiz

hi @iltercengiz! Hope you fix it soon :+1:

vungocgiang avatar Mar 03 '15 04:03 vungocgiang

any fixes? i have similar problem

Pratik948 avatar Jul 23 '16 15:07 Pratik948