Skip to content

"Commons isn't responding" every few seconds #5845

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

Closed
nicolas-raoul opened this issue Oct 2, 2024 · 11 comments
Closed

"Commons isn't responding" every few seconds #5845

nicolas-raoul opened this issue Oct 2, 2024 · 11 comments
Labels

Comments

@nicolas-raoul
Copy link
Member

nicolas-raoul commented Oct 2, 2024

Sometimes I start getting "Commons isn't responding" popups, typically in the middle of preparing an upload within the Upload Wizard.

If I tap Wait, I can use the app normally, but the same message appears again a few seconds later.

It started happening around August 2024.

Maybe some kind of memory allocation problem?

Screenshot_20240918-195134

@rohit9625
Copy link
Contributor

I will try to reproduce this bug on my device. However, I never saw this popup appear in the commons. Could you please specify your device's hardware specifications or the number of other programs running in the background while facing this problem?

@nicolas-raoul
Copy link
Member Author

This is on Pixel 9 Pro, maybe especially when performing large uploads (like 50 pictures of 6MB each, shared from Gallery)

@nicolas-raoul
Copy link
Member Author

with a 1-picture upload, I had only uploaded 1 other picture beforehand after starting the app:

screen-20241018-233007.mp4

@nicolas-raoul
Copy link
Member Author

I get this even just by launching the app then scrolling my first 30 uploads repeatedly then browsing "Explore - Uploaded via mobile" pictures slowly.

@nicolas-raoul
Copy link
Member Author

Also happening on 5.1.0 branch (5.0.2-debug-v5.1.0~610919ec6):

screen-20241101-095232.mp4

@nicolas-raoul nicolas-raoul mentioned this issue Nov 1, 2024
8 tasks
@sivaraam
Copy link
Member

sivaraam commented Nov 2, 2024

Do you think this may be because we do not have changes corresponding to #5902 which seemed to fix this prompt for you to some extent?

PS: I believe this may be an Android 14 specific thing or a device specific thing. I do not observe this issue while using the app on an Android 12 device.

@rohit9625
Copy link
Contributor

Those ANRs are typically shown when a long-running task is executing on the UI thread or the amount of free memory is very less. I experienced one ANR when I selected 20 images to upload using CustomSelector on my device running Android 14. I'll test this on the Android 12 emulator as well.

But that ANR occurred when multiple dialogs were showing for each image saying "Problem found in this image" and when I was trying to close them by the "Cancel" button then that ANR appeared.

@nicolas-raoul
Copy link
Member Author

Somehow the current master is not too bad. But it might be linked to the fact that I moved a month worth of pictures to my external disk 6 days ago. I had a huge number of picture marked as not for upload, so if there was a leak in that area it might have been a factor. Please note that even now with few pictures I still see wait/close popups from time to time so huge number of pictures is not the only reason. Scrolling Nearby in items-heavy regions might be another factor (recently merged PRs: #5731 #5843).

@nicolas-raoul
Copy link
Member Author

Still experiencing this from time to time, especially when using the custom picker with many pictures it seems, even with Show already actioned pictures enabled. 3000 pictures in the Camera folder.

@nicolas-raoul
Copy link
Member Author

I have not experienced this in the past 2 weeks. :-)

@nicolas-raoul
Copy link
Member Author

Still starts happening from time to time, but really rare this year (main branch).

If anyone finds a way to reproduce this reliably, please let us know. Thanks! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants