apps-android-commons icon indicating copy to clipboard operation
apps-android-commons copied to clipboard

[Bug]: Profile user page with badges & level no longer working

Open Fabien98 opened this issue 7 months ago • 9 comments

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

  1. Open The App, click on the "menu" button at the bottom right
  2. Click on your username (with your level between bracket)
  3. 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

Fabien98 avatar Apr 16 '26 17:04 Fabien98

Thanks @Fabien98 for reporting this. It's not working for me as well.

RitikaPahwa4444 avatar Apr 18 '26 22:04 RitikaPahwa4444

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...

RitikaPahwa4444 avatar Apr 21 '26 22:04 RitikaPahwa4444

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?

nicolas-raoul avatar Apr 28 '26 00:04 nicolas-raoul

FYI, my account has less than 50 files imported and the achievement screen still fail.

Fabien98 avatar Apr 28 '26 07:04 Fabien98

Image Facing the same issue. Upload count is 390

ChinchuC avatar May 03 '26 09:05 ChinchuC

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

u7696178 avatar Oct 24 '26 06:10 u7696178

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?

RitikaPahwa4444 avatar Oct 24 '26 11:10 RitikaPahwa4444

Is this resolved, after https://github.com/commons-app/apps-android-commons/pull/7001 ?

neeldoshii avatar Nov 13 '26 05:11 neeldoshii

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.

sivaraam avatar Nov 13 '26 09:11 sivaraam