[Bug]: Profile user page with badges & level no longer working
Summary
I'm running last version 6.5.0. I don't know if I'm the only one but the username "success" tab with the level, badges on so on stopped working few weeks ago. i'm sending a log by mail with the issue in reference in the mail object.
Steps to reproduce
- Open The App, click on the "menu" button at the bottom right
- Click on your username (with your level between bracket)
- On the "Success" tab, it's loading a little while and then it stops and nothing happen.
Expected behaviour
This tab should show you your stats about number of picture uploaded and so on..
Actual behaviour
Instead the bar stays grey with no figures
Device name
Pixel 5
Android version
Android 14
Commons app version
6.5.0
Device logs
No response
Screenshots
No response
Would you like to work on the issue?
None
Thanks @Fabien98 for reporting this. It's not working for me as well.
USER_COMMENT=User statistics (number of uploaded images, percentage of undeleted images, images in use) have not been working for about a month. When trying to open someone else's statistics, the app crashes completely.
STACK_TRACE=java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at androidx.paging.PagedList.loadAround(PagedList.java:424)
at androidx.paging.AsyncPagedListDiffer.getItem(AsyncPagedListDiffer.java:216)
at androidx.paging.PagedListAdapter.getItem(PagedListAdapter.java:176)
at fr.free.nrw.commons.contributions.ContributionsListAdapter.getContributionForPosition(ContributionsListAdapter.kt:30)
at fr.free.nrw.commons.contributions.ContributionsListFragment$initRecyclerView$2.onItemRangeInserted(ContributionsListFragment.kt:288)
at androidx.recyclerview.widget.RecyclerView$AdapterDataObservable.notifyItemRangeInserted(RecyclerView.java:12564)
at androidx.recyclerview.widget.RecyclerView$Adapter.notifyItemRangeInserted(RecyclerView.java:7565)
at androidx.recyclerview.widget.AdapterListUpdateCallback.onInserted(AdapterListUpdateCallback.java:42)
at androidx.paging.AsyncPagedListDiffer$1.onInserted(AsyncPagedListDiffer.java:181)
at androidx.paging.PagedList.notifyInserted(PagedList.java:756)
at androidx.paging.ContiguousPagedList.onInitialized(ContiguousPagedList.java:339)
at androidx.paging.PagedStorage.init(PagedStorage.java:132)
at androidx.paging.ContiguousPagedList$1.onPageResult(ContiguousPagedList.java:81)
at androidx.paging
...
One of our crash reports.
For the stats: @whym @sivaraam any idea if this is a known issue? We've seen issues with the achievements screen in the past as well...
I think we have had an issue like that where the Python script was failing for people with thousands of uploads.
Can anyone test with a newish account and let us know?
FYI, my account has less than 50 files imported and the achievement screen still fail.
Facing the same issue. Upload count is 390
Hey Wikimedia Commons team I am part of a university group, we wanted to contribute to this repo as part of our assignment. We had previously asked to do a feature but we were corrected on what tickets we could work on. We have a couple of bug tickets that we have identified we would like to contribute to, this being one of them. If no one is working on this we would like to have a go at working on this.
Thanks
Thanks @u7696178! This issue seems like a duplicate of https://github.com/commons-app/apps-android-commons/issues/6937. While this is a backend issue, we have a pull request that introduces a fallback.
How about starting with some of the good first issues? Or https://github.com/commons-app/apps-android-commons/issues/6971 if you're able to reproduce it and looking for slightly challenging ones?
Is this resolved, after https://github.com/commons-app/apps-android-commons/pull/7001 ?
That seems plausible. We can use some other issue like https://github.com/commons-app/apps-android-commons/issues/5287 to track the fix in the backend service.