JDK-7150134 : JCK api/java_awt/Graphics/index.html#DrawLine fails with OOM for jdk8 with XRender pipeline
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-03-01
  • Updated: 2013-09-30
  • Resolved: 2012-04-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b36Fixed
Related Reports
Relates :  
Description
api/java_awt/Graphics/index.html#DrawLine started to fail on linux with OOM exception since jdk8 b04.

The output stack trace:
java.lang.OutOfMemoryError: Java heap space
        at sun.java2d.xr.GrowableIntArray.growArray(GrowableIntArray.java:109)
        at sun.java2d.xr.GrowableIntArray.getNextCellIndex(GrowableIntArray.java:54)
        at sun.java2d.xr.GrowableIntArray.getNextIndex(GrowableIntArray.java:79)
        at sun.java2d.xr.MaskTile.addRect(MaskTile.java:45)
        at sun.java2d.xr.MaskTile.lineToRects(MaskTile.java:130)
        at sun.java2d.xr.MaskTile.addLine(MaskTile.java:70)
        at sun.java2d.xr.MaskTileManager.addLine(MaskTileManager.java:101)
        at sun.java2d.xr.XRRenderer.drawLine(XRRenderer.java:81)
        at sun.java2d.SunGraphics2D.drawLine(SunGraphics2D.java:2121)
        at javasoft.sqe.tests.api.java.awt.Graphics.DrawLineTests.Graphics0004_14(DrawLineTests.java:53)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:474)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:405)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:194)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:126)
        at javasoft.sqe.tests.api.java.awt.Graphics.DrawLineTests.main(DrawLineTests.java:27)
Graphics0004_14: Failed. Test case throws exception: java.lang.OutOfMemoryError: Java heap space
STATUS:Failed.test cases: 1; all failed; first test case failure: Graphics0004_14

See more in comments.

Comments
EVALUATION Fixed clipping. See thread here http://mail.openjdk.java.net/pipermail/2d-dev/2012-April/002450.html
09-04-2012

EVALUATION The JCK test is using extreme parameters : Integer.MAX_VALUE, Integer.MIN_VALUE so I would guess there's a lack of clipping.
02-03-2012

EVALUATION Apparently a bug in the xrender pipeline.
01-03-2012