astuetz/ViewPagerExtensions — Issue #3: Crash SwipeyTabs
Author: OKA133
Created: 2012-02-07 14:36:07+00:00
State: open

I just managed to cause a crash using SwipeyTabs.
I was clicking the center-tabbutton and right-tabbutton at the same time (using 2 fingers) repeatedly.

```
E/AndroidRuntime(13756): FATAL EXCEPTION: main
E/AndroidRuntime(13756): java.lang.IllegalStateException: No fake drag in progress. Call beginFakeDrag first.
E/AndroidRuntime(13756):	at android.support.v4.view.ViewPager.fakeDragBy(ViewPager.java:1708)
E/AndroidRuntime(13756):	at com.astuetz.viewpager.extensions.SwipeyTabsView.onTouch(SwipeyTabsView.java:519)
E/AndroidRuntime(13756):	at android.view.View.dispatchTouchEvent(View.java:4612)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1560)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1333)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1560)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1333)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1560)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1333)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1560)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1333)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1560)
E/AndroidRuntime(13756):	at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1333)
E/AndroidRuntime(13756):	at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1709)
E/AndroidRuntime(13756):	at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1264)
E/AndroidRuntime(13756):	at android.app.Activity.dispatchTouchEvent(Activity.java:2315)
E/AndroidRuntime(13756):	at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1682)
E/AndroidRuntime(13756):	at android.view.View.dispatchPointerEvent(View.java:4684)
E/AndroidRuntime(13756):	at android.view.ViewRoot.deliverPointerEvent(ViewRoot.java:2398)
E/AndroidRuntime(13756):	at android.view.ViewRoot.handleMessage(ViewRoot.java:2060)
E/AndroidRuntime(13756):	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(13756):	at android.os.Looper.loop(Looper.java:132)
E/AndroidRuntime(13756):	at android.app.ActivityThread.main(ActivityThread.java:4123)
E/AndroidRuntime(13756):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(13756):	at java.lang.reflect.Method.invoke(Method.java:491)
E/AndroidRuntime(13756):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
E/AndroidRuntime(13756):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
E/AndroidRuntime(13756):	at dalvik.system.NativeStart.main(Native Method)
```
*I was testing the usage of tabbuttons instead of swiping, because it seems it behaves different regarding the loading of the next page. I am not sure, but some images are not loaded, and the error "cannot generate texture from bitmap" appears in logcat. When swiping sometimes this error still occurs, but the image is loaded fine.*