Skip Menu |
 

This queue is for tickets about the SVG-Graph CPAN distribution.

Report information
The Basics
Id: 77316
Status: open
Priority: 0/
Queue: SVG-Graph

People
Owner: Nobody in particular
Requestors: gene [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.04
Fixed in: (no value)



Download (untitled) / with headers
text/plain 605b
The SYNOPSIS works great with qw(1 2 3 4 5). But if you replace each seed number with 0, like: my @data = map {SVG::Graph::Data::Datum->new(x => $_,y => $_^2)} qw(0 0 0 0 0); When the code gets to print $g->draw; You get back: Illegal division by zero at /opt/local/lib/perl5/site_perl/5.12.3/SVG/Graph/Glyph/axis.pm line 25. After a bit of investigation, I found if the first 3 consecutive values of either the x, y or z are identical, then you get the error. I have set this ticket to "Critical" because this is a show-stopper, for my current work. Please change the severity if I'm mistaken.
Download (untitled) / with headers
text/plain 296b
Whoops. 1. The error definitely happens for "all zeros" or all of any number. But I am not sure now about my "first 3 consecutive" theory now. 2. Illegal division by zero at /opt/local/lib/perl5/site_perl/5.12.3/SVG/Graph/Glyph/axis.pm line 20. (not 25 - I was accidentally using version 0.02)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.