-
Notifications
You must be signed in to change notification settings - Fork 955
Can't parse aggregated battery stats on Android 6.0 #94
Comments
I'm seeing the same with pure CM13 (recent 2 nightlies, ) for Xiaomi Mi5.
I tried generating a bug report via adb through Windows 8.1, via console on the phone, and via the Developer Options menu. I always get a few errors, including:
I tried checking out an older revision as well (pre I/O 2016), without success in parsing it. I'd be willing to try if anyone has suggestions on workarounds. |
I'll generate the report from my phone and give it a shot. Will get back on it. |
Same on Android 6.0.1 (CM13). Both with a report generated from the Dev. options and thru ADB.
If you want, I can provide the bugreport file itself. |
Based on the last set of errors, it looks like the report you're uploading contains multiple batterystats logs (there are multiple "vers" lines and at least two "bt" lines). Battery Historian is complaining because it only expects one log per file. |
Here is another report that is failing: |
I met this problem when using Android 7.1.1, too. |
Everyone here, I have found workaround to make bugreport files from LineageOS work:
|
Same problem happening to me with CM13 in OPO. I tried the solution proposed by @matejdro but I couldn't find any line that contained that characters, so I guess it just works for LineageOS. |
@matejdro, your report has a different issue. Some of the csv lines are printed in a way that is invalid and not expected. In your case, you have lines such as "9,0,l,pr,irq/420-HWK,syn,0,100,0,0,0,0" where irq/420-HWK,syn are interpreted as two separate entries, when they should be one. In those cases, they need to be surrounded by quotes: "9,0,l,pr,"irq/420-HWK,syn",0,100,0,0,0,0" to be treated as one entry. |
@kwadkore All you did was invalidate a bad solution, but did not resolve the original comment and then closed the thread immediately after. I shouldn't have to do this type of black magic fuckery to get proper life out of my batteries, but here I am. Never had to do this on iPhone, so I expect better treatment. Ever since I bought this Galaxy S8 I've been trying to use Historian, but I can't get it to parse the data. I'm not a developer, but I have as much right as anyone else to try to find a solution that isn't just immediately closed by a Googler who is unwilling to put any semblance of support into their solutions. |
@tehdef I don't know what problem your reports are experiencing. The last issue I commented is actually a problem with the Android reporting system. I have fixed it in the upcoming Android O release, but unfortunately it won't be fixed for previous versions. I don't think there's a good way to account in Battery Historian for all the possible invalid output that could be printed due to the underlying (now fixed) issue. That is why I closed this thread. |
Okay, Thank you. It would be nice if you would say these things though so that we are aware of what is or is not being fixed. I ended up just wiping my device because I could not get the graphing to populate on my S8. There are a few other existing comments on Samsung devices here in the Issues. |
My apologies for not stating that earlier. |
@kwadkore |
I don't see anything wrong in your report. |
…tions. Some names can include commas, and if they're not surrounded by quotes, then CSV parsing breaks, as was the case in google/battery-historian#94 (comment) and several other circumstances. Test: flashed local device and ran batterystats output through Historian Change-Id: I070c5d873d9f79996a581bf0a5f664136c0af454
I'm running AOKP, a CM-based ROM (Marshmallow).
Generated bug report using ADB on Windows. The report is generated or rather, history stats are generated. System stats and app stats are empty. No visual data is generated as well. Historian V2 is empty and Historian just says 'Please wait.. drawing chart'.
I don't know if it's:
A CM issue. The historian can't recognize any system wakelocks and files it under '(unknown)'. The CM version also says '(unknown)'.
ADB/Windows issue. Will try on Linux and get back on this.
Android 6.0 issue.
Any suggestions?
The text was updated successfully, but these errors were encountered: