Re: PRException again

From: Jeff Mathis <jeff.mathis@biosgroup.com>
Date: Mon May 13 2002 - 14:43:17 EDT

Excellent piece of detective work!

Yes, we have anti-aliasing turned on -- we override the

     public void render(Graphics g)

method on OMGraphic.java in order to turn anti-aliasing on. All makes sense.

I wonder how many other undocumented exceptions exist in the java world?

thanks again. not sure to how correct for this. we might catch the
exception and pop-up a dialog saying "you can't zoom this far".
Once this exception is thrown, all kinds of bad things happen.

thanks again

jeff
At 02:34 PM 5/13/2002 -0400, Don Dietrick wrote:
>Hi Jeff,
>
>The Java news groups have some information about this exception, which is
>undocumented. Apparently, It happens with all jdks (including 1.4).
>
>If you turn off/on the antialias rendering hints, you either get the
>stair-stepping or the exception.
>
>Cheers,
>
>Don
>
>
>On Monday, May 13, 2002, at 01:12 PM, Jeff Mathis wrote:
>
>>we are using 1.3.1.
>>
>>could very well be clipping of the circle. it only happens when we really
>>zoom in.
>>
>>weird thing is I don't know where a PRException is documented. The output
>>string also lacks information as to what is really going on.
>>
>>If we get some time, I'll look into it further. Maybe post some messages
>>with sun to at least find out the conditions under which this type of
>>exception is thrown
>>
>>jeff
>>At 12:59 PM 5/13/2002 -0400, Don Dietrick wrote:
>>>Hi Jeff,
>>>
>>>I've never seen this. Do you think it may have something to do with
>>>clipping of the circle, if the x/y pixel size of the circle is getting too big?
>>>
>>>What JDK are you using?
>>>
>>>- Don
>>>
>>>
>>>
>>>On Wednesday, May 8, 2002, at 02:34 PM, Jeff Mathis wrote:
>>>
>>>>Hello all,
>>>>
>>>>awhile ago we reported this exception. We've now seen it again. It
>>>>comes when we try and zoom in repeatedly on an OMCircle. It may happen
>>>>with other graphic objects.
>>>>
>>>>The question is, is this something in the openmap rendering, or is it a
>>>>swing problem?
>>>>
>>>>thanks
>>>>
>>>>jeff
>>>>
>>>>sun.dc.pr.PRException: endPath: bad path
>>>> at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:540)
>>>> at
>>>> sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRenava:296)
>>>> at
>>>> sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRend.va:59)
>>>> at sun.java2d.pipe.DuctusShapeRenderer.fill(DuctusShapeRenderer.j
>>>>
>>>> at sun.java2d.pipe.PixelToShapeConverter.fillOval(PixelToShapeCon
>>>>java:69)
>>>> at sun.java2d.pipe.ValidatePipe.fillOval(ValidatePipe.java:70)
>>>> at sun.java2d.SunGraphics2D.fillOval(SunGraphics2D.java:1530)
>>>> at com.bbn.openmap.omGraphics.OMCircle.render(OMCircle.java:630)
>>>> at com.biosgroup.alac.gui.map.PrettyCircle.render(PrettyCircle.ja
>>>>
>>>> at com.bbn.openmap.layer.location.Location.renderLocation(Locatio
>>>>585)
>>>> at com.bbn.openmap.layer.location.LocationLayer.paint(LocationLay
>>>>:485)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:7
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>1)
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>5)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at com.bbn.openmap.MapBean.paint(MapBean.java:661)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
>>>> at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
>>>> at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
>>>> at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.ja
>>>>
>>>> at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run
>>>>EventQueueUtilities.java:124)
>>>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:1
>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
>>>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
>>>>read.java:131)
>>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
>>>>ad.java:98)
>>>> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.ja
>>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
>>>>sun.dc.pr.PRException: endPath: bad path
>>>> at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:540)
>>>> at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRen
>>>>ava:296)
>>>> at sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRend
>>>>va:59)
>>>> at sun.java2d.pipe.DuctusShapeRenderer.draw(DuctusShapeRenderer.j
>>>>
>>>> at sun.java2d.pipe.PixelToShapeConverter.drawOval(PixelToShapeCon
>>>>java:64)
>>>> at sun.java2d.pipe.ValidatePipe.drawOval(ValidatePipe.java:64)
>>>> at sun.java2d.SunGraphics2D.drawOval(SunGraphics2D.java:1526)
>>>> at com.bbn.openmap.omGraphics.OMCircle.render(OMCircle.java:634)
>>>> at com.biosgroup.alac.gui.map.PrettyCircle.render(PrettyCircle.ja
>>>>
>>>> at com.bbn.openmap.layer.location.Location.renderLocation(Locatio
>>>>585)
>>>> at com.bbn.openmap.layer.location.LocationLayer.paint(LocationLay
>>>>:485)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:7
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>1)
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>5)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at com.bbn.openmap.MapBean.paint(MapBean.java:661)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
>>>> at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
>>>> at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
>>>> at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.ja
>>>>
>>>> at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run
>>>>EventQueueUtilities.java:124)
>>>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:1
>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
>>>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
>>>>read.java:131)
>>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
>>>>ad.java:98)
>>>> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.ja
>>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
>>>>sun.dc.pr.PRException: endPath: bad path
>>>> at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:540)
>>>> at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRen
>>>>ava:296)
>>>> at sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRend
>>>>va:59)
>>>> at sun.java2d.pipe.DuctusShapeRenderer.fill(DuctusShapeRenderer.j
>>>>
>>>> at sun.java2d.pipe.PixelToShapeConverter.fillOval(PixelToShapeCon
>>>>java:69)
>>>> at sun.java2d.pipe.ValidatePipe.fillOval(ValidatePipe.java:70)
>>>> at sun.java2d.SunGraphics2D.fillOval(SunGraphics2D.java:1530)
>>>> at com.bbn.openmap.omGraphics.OMCircle.render(OMCircle.java:630)
>>>> at com.biosgroup.alac.gui.map.PrettyCircle.render(PrettyCircle.ja
>>>>
>>>> at com.bbn.openmap.layer.location.Location.renderLocation(Locatio
>>>>585)
>>>> at com.bbn.openmap.layer.location.LocationLayer.paint(LocationLay
>>>>:485)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:7
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>1)
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>5)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at com.bbn.openmap.MapBean.paint(MapBean.java:661)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
>>>> at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
>>>> at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
>>>> at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.ja
>>>>
>>>> at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run
>>>>EventQueueUtilities.java:124)
>>>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:1
>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
>>>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
>>>>read.java:131)
>>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
>>>>ad.java:98)
>>>> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.ja
>>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
>>>>sun.dc.pr.PRException: endPath: bad path
>>>> at sun.dc.pr.Rasterizer.endPath(Rasterizer.java:540)
>>>> at sun.java2d.pipe.DuctusRenderer.createShapeRasterizer(DuctusRen
>>>>ava:296)
>>>> at sun.java2d.pipe.DuctusShapeRenderer.renderPath(DuctusShapeRend
>>>>va:59)
>>>> at sun.java2d.pipe.DuctusShapeRenderer.draw(DuctusShapeRenderer.j
>>>>
>>>> at sun.java2d.pipe.PixelToShapeConverter.drawOval(PixelToShapeCon
>>>>java:64)
>>>> at sun.java2d.pipe.ValidatePipe.drawOval(ValidatePipe.java:64)
>>>> at sun.java2d.SunGraphics2D.drawOval(SunGraphics2D.java:1526)
>>>> at com.bbn.openmap.omGraphics.OMCircle.render(OMCircle.java:634)
>>>> at com.biosgroup.alac.gui.map.PrettyCircle.render(PrettyCircle.ja
>>>>
>>>> at com.bbn.openmap.layer.location.Location.renderLocation(Locatio
>>>>585)
>>>> at com.bbn.openmap.layer.location.LocationLayer.paint(LocationLay
>>>>:485)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at com.bbn.openmap.MapBean.paintChildrenWithBorder(MapBean.java:7
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>1)
>>>> at com.bbn.openmap.BufferedMapBean.paintChildren(BufferedMapBean.
>>>>5)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at com.bbn.openmap.MapBean.paint(MapBean.java:661)
>>>> at javax.swing.JComponent.paintChildren(JComponent.java:498)
>>>> at javax.swing.JComponent.paint(JComponent.java:696)
>>>> at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
>>>> at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
>>>> at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
>>>> at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.ja
>>>>
>>>> at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run
>>>>EventQueueUtilities.java:124)
>>>> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:1
>>>> at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
>>>> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDis
>>>>read.java:131)
>>>> at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispa
>>>>ad.java:98)
>>>> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.ja
>>>> at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
>>>>
>>>>
>>>>
>>>>
>>>>Jeff Mathis
>>>>Senior Scientist / Group Leader
>>>>BiosGroup, Inc.
>>>>317 Paseo de Peralta
>>>>Santa Fe, NM 87501
>>>>direct: 505-992-6737
>>>>fax: 505-988-2229
>>>>jeff.mathis@biosgroup.com
>>>>http://www.biosgroup.com
>>>>
>>>>--
>>>>[To unsubscribe to this list send an email to "majdart@bbn.com"
>>>>with the following text in the BODY of the message "unsubscribe
>>>>openmap-users"]
>
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Don Dietrick, BBN Technologies, dietrick@bbn.com
>10 Moulton Street, Cambridge, MA 02138
>617-873-3031 [fax]-2794
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>>Jeff Mathis
>>Senior Scientist
>>BiosGroup, Inc.
>>317 Paseo de Peralta
>>Santa Fe, NM 87501
>>direct: 505-992-6737
>>fax: 505-988-2229
>>jeff.mathis@biosgroup.com
>>http://www.biosgroup.com

Jeff Mathis
Senior Scientist
BiosGroup, Inc.
317 Paseo de Peralta
Santa Fe, NM 87501
direct: 505-992-6737
fax: 505-988-2229
jeff.mathis@biosgroup.com
http://www.biosgroup.com

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon May 13 14:43:44 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT