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

ArrayIndexOutOfBoundsException when setting sideItem #51

Open
Ormaz opened this issue May 9, 2016 · 4 comments
Open

ArrayIndexOutOfBoundsException when setting sideItem #51

Ormaz opened this issue May 9, 2016 · 4 comments

Comments

@Ormaz
Copy link

Ormaz commented May 9, 2016

Hello,

I have some issues with the picker. My app is crashing everytime I set the side item and when I start to scroll or if the array has only one element. It's happening only in my phone, that's quite weird.
Furthermore, is it possible to change the text color of the middle item and not for all the elements?

Thanks!

capture d ecran 2016-05-09 a 12 16 33

@akul1994
Copy link

hey. i'm getting the same error. any fix for this?

@jpage4500
Copy link

I'm getting reports of a crash via Crashlytics so I can't say for sure how it's reproduced - but looks like the same error here:

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
       at com.wefika.horizontalpicker.HorizontalPicker$PickerTouchHelper.onPopulateNodeForVirtualView(HorizontalPicker.java:1310)
       at android.support.v4.widget.ExploreByTouchHelper.createNodeForChild(ExploreByTouchHelper.java:803)
       at android.support.v4.widget.ExploreByTouchHelper.obtainAccessibilityNodeInfo(ExploreByTouchHelper.java:724)
       at android.support.v4.widget.ExploreByTouchHelper$MyNodeProvider.createAccessibilityNodeInfo(ExploreByTouchHelper.java:1245)
       at android.support.v4.view.accessibility.AccessibilityNodeProviderCompat$AccessibilityNodeProviderKitKatImpl$1.createAccessibilityNodeInfo(AccessibilityNodeProviderCompat.java:130)
       at android.support.v4.view.accessibility.AccessibilityNodeProviderCompatKitKat$1.createAccessibilityNodeInfo(AccessibilityNodeProviderCompatKitKat.java:47)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfVirtualNode(AccessibilityInteractionController.java:1232)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1135)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchAccessibilityNodeInfos(AccessibilityInteractionController.java:932)
       at android.view.AccessibilityInteractionController.findAccessibilityNodeInfoByAccessibilityIdUiThread(AccessibilityInteractionController.java:202)
       at android.view.AccessibilityInteractionController.-wrap1(AccessibilityInteractionController.java)
       at android.view.AccessibilityInteractionController$PrivateHandler.handleMessage(AccessibilityInteractionController.java:1292)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6682)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

@mustafaguven
Copy link

I'm getting reports of a crash via Crashlytics so I can't say for sure how it's reproduced - but looks like the same error here:

Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=1; index=1
       at com.wefika.horizontalpicker.HorizontalPicker$PickerTouchHelper.onPopulateNodeForVirtualView(HorizontalPicker.java:1310)
       at android.support.v4.widget.ExploreByTouchHelper.createNodeForChild(ExploreByTouchHelper.java:803)
       at android.support.v4.widget.ExploreByTouchHelper.obtainAccessibilityNodeInfo(ExploreByTouchHelper.java:724)
       at android.support.v4.widget.ExploreByTouchHelper$MyNodeProvider.createAccessibilityNodeInfo(ExploreByTouchHelper.java:1245)
       at android.support.v4.view.accessibility.AccessibilityNodeProviderCompat$AccessibilityNodeProviderKitKatImpl$1.createAccessibilityNodeInfo(AccessibilityNodeProviderCompat.java:130)
       at android.support.v4.view.accessibility.AccessibilityNodeProviderCompatKitKat$1.createAccessibilityNodeInfo(AccessibilityNodeProviderCompatKitKat.java:47)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfVirtualNode(AccessibilityInteractionController.java:1232)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1135)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:1131)
       at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchAccessibilityNodeInfos(AccessibilityInteractionController.java:932)
       at android.view.AccessibilityInteractionController.findAccessibilityNodeInfoByAccessibilityIdUiThread(AccessibilityInteractionController.java:202)
       at android.view.AccessibilityInteractionController.-wrap1(AccessibilityInteractionController.java)
       at android.view.AccessibilityInteractionController$PrivateHandler.handleMessage(AccessibilityInteractionController.java:1292)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6682)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

I know its been a long time but did you solve this issue in some way?

@nick2525
Copy link

nick2525 commented Dec 8, 2021

@jpage4500 Is this library abandoned? I have the same bug

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

5 participants