-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[FIX] Image autoupload uploads images twice under certain conditions #4571
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Good job @JuancaG05 💯 Let's see if it works.
NOTE: Don't forget to add calens file and release note if this PR is going to be merged into master
branch.
(1) [FIXED]
Current: No folder is chosen, therefore no pictures are uploaded Expected: Folder chosen is set as subtitle and uploads work Pixel 7 |
(2) [FIXED]
Current: The list of spaces is the one of the first account (the one selected in step 3.) Expected: The list of spaces is the one of the second account (the one selected in step 4.) Pixel 7 |
87e6bce
to
c9139c8
Compare
@jesmrec (1) and (2) should be fixed now |
(3)After some tests, i got some duplications... this is the log if it helps somehow: owncloud.2025-04-16_08.41.04.log Samsung A8 |
@jesmrec regarding (3), those duplicates seen in logs refer to 0B files... let's see at least if worker flow is correct now (timestamp taken is correct, as seen in those logs) and maybe we can address the 0B problem in a separate issue |
f4ae88e
to
d565f45
Compare
d565f45
to
b20a9f3
Compare
Some conclusions:
NOTE: In my device (Samsung Galaxy A51), automatic uploads are working well and I don't have duplicated files. |
Logs over all the tests done are available, just in case |
@joragua Did the logging improvements already make it into a playstore release? I have the problems that nothing get's uploaded (well with a two days delay or so…) and I'd love to look at the logs with more information. |
9a510d8
to
b20a9f3
Compare
Hi @apollo13! No, unfortunately the verbosity added to logs is not in Play Store, and there are no plans to upload it since it's just some internal testing. But since you are interested on it, I'll provide an APK with the new verbosity. You can download it here: https://infinite.owncloud.com/s/OeffTWmcFNXtmxi (password: $xP$r58W-,PB) We would be thankful if you tell us if there is any new finding from your side! 🍻 |
@JuancaG05
Looking at the code, it is not clear to me where the worker could sleep between those timestamps. My owncloud is empty since I am currently evaluating it, there is no way it takes 6 minutes to go from updating the timestamp to redisplaying it in getFilesReadyToUpload I hope this helps, I am running a Pixel 6a with the latest Android. Happy to chat on matrix or whatever if you prefer realtime comms at some point. |
And at 13:30 still no uploads, the last try was:
Given that the next logline should be "Last Sync", this code appears to hang in android/owncloudApp/src/main/java/com/owncloud/android/workers/AutomaticUploadsWorker.kt Line 262 in b20a9f3
|
@jesmrec As mentioned two comments up, it is a Pixel 6a running latest Android (15). Anything more specific you are looking for? |
@apollo13 i have the same behaviour with Pixel 7, just to know whether the device has something to do. Because with other brands, it's working fine. |
You can reach us in https://talk.owncloud.com/channel/mobile |
Looking at some "debugging" options I think it would be a good idea to implement I'll try to get some further information via https://developer.android.com/develop/background-work/background-tasks/testing/persistent/debug |
Hi @apollo13! Thanks for your ideas! Seems that since we're using Let's try this for the moment, and if we don't get further information, we can try the custom initialization mentioned in https://developer.android.com/develop/background-work/background-tasks/testing/persistent/debug#enable-logging, which will add much more verbosity to the current logs. The new APK can be downloaded here: https://infinite.owncloud.com/s/cXkqstdShbaMevX (Password: Fja_'O188N,c) Tell us if you have any new finding, and thanks a lot for your collaboration! 🤜 🤛 |
Related Issues
App: #3983
ReleaseNotesViewModel.kt
creating a newReleaseNote()
with String resources (if required)QA