Hi, this bug "reappeared" suddenly yesterday, pybootchartgui cannot generate a .png for some .tgz, the error reported is
parsing '/var/log/bootchart/ima-zen-lucid-20100506-4.tgz' parsing 'header' parsing 'proc_stat.log' parsing 'proc_diskstats.log' parsing 'proc_ps.log' warning: no parent for pid '2' with ppid '0' merged 0 logger processes pruned 240 process, 0 exploders, 247 threads, and 30 runs False Traceback (most recent call last): File "/usr/bin/pybootchartgui", line 23, in <module> sys.exit(main()) File "/usr/lib/pymodules/python2.6/pybootchartgui/main.py", line 137, in main render() File "/usr/lib/pymodules/python2.6/pybootchartgui/main.py", line 128, in render batch.render(writer, res, options, filename) File "/usr/lib/pymodules/python2.6/pybootchartgui/batch.py", line 41, in render draw.render(ctx, options, *res) File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line 299, in render draw_process_bar_chart(ctx, proc_tree, times, curr_y + bar_h, w, h) File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line 319, in draw_process_bar_chart draw_processes_recursively(ctx, root, proc_tree, y, proc_h, chart_rect) File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line 357, in draw_processes_recursively child_x, child_y = draw_processes_recursively(ctx, child, proc_tree, next_y, proc_h, rect) File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line 349, in draw_processes_recursively draw_process_activity_colors(ctx, proc, proc_tree, x, y, w, proc_h, rect) File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line 376, in draw_process_activity_colors state = get_proc_state( sample.state ) File "/usr/lib/pymodules/python2.6/pybootchartgui/draw.py", line 105, in get_proc_state return "RSDTZXW".index(flag) + 1 ValueError: substring not found
For some .tgz it works (if I run pybootchartgui XXX it can generate a .png) but for some others files it fails.
I've the last version of bootchart/pybootchart with Ubuntu Lucid Lynx 10.04, 64-bit. I've using a custom vanilla kernel 2.6.33.3.
I attach two files, one that can be translated into .png and one that can not.
Hi, this bug "reappeared" suddenly yesterday, pybootchartgui cannot generate a .png for some .tgz, the error reported is
parsing '/var/log/ bootchart/ ima-zen- lucid-20100506- 4.tgz' .log' pybootchartgui" , line 23, in <module> exit(main( )) pymodules/ python2. 6/pybootchartgu i/main. py", line 137, in main pymodules/ python2. 6/pybootchartgu i/main. py", line 128, in render render( writer, res, options, filename) pymodules/ python2. 6/pybootchartgu i/batch. py", line 41, in render render( ctx, options, *res) pymodules/ python2. 6/pybootchartgu i/draw. py", line 299, in render process_ bar_chart( ctx, proc_tree, times, curr_y + bar_h, w, h) pymodules/ python2. 6/pybootchartgu i/draw. py", line 319, in draw_process_ bar_chart processes_ recursively( ctx, root, proc_tree, y, proc_h, chart_rect) pymodules/ python2. 6/pybootchartgu i/draw. py", line 357, in draw_processes_ recursively recursively( ctx, child, proc_tree, next_y, proc_h, rect) pymodules/ python2. 6/pybootchartgu i/draw. py", line 349, in draw_processes_ recursively process_ activity_ colors( ctx, proc, proc_tree, x, y, w, proc_h, rect) pymodules/ python2. 6/pybootchartgu i/draw. py", line 376, in draw_process_ activity_ colors pymodules/ python2. 6/pybootchartgu i/draw. py", line 105, in get_proc_state .index( flag) + 1
parsing 'header'
parsing 'proc_stat.log'
parsing 'proc_diskstats
parsing 'proc_ps.log'
warning: no parent for pid '2' with ppid '0'
merged 0 logger processes
pruned 240 process, 0 exploders, 247 threads, and 30 runs
False
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
render()
File "/usr/lib/
batch.
File "/usr/lib/
draw.
File "/usr/lib/
draw_
File "/usr/lib/
draw_
File "/usr/lib/
child_x, child_y = draw_processes_
File "/usr/lib/
draw_
File "/usr/lib/
state = get_proc_state( sample.state )
File "/usr/lib/
return "RSDTZXW"
ValueError: substring not found
For some .tgz it works (if I run pybootchartgui XXX it can generate a .png) but for some others files it fails.
I've the last version of bootchart/ pybootchart with Ubuntu Lucid Lynx 10.04, 64-bit.
I've using a custom vanilla kernel 2.6.33.3.
I attach two files, one that can be translated into .png and one that can not.