Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes due to IllegalStateException #3

Open
aritraroy opened this issue Jan 31, 2017 · 5 comments
Open

Crashes due to IllegalStateException #3

aritraroy opened this issue Jan 31, 2017 · 5 comments

Comments

@aritraroy
Copy link

I am using this library in my app, but unfortunately have been getting a lot of crashes because of it.

Non-fatal Exception: java.lang.IllegalStateException: Fragment no longer exists for key f163: index 2

There are many others just like this where the "key" and "index" values are different. I liked this library and this bug makes it unusable for me. Any idea how to fix this?

@aritraroy
Copy link
Author

Any updates on this?

@DanielNovak
Copy link

@aritraroy I am sorry I haven't noticed this issue. Can you please provide some sample code that will reproduce the problem? Or at least a stack trace.

@aritraroy
Copy link
Author

I have a ViewPager which shows some images to user. I am setting up the adapter and attaching it to the viewpager. Instead of using Android's FragmentStatePagerAdapter, I am using yours. But I see these crashes consistently when users are viewing some images and are rotating the device. Any idea what can go wrong here?

@DanielNovak
Copy link

@aritraroy Can you please provide stacktrace of the crash?
Maybe also your implementation of getItemId() is not consistent? Hmm.... I will take a look at it today.

@parekhamit89
Copy link

Hello DanielNovak, I have used your UpdatableFragmentPagerAdapter, But it still working as FragmentStatePager.... Its still keep increasing memory and leads to OOM error. Could you please help.

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

No branches or pull requests

3 participants