What steps will reproduce the problem?
1. Create simple HTML file with table and td element with background attribute
pointing to nonexisting image, for example:
<html>
<body>
<table>
<tr>
<td background="non-existing.jpg">
</td>
</tr>
</table>
</body>
</html>
2. Generate image using Graphics2DRenderer
What is the expected output? What do you see instead?
When you have for instance <img> element pointing to non-existing image file,
simply black square appears. Here, JVM hangs - here is thread dump of thread
which is hung:
"821208495@qtp-566695176-5" prio=5 tid=101f92000 nid=0x1268d2000 runnable
[1268ce000]
java.lang.Thread.State: RUNNABLE
at sun.java2d.loops.MaskBlit.MaskBlit(Native Method)
at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Blit.java:186)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:927)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:550)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:54)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:982)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3261)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3246)
at org.xhtmlrenderer.swing.Java2DOutputDevice.drawImage(Java2DOutputDevice.java:271)
at org.xhtmlrenderer.render.AbstractOutputDevice.paintTiles(AbstractOutputDevice.java:300)
at org.xhtmlrenderer.render.AbstractOutputDevice.paintBackground0(AbstractOutputDevice.java:245)
at org.xhtmlrenderer.render.AbstractOutputDevice.paintBackground(AbstractOutputDevice.java:182)
at org.xhtmlrenderer.newtable.TableCellBox.paintBackgroundStack(TableCellBox.java:310)
at org.xhtmlrenderer.newtable.TableCellBox.paintBackground(TableCellBox.java:272)
at org.xhtmlrenderer.layout.Layer.paintBackgroundsAndBorders(Layer.java:243)
at org.xhtmlrenderer.layout.Layer.paint(Layer.java:329)
at org.xhtmlrenderer.swing.BasicPanel.doRender(BasicPanel.java:163)
at org.xhtmlrenderer.swing.BasicPanel.paintComponent(BasicPanel.java:148)
at org.xhtmlrenderer.simple.Graphics2DRenderer.render(Graphics2DRenderer.java:95)
What version of the product are you using? On what operating system?
flying-saucer R8
confirmed on
1) MacOS JVM: Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
2) Linux JVM: Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Please provide any additional information below.
Original issue reported on code.google.com by michal.s...@gmail.com on 29 Mar 2011 at 7:17
Original issue reported on code.google.com by
michal.s...@gmail.com
on 29 Mar 2011 at 7:17