Re: PieChart3D Bug

"Nathaniel G. Auvil" <[email protected]> Fri, 26 Sep 2003 05:43:10 -0700 (PDT)
Newsgroups gmane.comp.krysalis.jcharts.devel
Message-ID <[email protected]>
ok.  Do you think it would be worth while to check for all zero datasets?

Cool on the check-ins.  I am hoping to have some time to get back into things here shortly...



--- Chris McKay <[email protected]> wrote:
> Just a quicky while it's still on my mind, just in case anyone else hits
> the problem.
> 
> With jCharts 1.0.0 development code base.
> 
> If all datapoints in a PieChart3D dataset are 0 it seems that for
> certain JVMs a Sun class goes into a tight loop.
> 
> Red Hat Linux release 7.3 (Valhalla)
> Kernel 2.4.18-3 on an i686
> 
> java version "1.4.0_02"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
> Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode)
> 
> And 1.4.1
> 
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
> Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
> 
> Loops
> 
> Windows XP SUN JVM 1.4.2
> Throws this exception
> 
> sun.dc.pr.PRException: endPath: bad path
>         at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:537)
>         at
> sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRenderer.java
> :374)
>         at
> sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRenderer.java:
> 57)
>         at
> sun.java2d.pipe.DuctusShapeRenderer.draw(DuctusShapeRenderer.java:45)
>         at sun.java2d.pipe.ValidatePipe.draw(ValidatePipe.java:114)
>         at sun.java2d.SunGraphics2D.draw(SunGraphics2D.java:2128)
>         at
> org.krysalis.jcharts.properties.util.ChartStroke.draw(ChartStroke.java:9
> 9)
>         at
> org.krysalis.jcharts.nonAxisChart.PieChart3D.drawFraming(PieChart3D.java
> :697)
>         at
> org.krysalis.jcharts.nonAxisChart.PieChart3D.render(PieChart3D.java:471)
>         at
> org.krysalis.jcharts.nonAxisChart.PieChart3D.renderChart(PieChart3D.java
> :338
> 
> The upside of all this is I now have a wonderfully tuned Tomcat engine
> as I wrestled with what I initially thought was a performance problem
> ...
> 
> As an update for what we are doing. We are in acceptance testing at the
> moment. We'll be looking to checking in our changes to the jCharts 1.0
> tree towards the end of October. 3D bars, rotated X axis text, plus a
> few other bits of bobs.
> 
> C
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> jCharts-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jcharts-developers


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf