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

PhotoDetails: ViewPager IllegalStateException #447

Open
httpdispatch opened this issue May 29, 2013 · 1 comment
Open

PhotoDetails: ViewPager IllegalStateException #447

httpdispatch opened this issue May 29, 2013 · 1 comment

Comments

@httpdispatch
Copy link
Contributor

Seems that similar to #437 caused by some bug in the code ignored by previous version of support lib but crashing on new version.

java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! 
Expected adapter item count: 210, found: 240 Pager id: com.trovebox.android.app:id/photos 
Pager class: class com.trovebox.android.app.ui.widget.PhotoViewHackyViewPager 
Problematic adapter: class com.trovebox.android.app.PhotoDetailsActivity$PhotoDetailsUiFragment$PhotoDetailPagerAdapter
    at android.support.v4.view.ViewPager.populate(ViewPager.java:959)
    at android.support.v4.view.ViewPager.populate(ViewPager.java:911)
    at android.support.v4.view.ViewPager.smoothScrollTo(ViewPager.java:797)
    at android.support.v4.view.ViewPager.scrollToItem(ViewPager.java:563)
    at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:549)
    at android.support.v4.view.ViewPager.onTouchEvent(ViewPager.java:2004)
    at android.view.View.dispatchTouchEvent(View.java:7350)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2412)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2147)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2418)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2161)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2418)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2161)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2418)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2161)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2418)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2161)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2418)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2161)
    at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2418)
    at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2161)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:2139)
    at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1476)
    at android.app.Activity.dispatchTouchEvent(Activity.java:2487)
    at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:2087)
    at android.view.View.dispatchPointerEvent(View.java:7535)
    at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:3415)
    at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3347)
    at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4456)
    at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4434)
    at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4538)
    at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
    at android.os.MessageQueue.nativePollOnce(Native Method)
    at android.os.MessageQueue.next(MessageQueue.java:125)
    at android.os.Looper.loop(Looper.java:124)
    at android.app.ActivityThread.main(ActivityThread.java:4921)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1027)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:794)
    at dalvik.system.NativeStart.main(Native Method)
@httpdispatch
Copy link
Contributor Author

Can't reproduce or find the problematic place in the code. Need to monitor this whether it will appear again in the GA crashes reports.

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

No branches or pull requests

1 participant