crashes with "ZeroDivisionError: float division"

Bug #622644 reported by Timo Aaltonen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pybootchartgui (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: pybootchartgui

Generating a bootchart on a HP 460c blade (12 core, 96GB) running 10.04 fails:

kosh l # bootchart --format=png --crop-after=compiz,metacity,mutter,kwin,xfwm4 --annotate=ureadahead,mountall,hostname,hwclock --annotate=Xorg --annotate=gdm-session-worker kosh-lucid-20100820-1.tgz
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
parsing 'kosh-lucid-20100820-1.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 783 process, 0 exploders, 849 threads, and 19 runs
False
Traceback (most recent call last):
  File "/usr/bin/bootchart", 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 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/pymodules/python2.6/pybootchartgui/draw.py", line 201, in draw_chart
    yscale = float(chart_bounds[3]) / max(y for (x,y) in data)
ZeroDivisionError: float division

I'd attach the tarball but it's over 17MB.

Revision history for this message
Anders Norgaard (anders-norgaard) wrote :

Hi Timo,

Hmm - if you can put it somewhere just for a short while, I'll download it and have a look.

Best
Anders

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.