owncloud / android

:phone: The ownCloud Android App
GNU General Public License v2.0
3.85k stars 3.06k forks source link

1.5.5 drains battery and data plan #462

Closed fromCologne closed 9 years ago

fromCologne commented 10 years ago

Problem started with second last version (1.5.4?). Automatic ownCloud sync is activated on the smartphone. One file ist in state "keep up-to-date". Syncing drains the battery and my data plan.

davivel commented 10 years ago

What is the size of that file? Is it updated often? Do you know if it's being uploaded or downloaded often (should be visible in the notification drawer when being transfered)?

fromCologne commented 10 years ago

Filesize is 1 MByte. It´s only being downloaded. It´s downloaded 5-10 times in a month. In the last ten days the client causes 140 MByte download volume.

Finn10111 commented 10 years ago

Could this be related to #415 ? I had this issue with 1.5.4 and after an update to 1.5.5 the problem seemed to be solved. After uploading about 25000 files from my desktop my android devices are syncing almost the whole day even if I don't have any file marked as "keep up to date".

What takes so long? Does the client ask for every file it knows if it has changed since last sync?

davivel commented 10 years ago

With 1.5.5 should work much better than with 1.5.4. Anyway, we know there is more room to improvements. Let's see when can we address it.

davivel commented 10 years ago

@rperezb , @MTRichards , this is the issue we talked about yesterday about performance.

rperezb commented 10 years ago

@MorrisJobke is the one who pointed out about a battery issue, can you please confirm us if this is the ticket that you were talking about? THX

MorrisJobke commented 10 years ago

I guess @MTRichards mixed it up in the discussion at the hackweek. If I'm right @jospoortvliet was the one with the battery problems (he has a HTC something).

lachlan-00 commented 10 years ago

I have a htc one but don't suffer any significant battery drain. Just the constant background data usage.

davivel commented 10 years ago

@Finn10111 , what model is your device? Do you still have problems with your battery?

Thanks.

Finn10111 commented 10 years ago

@davivel I have a Samsung Galaxy Ace 5839i, the problem seems to be gone.

davivel commented 10 years ago

Thanks, @Finn10111 .

@fromCologne , what about you? Still suffering draining with the current version?

ferdiga commented 10 years ago

I am on Sony LT25i Android 4.3 owncloud 1.5.8 - battery drain in 4h 50% is gone no I disabled "Data sync" in account settings - I'll see if this helps

added 7 hours later disabled "Data sync" in account settings - solves the problem

davivel commented 10 years ago

Thanks for the report

smarek commented 10 years ago

I'd like to add into report, I'm using server 7.0.2 and android client 1.6.0, and after turning on sync of photos and videos (with both checks enabled on WIFI-only options), it drained my mobile data of 1.13GB in 3 days (20-23.Oct.2014) and also drained my battery.

From Logcat it seems like it uploaded data which didn't changed for a quite while (like 3-5 months stable), few hundreds of PDB, PDF, RTF and TXT files. Is it possible for integrity check algorithm to fail under specific conditions, which would invoke client->server folder/file update? Because those files haven't been touched for months, and Logcat shows those being uploaded/download to/from server again.

achilleas-k commented 9 years ago

Similar report to @smarek here. Server version 7.0.3. Android client 1.6.1 (changelog for version says "Fixed battery draining bug"). After updating to Android 5 Lollipop (with a wipe, so the app was freshly installed), I noticed the fast battery drain and data usage. Screenshots: battery drain, data usage, app use details. I wasn't doing anything with owncloud during that period and in fact, I only had one small file starred in the app (to keep offline).

I restricted background data for owncloud, which stopped it from making network traffic while on mobile networks, but on WiFi, it would still drain battery. The app usage stats showed that owncloud was keeping the phone awake for 2 hours. This was during the night, where the phone was not being used in any way. I woke up to find my battery had drained by about 40% throughout the night. Data sync in android account settings was off. Instant uploads were on.

I removed the app yesterday and my battery life has increased dramatically (in fact, I'm seeing the battery life boost we were promised with Android 5.0 Lollipop).

davivel commented 9 years ago

OK, added instant uploads as a key point for battery issues.

Thanks for the extra reports.

tobiasKaminsky commented 9 years ago

@davivel Is there some way how I can debug it?

@all is this issue still existing in the latest version?

smarek commented 9 years ago

@tobiasKaminsky from my experience it was fixed in next version (February probably)

tobiasKaminsky commented 9 years ago

Thank you. So closing, please reopen or comment if still exists.