You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uploading many images causes app to freeze and not respond after crashing is fixed #7378
Edit: Currently not testable as I cannot get to the point of uploads actually being queued due to a bug, this needs to be fixed first before being able to troubleshoot this further.
Please create a test demo account and see if this still happens there.
If yes, please open up a bug report
If not, please verify server setup and ask for help on forum
Environment data
Android version: 11
Device model: Google Pixel 2
Stock or customized system: stock
Nextcloud app version: 3.15.0
Nextcloud server version: 19.0.4
Reverse proxy:
Logs
Web server error log
Insert your webserver log here
Nextcloud log (data/nextcloud.log)
Logcat logs (I think): [Nextcloud.txt](https://github.com/nextcloud/android/files/5567880/Nextcloud.txt)
NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate
I think it hangs when it attempts to autoupload. I don't need to be in the app, I can be in another app and I get the ANR dialogue. Otherwise I simply go to uploads menu and it freezes there if it's autouploading, if it isn't autouploading, then it might work normally.
When it says "App terminated" under the uploads, if I press "Failed/pending restart", it freezes, the Android interface freezes as well for 20~ seconds and then it displays ANR.
Nothing out of ordinary to screenshot; all looks normal, but when it starts to autoupload it's as if it gets overloaded and everything freezes while it processes.
When it says "App terminated" under the uploads, if I press "Failed/pending restart", it freezes, the Android interface freezes as well for 20~ seconds and then it displays ANR.
When it says "App terminated" under the uploads, if I press "Failed/pending restart", it freezes, the Android interface freezes as well for 20~ seconds and then it displays ANR.
Failed/pending only reloads stored items from database and displays them.
If you have >30k items this just takes too long.
So this is somehow unrelated to AutoUpload, it just occurs due to the uploading of all old images.
You could trigger this also manually, when uploading 30k images.
So this is somehow unrelated to AutoUpload, it just occurs due to the uploading of all old images.
That's what I thought, but then again I don't know much about programming so...
This happened without adding upload existing files before though, I even reported a bug a while ago because Nextcloud was never uploading my stuff, only to realize it was never designed to do so when it was added as a feature and it never said it wouldn't. So this must have existed before that.
I had a similar issue when I enabled auto-upload on a folder with a few thousand pictures on a Pixel 3a. The app kept freezing and crashing, and after every restart it would start again from the beginning without looking for already synchronized files. I disabled power saving for the app as indicated in the manual, but it did not help, it was not able to run in the background. Power consumption was also extremely high while uploading.
As a workaround I forced the screen to stay on by enabling developer mode on Android and activating the corresponding option (you can also install Coffee for the same result), connected the phone to a USB cable, and let it synchronize with the app open. It took a long time but it worked.
Clearly, this isn't a good workaround for a non-technical user, but it can get the job done.
Reacted by InfamousUser, Henrik and Lennart C. Karssen
Right, I think I did that one time with uploads menu open, if I didn't touch the app it wouldn't crash, but as soon as I tried scrolling or moving around it would hang, trying it multiple times caused a crash or non responsiveness dialogue iirc.
Here is log for 3.14.1 freeze and crash in case it helps any. I scroll the upload menu slowly, it works for a couple of seconds, then around 15:19:40 it freezes for about 3-5 seconds, then automatically reopens with loading screen and whole Android is frozen for half a minute (system buttons on the botton don't work), then it unlocks and I get ANR dialogue.
Judging from logcat, thanks for that, it seems indeed that the app uses too much memory and therefore Android tries to kill it.
Maybe Pixel 2 is more restrictive…
If it helps, in Android memory usage it says it uses an average of 26 MB and 156 MB maximum, if that's accurate.
It should be able to use almost all RAM in foreground. I mean, I'm sure modern games take at least 1-2+ GB when running. There must be something specific that's tripping it up.
Unless there's something that causes sudden spike in memory usage that doesn't show up in system data.
It shouldn't naturally be using nearly as much as 1GB, but lack of memory shouldn't be reasonably happening.
I'm android developer but using a phone with massive amount of Ram like my
Samsung Galaxy S22 Ultra (12GB) makes the app works very well. Maybe in
this new phone I haven't a lot of photos to sync at this time and the issue
not appears. But I tend to think that is an issue related to a non
optimizes use of resources, like ram.
On Wed, Dec 7, 2022, 19:48 Christoph Schwarzenberg ***@***.***> wrote:
For me the app is just completely unusable and often hangs directly after
opening it when it is showing the files list.
Auto Upload is enabled, a few files are queued for upload but the phone is
not plugged in.
As mentioned before, killing the app multiple times via Android Settings
usually resolves it, but this is not how it should work.
—
Reply to this email directly, view it on GitHub
<#7378 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF7NOPBSRKZPUR4M64H6OI3WMEH3BANCNFSM4T3SH3TQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
It is now May 2024, the original issue is almost 4 years old and the issue persists still. Phones with limited RAM like my Pixel 4a are still not able to handle uploading more than a few hundred pictures at once with auto-upload. I have 2600 pictures in the whatsapp folder. If I add it to auto-upload, it will queue up up to 2000 of them. Then they all instantly fail with the message "App terminated", it instantly starts collecting them all again until it reaches that mark, they all fail and so on. With each go, you're lucky to upload 3-4 pictures.
I can definitely understand some people's frustration here. Why is this issue still open after 4 years?
Reacted by Regis-Frollo and Victor Jose Hidalgo de la Hoz
Got the same issue with about 2500 pictures. The worst thing is, that some of those pictures are conflicting and I can't resolve the conflict and will be getting the "conflict" message constantly. Trying to open the conflict resolution just gives my a "App is not responding: Wait / Terminate App" message after a couple of seconds and I don't know how to resolve this other than probably deleting the files on the server manually...
On Wed, 19 Mar 2025, 08:22 ripper17, ***@***.***> wrote:
Got the same issue with about 2500 pictures. The worst thing is, that some
of those pictures are conflicting and I can't resolve the conflict and will
be getting the "conflict" message constantly. Trying to open the conflict
resolution just gives my a "App is not responding: Wait / Terminate App"
message after a couple of seconds and I don't know how to resolve this
other than probably deleting the files on the server manually...
—
Reply to this email directly, view it on GitHub
<#7378 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF3DVTU5ABNOOX32Z72BIT2VESN3AVCNFSM6AAAAABVNT4CSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZVG4YDCOBQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: ripper17]*ripper17* left a comment (nextcloud/android#7378)
<#7378 (comment)>
Got the same issue with about 2500 pictures. The worst thing is, that some
of those pictures are conflicting and I can't resolve the conflict and will
be getting the "conflict" message constantly. Trying to open the conflict
resolution just gives my a "App is not responding: Wait / Terminate App"
message after a couple of seconds and I don't know how to resolve this
other than probably deleting the files on the server manually...
—
Reply to this email directly, view it on GitHub
<#7378 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF3DVTU5ABNOOX32Z72BIT2VESN3AVCNFSM6AAAAABVNT4CSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMZVG4YDCOBQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
changed the title [-]Autoupload causes Nextcloud app to freeze and not respond after crashing is fixed[/-][+]Uploading many images causes app to freeze and not respond after crashing is fixed[/+]on Apr 18, 2025
I am affected as well. I have about 1400 photos to upload and the upload freezes every about 100, 200 photos. Around 1000 photos uploaded after 10 hours with many phone restarts.
I have 4 GB of phone RAM with about 1.5 GB free, so in my case, the limitation is not caused by RAM.
My line is broadband, so the data rate is not limiting neither.
It seems the upload code needs to be revisited as it seems it is very CPU hungry. Maybe some n^2 complexity, IDK.
I would be grateful if someone with Android experience can investigate the upload with some massive folders. The app should handle 100k files upload without any major freezing.
Activity
tobiasKaminsky commentedon Nov 20, 2020
Do you see where and when it hangs? Can you give us a screenshot?
InfamousUser commentedon Nov 20, 2020
I think it hangs when it attempts to autoupload. I don't need to be in the app, I can be in another app and I get the ANR dialogue. Otherwise I simply go to uploads menu and it freezes there if it's autouploading, if it isn't autouploading, then it might work normally.
When it says "App terminated" under the uploads, if I press "Failed/pending restart", it freezes, the Android interface freezes as well for 20~ seconds and then it displays ANR.
Nothing out of ordinary to screenshot; all looks normal, but when it starts to autoupload it's as if it gets overloaded and everything freezes while it processes.
tobiasKaminsky commentedon Nov 23, 2020
That is an important point, thanks!
tobiasKaminsky commentedon Nov 23, 2020
How many failed items do you have?
InfamousUser commentedon Nov 23, 2020
Oh?
37862
tobiasKaminsky commentedon Nov 24, 2020
Failed/pending only reloads stored items from database and displays them.
If you have >30k items this just takes too long.
So this is somehow unrelated to AutoUpload, it just occurs due to the uploading of all old images.
You could trigger this also manually, when uploading 30k images.
InfamousUser commentedon Nov 24, 2020
That's what I thought, but then again I don't know much about programming so...
This happened without adding upload existing files before though, I even reported a bug a while ago because Nextcloud was never uploading my stuff, only to realize it was never designed to do so when it was added as a feature and it never said it wouldn't. So this must have existed before that.
bardo commentedon Dec 1, 2020
I had a similar issue when I enabled auto-upload on a folder with a few thousand pictures on a Pixel 3a. The app kept freezing and crashing, and after every restart it would start again from the beginning without looking for already synchronized files. I disabled power saving for the app as indicated in the manual, but it did not help, it was not able to run in the background. Power consumption was also extremely high while uploading.
As a workaround I forced the screen to stay on by enabling developer mode on Android and activating the corresponding option (you can also install Coffee for the same result), connected the phone to a USB cable, and let it synchronize with the app open. It took a long time but it worked.
Clearly, this isn't a good workaround for a non-technical user, but it can get the job done.
InfamousUser commentedon Dec 2, 2020
Right, I think I did that one time with uploads menu open, if I didn't touch the app it wouldn't crash, but as soon as I tried scrolling or moving around it would hang, trying it multiple times caused a crash or non responsiveness dialogue iirc.
InfamousUser commentedon Dec 5, 2020
Here is log for 3.14.1 freeze and crash in case it helps any. I scroll the upload menu slowly, it works for a couple of seconds, then around 15:19:40 it freezes for about 3-5 seconds, then automatically reopens with loading screen and whole Android is frozen for half a minute (system buttons on the botton don't work), then it unlocks and I get ANR dialogue.
Log_2020-12-05_15-21-30.txt
tobiasKaminsky commentedon Dec 16, 2020
Judging from logcat, thanks for that, it seems indeed that the app uses too much memory and therefore Android tries to kill it.
Maybe Pixel 2 is more restrictive…
InfamousUser commentedon Dec 16, 2020
If it helps, in Android memory usage it says it uses an average of 26 MB and 156 MB maximum, if that's accurate.
It should be able to use almost all RAM in foreground. I mean, I'm sure modern games take at least 1-2+ GB when running. There must be something specific that's tripping it up.
Unless there's something that causes sudden spike in memory usage that doesn't show up in system data.
It shouldn't naturally be using nearly as much as 1GB, but lack of memory shouldn't be reasonably happening.
tobiasKaminsky commentedon Dec 18, 2020
Maybe the implementation of listing those files is sup-optimal and thus creates to much memory…
86 remaining items
w3stwalker commentedon Dec 7, 2022
fkws-k commentedon May 28, 2024
It is now May 2024, the original issue is almost 4 years old and the issue persists still. Phones with limited RAM like my Pixel 4a are still not able to handle uploading more than a few hundred pictures at once with auto-upload. I have 2600 pictures in the whatsapp folder. If I add it to auto-upload, it will queue up up to 2000 of them. Then they all instantly fail with the message "App terminated", it instantly starts collecting them all again until it reaches that mark, they all fail and so on. With each go, you're lucky to upload 3-4 pictures.
I can definitely understand some people's frustration here. Why is this issue still open after 4 years?
xadox-1st commentedon Jan 18, 2025
Same for me. Still hoping for a fix someday.
ripper17 commentedon Mar 19, 2025
Got the same issue with about 2500 pictures. The worst thing is, that some of those pictures are conflicting and I can't resolve the conflict and will be getting the "conflict" message constantly. Trying to open the conflict resolution just gives my a "App is not responding: Wait / Terminate App" message after a couple of seconds and I don't know how to resolve this other than probably deleting the files on the server manually...
calderonth commentedon Mar 19, 2025
[-]Autoupload causes Nextcloud app to freeze and not respond after crashing is fixed[/-][+]Uploading many images causes app to freeze and not respond after crashing is fixed[/+]mvorisek commentedon Sep 4, 2025
I am affected as well. I have about 1400 photos to upload and the upload freezes every about 100, 200 photos. Around 1000 photos uploaded after 10 hours with many phone restarts.
I have 4 GB of phone RAM with about 1.5 GB free, so in my case, the limitation is not caused by RAM.
My line is broadband, so the data rate is not limiting neither.
It seems the upload code needs to be revisited as it seems it is very CPU hungry. Maybe some n^2 complexity, IDK.
I would be grateful if someone with Android experience can investigate the upload with some massive folders. The app should handle 100k files upload without any major freezing.