New issue 3348 by plasticg...@gmail.com: K9 running CPU and Data constantly.
http://code.google.com/p/k9mail/issues/detail?id=3348
Is this a bug or a support request? If it's a support request, please join
the discussion mailing list at http://groups.google.com/group/k-9-mail and
ask there.
What's going wrong?
*K9 Mail is a great program. I changed nothing on my phone and Monday
morning it started doing this. It runs my cpu constantly, and sends and
receives data constantly. This results in drastically increased battery
usage, as well an an unknown amount of data usage.*
Have you looked for another ticket that might already be about your bug?
If not, visit http://code.google.com/p/k9mail/issues/searchtips before
submitting this bug report.
What steps will reproduce the problem?
1.It happens the entire time K9 runs
2.
3.
What do you expect to have happen?
It normally works perfect.
What do you see instead?
Phone gets hot, battery is used up very quickly, and data is sent and
received constantly. K9 shows between 3-8 percent cpu usage.
What version of K-9 are you using?
Version 3.605
Is your email account a POP account, Exchange Account or an IMAP account?
3 pop's and 1 gmail.
In order for us to have a chance at helping you with a complex issue, we're
going to need a debug log from your phone. You can dramatically increase
the chances of a quick and successful resolution to this issue by following
the directions at https://github.com/k9mail/k-9/wiki/LoggingErrors -- If
you can't give us a trace, there's a pretty good chance that we won't be
able to act on your bug report.
What else should we know?
*It just started on Monday morning. I have not modified anthing in my phone
in 2 weeks. My phone is a Motorola Atrix MB860, Software Android 2.2.2,
Version.4.1.83.MB860.ATT.en.US. I do have a "pseudo-ROM" installed
called "Gingerblur." That has been on the phone for 2 weeks before this
problem surfaced. I am going to include the alogcat log I retrieved here.
It just kept running and never stopped. I guess it is in some kind of loop.
I hope this in enough of the log.
Attachments:
K9logfile1.txt 25.9 KB
Tried a couple things to fix it last night and they did not work. I
restored my phone to current moto/att software, still happens. Then the
newest version of pseudo ROM "GingerBlur" and still happened. Then I
restored K9 mail using Titanium Backup to a backup I made on the 13th, well
before this started. Still does it. I changed the poll frequency on all my
accounts to "never" this morning and it still does it. At least now it
hopefully won't keep coming back on all the time by itself. I didn't
realize how much I used this program. If I cannot find a solution for this
I will have to use a different program and I reeeeeely don't want to!! Love
my k9 mail!
Issue 3364 has been merged into this issue.
I've the same problem from time to time.
Sometimes the batery drains very fast, and the phone get a little hot.
To see what causes this problem I use "PowerTutor".
K9 consumes much more energy than any other program or task when the batery
drains so fast.
This doesn't hapen all the time, but from time to time it does.
The problem does not apear when I'm conected to a WLAN. (or at least the
power drain is not as stron as on a 3G connection)
K9 seems to keep the 3G connection open...wich causes the power drain, but
it doesn't transfer lot of data...just a litle bit...about 50kb per hour.
I'm running CM7.0.3 on a HTC Desire
I have the same problem since the update to 3.802. Keeps a constant
connection.
Using HTC Desire with MiuiXJ 1.6.24. Upgraded to 1.7.1 and still the same.
Have now removed K9 altogether.
Using 3x gmail accounts. Standard gmail app receives push only. K9 was
draining 15-20% battery per hour when running.
I used the MIUI data monitor and battery monitor to see that K9 was the
problem.
Anyone with this problem- please record debug logs per
https://github.com/k9mail/k-9/wiki/LoggingErrors and attach them here. I'd
LOVE to see this fixed (or at least properly triaged). If someone gets us
good logs, we can get it fixed.
Is there something wrong with the log that I posted? I have never made one
before so I just hope it is right. It is still in the op.
*Update. After I posted this I got frustrated and just "froze" k9 mail
using titanium backup. This keeps it completely dormant without deleting or
modifying the program at all. Last week I needed some setting from it to
help someone with their email so I "defrosted" it and rebooted my phone. It
has been working perfectly since then. The version is still 3.802 and I am
not sure if that is current or not, but I will not be updating it any time
soon. Until there is a fix for this it may be worth a shot to try freezing,
rebooting, defrosting, rebooting. I don't know why it works now but that is
all I did.
Since I installed watchdog on my Droid X, I've gotten 15 CPU usage alerts.
12 of them were for K-9 Mail. I have debug logging enabled and I have
aLogcat ready to go (filter, verbose, time format, etc.)... I will try to
grab the logs and send them over as soon as I get another alert.
I got an app alert (I believe it was at 14:14) and immediately attempted to
get the logs from aLogcat. As you can imagine it took a little while to
get it since the logs are verbose and K9 was already using a lot of CPU.
If it helps, the account that was being synced (or so it seems by the logs)
is an IMAP account on a rackspace (exchange-enabled) mail server. I also
use 2 other clients (mostly thunderbird/IMAP, but occasionally
outlook/exchange) to connect to this account. I believe Thunderbird was
connected, but idle at the time of this alert.
Total data transfer from K9 for the entire day yesterday was 3.81MB
(3.12MB downloads, 711.91KB uploads)
Log file attached:
I have 5 email accounts, the names of which I replaced with 11111111
through 55555555, and I replaced the non-special-character text in the
email header with asterisks.
I wasn't using the phone at the time of the alert, but I have noticed times
when the phone seems unresponsive, then I get a notification from K9, and
suddenly the phone is responsive again.
Phone info:
Droid X
Android 2.3.3
(kernel 2.6.32.9)
Attachments:
alogcat.2011-10-24-14-15-47-0400.txt 100 KB
Simulated again, this time triggering the sync manually, and with a more
complete log file. Applied the same sanitizing steps.
During another sync done just before this one, K9's CPU usage was near 70%
pretty much the whole time (checking at 10s intervals)
Based on my interpretation of the logs, manually triggered sync starts
around:
10-25 10:36:38.486
and completes around:
10-25 10:37:52.603
Total sync time for this account: 01:14.217
Attachments:
alogcat.2011-10-25-10-_36-45_37-55_-0400.txt 403 KB
@bbbthunda:
K-9 Mail using CPU cycles while message are being fetched is expected
behavior. This is not a bug.
Downloading messages is handled in a background thread with reduced
priority. There isn't much more we can do to keep the device responsive.
You should talk to your device manufacturer if this isn't working properly
with your device.
@cketti
Thanks, based on your explanation I now suspect some other background
process running in parallel to K-9 is likely causing the issue... to be
sure, I'll see if I can catch it being unresponsive again and try to grab
the logs during that time in case there's something weird going on.
I have gotten a few cpu alerts from "Base System" as well. In fact now
that I just checked it again, the last one was caught at 99.9%, which kind
of backs up what you said, since this one looks more suspicious.
I "unrolled" it so it will track the individual processes instead of
rolling them into one. Thanks again!
Issue 3678 has been merged into this issue.
I just turned syncing back on with K9 Data Killer and the problem seems to
have stopped. Its reading/writing only when polling, not 24/7. I don't know
what triggered this. Is a log file of it working useful?
Comment #14 on issue 3348 by cke...@gmail.com: K9 running CPU and Data
constantly.
http://code.google.com/p/k9mail/issues/detail?id=3348
No. I think I know what the problem is. Although I have no idea how it is
triggered.
The fix will take some time.
I just found this thread and was about to uninstall. I do not have logs
right now but for what its worth aside from the previously mentioned the
problem for me is not always constant. While I have noticed signifigantly
faster battery drain once installing k9, there are periods when the battery
will drain 30% +/- in less than an hour. I used battery monitor and os
monitor to determine it was K9. I have 6 accounts all with polling set to
never. However based on the logs it appears that the top accound in the
list which is a gmail account is constantly communicating.
You did say that you know what the problem is though. Is there anything
I/we can do in the short term to temporarily resolve this until it
officially fixed in an update? Like is there a setting we could change
like notifiction or other apps that could be effecting it?
Thanks
Disable push
Thanks
I have had this same problem on both of our company Samsung Galaxy S2
Skyrocket phones. I had to uninstall K-9 twice on each phone, prior to
finding this thread. Last week, I changed the Drafts folder to 2nd Class
and changed the setting to poll only 1st class folders. That has seemed to
work, for now. It has been 5 days without the problem.
Wow! It's really work. Switching off polling of the Draft folder stops
great traffic from K9.
Great thanks.
But I beleive that developers must correct this problen because it looks
like very often mentioned problem.