Unable to execute bootchart

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to execute bootchart

Jump to solution
1,177 Views
vinothkumars
Senior Contributor IV

NXP,

 

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
False
Traceback (most recent call last):
File "/usr/bin/bootchart", line 23, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/pybootchartgui/main.py", line 137, in main
render()
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,

Regards,
Vinothkumar Sekar
0 Kudos
1 Solution
799 Views
Maximus
NXP Employee
NXP Employee

Modify the following file. 

 

sudo vim /usr/lib/python2.7/dist-packages/pybootchartgui/draw.py

200         xscale = float(chart_bounds[2]) / max(0.00001, max(x for (x,y) in data))
201         yscale = float(chart_bounds[3]) / max(0.00001, max(y for (x,y) in data))

View solution in original post

0 Kudos
1 Reply
800 Views
Maximus
NXP Employee
NXP Employee

Modify the following file. 

 

sudo vim /usr/lib/python2.7/dist-packages/pybootchartgui/draw.py

200         xscale = float(chart_bounds[2]) / max(0.00001, max(x for (x,y) in data))
201         yscale = float(chart_bounds[3]) / max(0.00001, max(y for (x,y) in data))

0 Kudos