bootchart icon indicating copy to clipboard operation
bootchart copied to clipboard

What could be the problem here... (ZeroDivisionError: float division by zero)

Open Arunvist opened this issue 3 years ago • 1 comments

Can you please help us, what could be the problem in generated bootchart data? attached data as well...

k@IND81LW7Q2-W:/tmp/android-bootchart$ pybootchartgui bootchart.tar parsing 'bootchart.tar' parsing 'header' parsing 'proc_stat.log' parsing 'proc_ps.log' parsing 'proc_diskstats.log' merged 0 logger processes pruned 146 process, 0 exploders, 1 threads, and 1 runs False Traceback (most recent call last): File "/usr/bin/pybootchartgui", line 23, in 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

bootchart.zip

Arunvist avatar Jan 05 '22 09:01 Arunvist

This might be a bit late, and I'm just a user of this application, but I think the issue lies in the pruning algorithm. I can make your bootchart.tar work just fine with the following:

python3 ./pybootchartgui.py --show-all -n -f svg bootchart.tar

I could most probably fix this, but I think the owner of this repo disappeared.

antoine-girard-vallee avatar Apr 12 '22 13:04 antoine-girard-vallee