-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
IndexOutOfBoundsException via HeaderViewListAdapter #251
Comments
@AndyScherzinger Gonna give this a try! |
Awesome @kartikarora! |
@AndyScherzinger I'm unable to reproduce the exception since I don't have a nextcloud server deployed anywhere. Do you have any test credentials that I could use? |
hi @kartikarora I do not have a testing instance of Nextcloud but @stp-ip might be able to help you out here 😃 |
you can try the instance on demo.nextcloud.com user: test pw: test, but it gets reset from time to time and is not perfect for sensitive data, but if that's not an issue, test away. |
Got the app running. Thanks @stp-ip . @AndyScherzinger Do you have a more detailed stack trace? The one posted above does not indicate which Java file raises this exception. Seems like an incomplete trace to me! |
@kartikarora unfortunately these are the complete stack traces as reported by the Google Play developer console. I discussed this with @tobiasKaminsky and it is related to the list adapters and is likely due to a race condition where it seems that the rendering/filling of the list is done before the data is present/completely fetched. |
Alright I'll start debugging the |
@kartikarora Awesome! 🎉 |
I tried all visible list views, could not recreate the issue. Or any crash for that matter! There are so many |
hmm, @tobiasKaminsky any ideas or hints? |
I got the same bug on android 6.0. So, what's the solution? |
Hi @duoduoluo, this has been fixed in the latest library release, see PR nextcloud/android-library#24 and is related to the hash function. |
Needs (yet unreleased lib version 1.0.10) |
explicitely repopened @tobiasKaminsky since this is the number 1 reported crash in Google Play for the app 1.0.0-1.4.0, so scheduling the fix for 1.4.1 |
still haven't found a way to reproduce this issue, so postponing |
hi, I got this problem recently, any solution or hint? thx. |
@IvanAldrich Could you explain the steps how you got the issue? It'll help us recreate and debug the issue. |
@kartikarora when long press a item in the list, we got a dialog to delete the item. we delete the item from the data source and after that, we pick a new list from db to and notify change for the adapter. It happened once so far and i have no idea how to recreate it.. I done know wether it's useful or not that i add a footerview for the listview which's visibility is set Gone when the list is empty. |
Also reported via #760 now (already closed it). I checked the Play console and it is one of the most reported issues but it is also a Android 6 only reported issue (no other Android version reported this issue!!!) |
@AndyScherzinger in my case i got this exception in Android-Version:4.2.2, do you mean that after android 7 this issue has been solved? |
I have no clue :-/ |
怎么解决? |
I am facing this issue on Android 6.0 with LG G Stylo device. Is there is any fix for this HeaderViewListAdapter.java:164 of list view which is causing indexOutOfBoundException. |
#2039 will replace the current implementation with the newer recyclerlist, so at least this particular error cannot happen anylonger. |
Is this issue related to the accessibility? |
Maybe it's related to accessibility: |
Never saw this again after merging of #2039, so closing. |
From the Play store developer console. 16 Reports to date.
2 comments:
selecting dropbox folder
One of my folders kill the nextcloud app. This also happend on owncloud.
Environment data
Android version: 6.0
Device model: LG G4 (p1), Xperia Z4 (SOV31), HTC One M9 (htc_himauhl), HTC One (M8) (htc_m8), SHIELD Tablet (shieldtablet)
Stock or customized system: -
Nextcloud app version: 1.0.0 to least 1.4.2 RC4
Logs
The text was updated successfully, but these errors were encountered: