xrmx / bootchart

merge of bootchart-collector and pybootchartgui
GNU General Public License v2.0
233 stars 88 forks source link

Error when running pybootchartgui #39

Closed AzP closed 12 years ago

AzP commented 12 years ago

I'm using Gentoo and bootchart 14.4 (the log is generated using 14.2 since I just updated on a running computer), and when running pybootchartgui I get the following error. I got the same parsing the logs with 14.2:

peter@skare$ pybootchartgui 
No path given, trying /var/log/bootchart.tgz
parsing '/var/log/bootchart.tgz'
parsing 'header'
parsing 'dmesg'
parsing 'cmdline2.log'
parsing 'paternity.log'
Odd paternity line ''
parsing 'proc_cpuinfo.log'
parsing 'proc_diskstats.log'
parsing 'proc_meminfo.log'
parsing 'proc_stat.log'
parsing 'taskstats.log'
Traceback (most recent call last):
  File "/usr/bin/pybootchartgui", line 23, in <module>
    sys.exit(main())
  File "/usr/lib64/python2.7/site-packages/pybootchartgui/main.py", line 124, in main
    res = parsing.Trace(writer, args, options)
  File "/usr/lib64/python2.7/site-packages/pybootchartgui/parsing.py", line 46, in __init__
    parse_paths (writer, self, paths)
  File "/usr/lib64/python2.7/site-packages/pybootchartgui/parsing.py", line 679, in parse_paths
    state = _do_parse(writer, state, name, tf.extractfile(name))
  File "/usr/lib64/python2.7/site-packages/pybootchartgui/parsing.py", line 630, in _do_parse
    state.ps_stats = _parse_taskstats_log(writer, file)
  File "/usr/lib64/python2.7/site-packages/pybootchartgui/parsing.py", line 321, in _parse_taskstats_log
    cpu_ns, blkio_delay_ns, swapin_delay_ns = long(tokens[-3]), long(tokens[-2]), long(tokens[-1]),
ValueError: invalid literal for long() with base 10: 'bootchart-colle'
AzP commented 12 years ago

peter@skare$ python2.7 -V Python 2.7.3

xrmx commented 12 years ago

Could you please post your /var/log/bootchart.tgz somewhere so i can download it please? The error suggests that some file changed its layout. Which kernel do you have?

AzP commented 12 years ago

I'm using the Gentoo kernel:

root@skare$ uname -a Linux skare 3.3.5-gentoo #8 SMP PREEMPT Mon Jun 4 23:13:15 CEST 2012 x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux

And here's the file: http://dl.dropbox.com/u/55732698/bootchart.tgz

xrmx commented 12 years ago

Thanks for reporting the issue, should be fixed in lastest git.