Unable to execute bootchart

Showing results for 
Search instead for 
Did you mean: 

Unable to execute bootchart

Senior Contributor III



I got the bootchart data from IMX8QM. But, I unable to open the data. I got following error,

vino@Vm:~$ bootchart
/usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
warnings.warn(str(e), _gtk.Warning)
No path given, trying /var/log/bootchart.tgz
parsing '/var/log/bootchart.tgz'
parsing 'enabled'
parsing 'header'
parsing 'proc_diskstats.log'
parsing 'proc_ps.log'
warning: no parent for pid '2' with ppid '0'
parsing 'proc_stat.log'
parsing 'start'
merged 0 logger processes
pruned 73 process, 0 exploders, 11 threads, and 1 runs
Traceback (most recent call last):
File "/usr/bin/bootchart", line 23, in <module>
File "/usr/lib/python2.7/dist-packages/pybootchartgui/main.py", line 137, in main
File "/usr/lib/python2.7/dist-packages/pybootchartgui/main.py", line 128, in render
batch.render(writer, res, options, filename)
File "/usr/lib/python2.7/dist-packages/pybootchartgui/batch.py", line 41, in render
draw.render(ctx, options, *res)
File "/usr/lib/python2.7/dist-packages/pybootchartgui/draw.py", line 282, in render
draw_chart(ctx, IO_COLOR, True, chart_rect, [(sample.time, sample.util) for sample in disk_stats], proc_tree)
File "/usr/lib/python2.7/dist-packages/pybootchartgui/draw.py", line 201, in draw_chart
yscale = float(chart_bounds[3]) / max(y for (x,y) in data)
ZeroDivisionError: float division by zero


Linux Version : 16.04

Bootchart: IMX8QM-MEK Android 9 Automotive


Thanks & Regards,

Vinothkumar Sekar
0 Kudos
0 Replies