Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Switching quickly between tabs causes an NSInternalInconsistencyException #97

Open
jamesaspence opened this issue Dec 18, 2014 · 7 comments

Comments

@jamesaspence
Copy link

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
Copy link
Author

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

@maciekish
Copy link

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

@iltercengiz
Copy link
Owner

Nope. Behind the scenes, it uses UIPageViewController.

@maciekish
Copy link

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 :)

@iltercengiz
Copy link
Owner

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

@vungocgiang
Copy link

hi @iltercengiz!
Hope you fix it soon 👍

@Pratik948
Copy link

any fixes? i have similar problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants