Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arunvist opened this issue Jan 5, 2022 · 1 comment

Comments

@Arunvist
Copy link

Arunvist commented Jan 5, 2022

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

@antoine-girard-vallee
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants