google / battery-historian

Battery Historian is a tool to analyze battery consumers using Android "bugreport" files.
Other
5.31k stars 957 forks source link

Could not parse aggregated battery stats. #141

Open mgasiorowski opened 6 years ago

mgasiorowski commented 6 years ago

Hi :)

I'm using docker image, launched with this command: docker run -p <port>:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999

System: Mac OS Sierra 10.12.6

When I try read bureport.txt, I have this note: Note: Could not parse aggregated battery stats.

In ERRORS I have:

multiple vers lines encountered
system battery field already exists
could not parse aggregated battery stats
open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory
open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory
device capacity is 0

And from logs:

2017/11/13 16:57:38 Trace starting analysisServer processing for: POST
2017/11/13 16:57:38 Trace starting reading uploaded file. 15496934 bytes
2017/11/13 16:57:39 failed to extract time information from bugreport dumpstate: open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory
2017/11/13 16:57:39 Trace started analyzing "bugreport.txt" file.
2017/11/13 16:57:39 Trace finished processing checkin.
2017/11/13 16:57:39 Trace finished generating Historian plot.
2017/11/13 16:57:39 Trace finished processing summary data.
2017/11/13 16:57:39 Trace finished analyzing "bugreport.txt" file.
2017/11/13 16:57:40 Trace ended analyzing file.
Daimonion1980 commented 6 years ago

Same here using this docker-image:

https://hub.docker.com/r/bhaavan/battery-historian/

Maybe it has something todo with the image?

anuraagbaishya commented 6 years ago

Finally, found a solution and it's simple as 1..2..3

  1. Open https://bathist.ef.lc/
  2. Upload bugreport
  3. Click Submit

You'll find the exact output as expected from historian without having to download or install anything (except adb)

Big thanks to whoever made this

Fintasys commented 6 years ago

Even there I'm getting error like this: error parsing pr: strconv.ParseFloat: parsing "": invalid syntax could not parse aggregated battery stats open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory ** Error in 9,h,4,Esw=7 with Esw=7 : encountered multiple Esw events between a single pair of +S/-S events open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory device capacity is 0

Smartphone: Huawei Honor 9

valeriyqa commented 5 years ago

I've tried battery-historian at docker, online service and the service from previous comment https://bathist.ef.lc/

Every time it throws the same error

exception found in battery dump open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory ** Error in 9,h,0,Bl=98,Bs=n,Bh=g,Bp=n,Bt=280 cputemp=0 boardtemp=0,Bv=4407,+r,+w,+Wl,+S,Pst=off,Pss= with Pss= : unknown phone signal strength = "=" open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory device capacity is 0

^^That error is shown for Meizu M5S

error parsing kwl: strconv.ParseFloat: parsing "qcrypto": invalid syntax could not parse aggregated battery stats open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory Error in 9,h,37,-a,+S,Pss=5,Sb=4,Esw=2 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,10109,+r,+w=7,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,1503,+r,+w=7,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,9827,+r,+w=7,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,11203,+r,+w=7,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,551,+r,+w=7,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,26,-w,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,84,+w=28,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,66,-w,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,28,-w,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,1128,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,5110,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,7665,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,2567,+Wr,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,5120,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,7502,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,15359,Pss=5,+Esy=108 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,581,-Psc,Pst=in,Pss=5,+Etp=159 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,3375,Pss=5,-Etw=4 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,2263,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,5217,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,2962,Pss=5,+Etw=4 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,2905,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,2664,Pss=5,+Esy=48 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,7274,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,4807,Pss=5,-Etp=159 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,7670,Pss=5 with Pss=5 : unknown phone signal strength = "5" Error in 9,h,10221,Pss=5 with Pss=5 : unknown phone signal strength = "5" open /usr/lib/go-1.6/lib/time/zoneinfo.zip: no such file or directory device capacity is 0

^^ And that error is shown for LG G3

Is there something wrong with the android reports?

UPD: gcr.io/android-battery-historian/stable:3.0 - the image name at the docker

Fintasys commented 5 years ago

@valeriyqa Did you try? Works for me adb bugreport [path/]bugreport.zip instead of adb bugreport > [path/]bugreport.zip

valeriyqa commented 5 years ago

I have generated the report within the android system. Settings > developer tools > report an error

And i have tried the adb bugreport [path/]bugreport.zip command. Still getting the same error on Meizu M5S

UPD Also I tried a .txt format of the report - still the same error. I am confused because of different errors on different device's reports...

Riven0108 commented 4 years ago

You don't need battery historian in Android Q to battery info from the bugreport logs.

See: https://www.reddit.com/r/GooglePixel/comments/ehmuwc/comment/fcn0uvp