swiguna / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

Battery drain when not in use #520

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I full charge my phone
2. I don't use MyTracks and I keep GPS off
3. During the following hours, MyTracks is always at the second place (after 
the Display and before Cell Standby) in the list of the Battery Use Screen

What is the expected output? What do you see instead?
When I don't use MyTracks, I don't expect to see it at the top of the list of 
applications draining the battery

What version of MyTracks are you using? On what version of Android? On what
phone?
MyTracks 1.1.7 / Android 2.3.4 / Nexus S

If possible please provide a log.  Either upload here or send to mytracks-
support@google.com.
Detailed instructions can be found here:
http://code.google.com/p/mytracks/wiki/HowToReportErrors
I will send the log by email.

Please provide any additional information here:
Observed behaviour looks very similar to the Google Maps problem described in 
the following post:
http://www.google.com/support/forum/p/Google%20Mobile/thread?tid=6bcdbe3c9425039
c&hl=en

Original issue reported on code.google.com by giovanni...@gmail.com on 21 Jul 2011 at 7:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I did another experiment:
1. disabled gps
2. disabled "use wireless network" in "location & secutiry settings"
3. fully charged the phone
4. never opened MyTracks
5. after 3 hours, I took another log (I will send it by email)

Results:
- MyTracks is the third application in terms of energy consumption, (after 
Display and Phone Calls)
- MyTracks does not appear in the log

Bye
  Gio

Original comment by giovanni...@gmail.com on 21 Jul 2011 at 6:31

GoogleCodeExporter commented 9 years ago
I don't really understand this issue.  I checked the log but I did not see any 
suspicious.  Contrary to what you wrote I see My Tracks being launched many 
times which would explain why it consumed battery.

Original comment by sandordo...@google.com on 23 Jul 2011 at 9:02

GoogleCodeExporter commented 9 years ago
I have also been experiencing this issue.

I previously had no issues with my phone. I have a Droid X running Android 
2.3.3.

I installed MyTracks last Wednesday (7/20/11) and was amazed by its 
functionality. It is a great application, and I want to continue using it. 
However, starting that same day, my phone began restarting on its own (I'm 
going to open another ticket for this). In the following 5 days, my phone 
restarted on average 8 times per day by itself, possibly more that I didn't 
notice. In addition, my battery discharged FAR faster than before. So much 
faster that even when plugged into an outlet, if I had wireless tethering 
enabled, my phone would die in a matter of hours.

I realized that the issue was probably MyTracks, since the problems began right 
after installing it. Yesterday (7/25) I uninstalled MyTracks, and I have not 
had either problem again. My phone has not restarted at all in the past 24 
hours, and my battery is losing charge at its normal rate.

However, different from the OP, MyTracks was not listed at all in the 
applications that consumed my battery power at any point. This I cannot 
explain. 

If I re-install MyTracks and experience the same issue, I'll provide a log. 
Currently my log file does not mention MyTracks, since it was uninstalled 
yesterday.

Original comment by kfe...@gmail.com on 26 Jul 2011 at 6:37

GoogleCodeExporter commented 9 years ago
Answer to comment #3: if you examine the log related to comment #2, you will 
see that MyTracks has never been launched but the application still won the 
third prize for power consumption.

Original comment by giovanni...@gmail.com on 27 Jul 2011 at 3:33

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have one suspicion on this, although I'm unable to reproduce: would you be so 
kind as to test installing the attached APK, then rebooting your phone, and 
seeing if the issue is gone (e.g. if after a day there's no longer a battery 
drain)?

Thanks

Original comment by rdama...@google.com on 27 Jul 2011 at 10:06

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I just noticed this started right around the time we refactored executors on 
the service (which was in 1.1.5) - it could be related.

Original comment by rdama...@google.com on 1 Aug 2011 at 4:03

GoogleCodeExporter commented 9 years ago
When I noticed this behavior on my phone there was an old version of Google 
Maps, because the phone was new.
Some days after I received the Google Maps update, I reinstalled MyTracks and 
the  the behavior disappeared.
Now when I charge the phone completely, MyTracks appears in the Battery Use 
Screen only after I start using it.
Maybe the problem was related to using last version of Mytracks with an old 
version of Google Maps.
From my point of view, the issue is closed.
Thank you for assistance!
 Bye,
Gio

Original comment by giovanni...@gmail.com on 1 Aug 2011 at 4:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm also seeing this problem. HTC Hero using latest mytracks and maps version 
as of today.
There does not seem to be any update here for a while, any solution that has 
been found?

I charged my battery before going to bed, in the morning mytracks accounted for 
37% of battery use. Had not used mytracks for about a week... 

Original comment by rasmus.a...@gmail.com on 26 Aug 2011 at 4:29

GoogleCodeExporter commented 9 years ago
I'm getting this exact problem as well on my Samsung Galaxy S2.  I've searched 
everywhere and don't see it running but it still is showing up as the second 
highest battery usage application.

Original comment by thewalla...@gmail.com on 31 Aug 2011 at 5:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
We have had something similar with another application. In our case what 
happened was we end the application and the GPS remains on with some handsets. 
With the x10 mini pro Android 2.1 it goes off after a while. With the Xperia 
ARC Android 2.3.3 and Nexus one Android 2.3.4 it stays on for a long time. I 
can look in running services and the service is not there. 

If I click on Manage Applications - All and force stop the application that is 
supposedly not running the GPS will go off. What is happening is that Android 
is not destroying the service immediately but scheduling it for destruction 
only when it requires the memory. The point is that our application continues 
in memory consuming power, GPS in our case, until Android decides to do a clean 
up. This cleanup will be scheduled differently for different handsets and is 
probably dependent on memory usage by other applications as well. We fixed this 
by unregistering the GPS service as part of the OnDestroy event handler which 
is called when the service is ended by the user. Not sure if this is the 
problem but it fits the symptoms described here.

Investigating further we looked at MyTracks on an Xperia Arc Android 2.3.3 
using DDMS in Eclipse and it shows a number of threads running, one of which is 
android.hardware.SensorManager$SensorThread . This thread is keeping MyTracks 
alive and it shouldn't be running after the user has stopped it and MyTracks no 
longer shows up in running services. It will be stopped when Android reclaims 
the memory but that could be anytime in the future.

Actually I consider it a problem in Android as Android should stop the 
application from continuing to run a while after the service ends and not some 
indeterminate time long in the future. Otherwise it puts too much 
responsibility on app developers to behave well.

Original comment by kenep...@gmail.com on 13 Sep 2011 at 6:31

GoogleCodeExporter commented 9 years ago
+1 here. Noticed this for the first time today, but I cannot say what has 
triggered it. Pretty sure it is something very recent on my phone. (Galaxy S II)

Original comment by jens.ola...@gmail.com on 27 Oct 2011 at 7:59

GoogleCodeExporter commented 9 years ago
Funny observation: In the battery usage app, when I press 'menu' and 'refresh', 
I notice that momentarily the MyTracks icon actually changes to the generic 
Android icon, and the "MyTracks" string is removed or changed into something 
else. This happens too quickly for me to see what happens (<0.1 sec?) Could it 
be that the MyTracks app is wrongly listed instead of some other "system 
subroutine" or something?

Original comment by jens.ola...@gmail.com on 27 Oct 2011 at 9:41

GoogleCodeExporter commented 9 years ago
I have exactly this problem (MyTracks using 26% of battery despite being off;  
won't obey force stop commands and regardless of GPS on/off.)  HTC Incredible2 
with updated maps and MyTracks versions.  I only noticed this since October 20, 
so it might be related to the Oct 14 updated of MyTracks?  

I have the same observation as in Comment 21 (battery usage monitor, a 
google.something? appears momentarily, replaced by My Tracks).  

I love the app, but can't use it if it drains my battery in a couple hours when 
I'm not using it!  

Original comment by mrneg...@gmail.com on 29 Oct 2011 at 9:32

GoogleCodeExporter commented 9 years ago
Same issue here. Haven't used the app for days but it is showing 18% battery 
use, second only to display. It has only started doing this since I made my 
first recording about a week ago; it didn't do it before then. I have force 
stopped the app several times but it still keeps using battery.

Original comment by spu...@gmail.com on 20 Nov 2011 at 12:26

GoogleCodeExporter commented 9 years ago
I think that what is written in comment 19 above is probably correct.

On my galaxy s2 mytracks uses a lot of power without me launching it after 
reboot, but if I use some memory-intensive app mytracks stops to drain the 
battery. I therefore think it has something to do with lazy destruction as 
described in comment 19.

This can also be used as a work-around for the problem: Launch an app that uses 
a lot of memory after you have been using mytracks to force android to kill all 
remains of it.

Original comment by andeb...@gmail.com on 1 Dec 2011 at 12:17

GoogleCodeExporter commented 9 years ago
I also have noted similar behavior on my MyTouch Slider 3G but because I've 
been aware of the Garbage Collection policy(which is very different than on 
non-mobile machines) on mobile devices described in comment 19, I haven't 
really given this much of a second thought... For <most> apps the policy is 
logical, it might mot be for My Tracks, although generally it's bad policy to 
explicitly kill the app's process, maybe it should be done here.

In the meantime, because My Tracks wouldn't be nearly the only app which maybe 
should be killed quickly, every serious User really needs to install a Task 
Killer app of some sort.

IMO,
TSU

Original comment by tonysu...@gmail.com on 20 Dec 2011 at 12:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
MyTracks represents over 20% of my daily battery usage, eventhought it more 
than 3 weeks I did not opened it. This happens in Android 2.3.6 and 4.0.3. It 
does not wake up the phone according to the battery statistics.
I don't really know if it's draining my battery or the bug is that Android 
thinks it is.

Original comment by alonsof....@gmail.com on 27 Apr 2012 at 3:29

GoogleCodeExporter commented 9 years ago
I force closed MyTracks several days ago and did not restart it. After fully 
charging last night, MyTracks was reported at 9% of the battery drain this 
morning. Drilling in to it showed no details, cpu time etc. I uninstalled 
MyTracks and the 9% battery drain figure has disappeared. This to me seems to 
be an issue with the battery log more so than MyTracks. I haven't noticed any 
particular battery drain with this, i was recently able to get almost 2 days 
with light usage before with Mytracks reported at 20% ish of the total battery 
drain. Samsung g s2 ICS, issue was on previous very of Android as well.

Original comment by aidanome...@gmail.com on 1 Jun 2012 at 9:17

GoogleCodeExporter commented 9 years ago
On Xperia Active (Android 2.3.4), if I save a track and don't connect the phone 
to PC via USB, the battery will drain slowly, about 100% in 24h. I have 
configured the USB to mass storage mode, which ought to force a kill of 
MyTracks when I plug in the computer.
Curiously, in the battery drain mode, the "what's used the battery" only shows 
network standby and phone standby. GSM or MyTracks are much lower in the list.
It looks like this experience is in line with Comment 19.

Original comment by msmak...@gmail.com on 23 Jun 2012 at 7:02

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
The bug is reproducing for me on Xperia U. I am using Android 2.3.7 with My 
Tracks 2.0 released in July 2012. I see that in the My Tracks is using over 10% 
of battery all the time even if I switch off GPS and Data traffic.

Original comment by vaamarn...@gmail.com on 24 Sep 2012 at 3:15

Attachments:

GoogleCodeExporter commented 9 years ago
A bit more information about this battery drain.

Using a battery monitor called "GSam Battery Monitor", it give more information 
about what "My Tracks" is using: "Orientation", and it's the only things use by 
"My Tracks" when it does not track anything (no CPU, no wakelock ..)

My phone: Galaxy SIII, Android ICS.

Hope this help.

Original comment by anthony....@gmail.com on 3 Oct 2012 at 1:02

GoogleCodeExporter commented 9 years ago
I have this problem. Galaxy SII (2.3.4). It only seems to have started since 
the latest update of My Tracks (v2.0.2). 

Battery usage is 27% even though the application has not been used and GPS is 
turned off. This is halving my battery life and I'll have to uninstall it if 
there isn't a fix V soon.

Original comment by ChrisLea...@googlemail.com on 16 Oct 2012 at 8:49

GoogleCodeExporter commented 9 years ago
Problem still exists with My Tracks 2.0.2. Galaxy S3, ICS 4.04.

After using My Tracks then stopping the geo-logging, the GPS and/or My Tracks 
appears to keep sucking battery. "Killing" the app by "swiping right" on the 
app list, does nothing. Neither does "Stopping" the app with the Application 
Manager. I can see the GPS indicator in the notification bar is still active.

Rebooting is the only way I've found to fix this.

If there is any other info I can provide, please let me know.

Original comment by jus...@smithpolglase.com on 25 Oct 2012 at 6:56

GoogleCodeExporter commented 9 years ago
I have the same problem on my Samsung Galaxy Note. The name which temporarily 
shows up on Battery Use refresh near the generic Android icon is 
com.google.android.maps.mytrack.

I deinstall mytracks. I will install it again if I get an email that this issue 
is solved.

Original comment by steie...@gmail.com on 2 Dec 2012 at 10:02

GoogleCodeExporter commented 9 years ago
Same problem on Galaxy Nexus.
So in my opinion that should not be phone specific problem, its a google phone.
I temporary fixed the problem by set the "Auto-resume" option to "never" in 
Settings > Recording and reboot the phone. 
I remember the problem occurs when I cancel to save the current running track. 
But after that i saved the track.
regards,
david

----------
Galaxy Nexus
Android 4.2.2
MyTracks 2.0.4

Original comment by apphoria...@googlemail.com on 4 Jun 2013 at 5:14

GoogleCodeExporter commented 9 years ago
In response to comment #35, we have removed the "Orientation" sensor in My 
Tracks version 2.0.5.

Original comment by jshih@google.com on 13 Jun 2013 at 6:09

GoogleCodeExporter commented 9 years ago
I need help to debug this further.

If you are still experiencing this, wondering if you can send me an email 
(jshih@google.com) so that I can email you a few APKs to try.

Based on the comments so far, the cause could be:
- process not killed
- resources like orientation sensor not released
...

Thanks
Jimmy

Original comment by jshih@google.com on 14 Jun 2013 at 12:57

GoogleCodeExporter commented 9 years ago
As I told in comment #10 (
https://code.google.com/p/mytracks/issues/detail?id=520#c10) the problem
disappeared after I installed a google maps update.

Original comment by giovanni...@gmail.com on 16 Jun 2013 at 8:39

GoogleCodeExporter commented 9 years ago
Going to mark as fixed. I removed the orientation sensor, checked all the 
places we acquire wake lock, etc.

Please reopen or file a new bug if this is still happening in version 2.0.5, 
should will be out soon.

Original comment by jshih@google.com on 17 Jun 2013 at 8:00

GoogleCodeExporter commented 9 years ago
Hi, I just recently installed My Tracks on my Galaxy Note 2 and it seems that 
it is a missive battery drain. So much so that my battery lost 10% of its 
charge in stand by just 20 minutes after receiving a full charge. I had the 
widget on my home page, but removed to see if that helps. If not i will have to 
uninstall

Original comment by themaxst...@gmail.com on 27 Jul 2013 at 5:38

GoogleCodeExporter commented 9 years ago
Please remove the widget for now. We have fixed the issue and is in the process 
of releasing the next version, 2.0.5 with the fix.

Original comment by jshih@google.com on 29 Jul 2013 at 4:59

GoogleCodeExporter commented 9 years ago
I'm getting very similar symptoms with MyTracks v2.0.7 on my Samsung Galaxy S4. 
 The app hops back into life, even after the phone has been rebooted, and it 
drains the battery.  See attached screen shot, showing that the app consumed 
nearly 20% of my battery overnight.  This was after a full charge whilst the 
phone was off and all I did was turn the phone on before going to bed.  I 
hadn't used MyTracks to record anything for five days.

Original comment by jeremy.s...@googlemail.com on 10 Oct 2014 at 7:40

Attachments:

GoogleCodeExporter commented 9 years ago
I'm getting very similar symptoms with MyTracks v2.0.9 on my Samsung Galaxy 
Note 4

Original comment by Attil.Ko...@gmail.com on 29 Jan 2015 at 5:04

GoogleCodeExporter commented 9 years ago
Same problem with Sony Z3. Have to stop app manually to stop battery drain.

Original comment by ghn...@gmail.com on 11 Mar 2015 at 10:03