Bug 14547 - ZeroDivisionError in oescripts.OEPybootchartguyTests.test_pybootchartguy_to_generate_build_pdf_output
Summary: ZeroDivisionError in oescripts.OEPybootchartguyTests.test_pybootchartguy_to_g...
Status: RESOLVED FIXED
Alias: None
Product: Functional (self) Testing
Classification: QA/Testing
Component: oe-selftest (show other bugs)
Version: 3.4
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.4 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard: AB-INT
Depends on:
Blocks:
 
Reported: 2021-09-16 09:24 UTC by Alexandre Belloni
Modified: 2021-09-22 08:33 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Belloni 2021-09-16 09:24:24 UTC
AssertionError: Command '/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui.py  /home/pokybuild/yocto-worker/oe-selftest/build/build-st-19731/tmp/buildstats/20210827020840 -o /home/pokybuild/yocto-worker/oe-selftest/build/build-st-19731/tmp/charts -f pdf' returned non-zero exit status 1:
Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui.py", line 23, in <module>
    sys.exit(main())
  File "/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/main.py", line 174, in main
    render()
  File "/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/main.py", line 165, in render
    batch.render(writer, r, options, f)
  File "/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/batch.py", line 43, in render
    draw.render (ctx, options, 1.0, trace)
  File "/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/draw.py", line 581, in render
    curr_y = render_charts (ctx, options, clip, trace, curr_y, w, h, sec_w)
  File "/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/draw.py", line 453, in render_charts
    draw_chart (ctx, VOLUME_COLORS[(i - 1) % len(VOLUME_COLORS)], True, chart_rect, \
  File "/home/pokybuild/yocto-worker/oe-selftest/build/scripts/pybootchartgui/pybootchartgui/draw.py", line 270, in draw_chart
    xscale = float (chart_bounds[2]) / (max_x - x_shift)
ZeroDivisionError: float division by zero

https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1574/steps/14/logs/stdio