pybootchartgui gives ZeroDivisionError when parsing the tgz file generated by a beagleboard
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pybootchartgui (Ubuntu) |
Fix Released
|
Undecided
|
Ricardo Salveti |
Bug Description
Binary package hint: pybootchartgui
When running pybootchartgui against a bootchart tgz file generated by a Beagleboard device, it gives the following error:
rsalveti@
** Message: pygobject_
** Message: pygobject_
** Message: pygobject_
parsing 'beagle-
parsing 'header'
parsing 'proc_stat.log'
parsing 'proc_diskstats
parsing 'proc_ps.log'
warning: no parent for pid '2' with ppid '0'
merged 0 logger processes
pruned 102 process, 0 exploders, 53 threads, and 9 runs
False
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
render()
File "/usr/lib/
batch.
File "/usr/lib/
draw.
File "/usr/lib/
draw_chart(ctx, IO_COLOR, True, chart_rect, [(sample.time, sample.util) for sample in disk_stats], proc_tree)
File "/usr/lib/
yscale = float(chart_
ZeroDivisionError: float division
Distro: Maverick
Package: pybootchartgui 0+r141-0ubuntu1
The bootchart tgz file used is attached.
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: pybootchartgui 0+r141-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.35-14-generic x86_64
Architecture: amd64
Date: Tue Aug 17 00:25:43 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
ProcEnviron:
LANG=en_US.utf8
SHELL=/bin/bash
SourcePackage: pybootchartgui
Changed in pybootchartgui (Ubuntu): | |
assignee: | nobody → Ricardo Salveti (rsalveti) |
status: | New → In Progress |
tags: | added: patch |
Attaching the debdiff with a very simple fix.
The problem happens because at a BeagleBoard device (or Panda) we usually use the mmcblk disk as the root device, and this is not included at the DISK_REGEX used by pybootchartgui.
This patch was also submitted upstream.