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.
** Attachment added: "file that works"
http://launchpadlibrarian.net/47983663/ima-zen-lucid-20100501-1.tgz
--
pybootchartgui crashed with ValueError in get_proc_state()
https://bugs.launchpad.net/bugs/343215
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs