United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7124347 [macosx] "java.lang.InternalError: not implemented yet" on call Graphics2D.drawRenderedImage
JDK-7124347 : [macosx] "java.lang.InternalError: not implemented yet" on call Graphics2D.drawRenderedImage

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2013-06-26
Project Name:
JDK
Resolved Date:
2012-12-03
Component:
client-libs
OS:
os_x
Sub-Component:
2d
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-498 submitted 2011/10/05 by Alexander Petrov
java.lang.InternalError: not implemented yet
at sun.java2d.opengl.OGLSurfaceData.getRaster(OGLSurfaceData.java:397)
at sun.java2d.loops.Blit.Blit(Blit.java:162)
at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:956)
at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:578)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:71)
at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1011)
at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:186)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3062)
at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3184)
at sun.java2d.SunGraphics2D.drawRenderedImage(SunGraphics2D.java:2549)
at GetRasterBeforeDrawing.paintComponent(GetRasterBeforeDrawing.java:125)
at javax.swing.JComponent.paint(JComponent.java:1054)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paint(JComponent.java:1063)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paint(JComponent.java:1063)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:585)
at javax.swing.JComponent.paintChildren(JComponent.java:887)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5228)
at javax.swing.RepaintManager.paintDoubleBuffered(RepaintManager.java:1482)
at javax.swing.RepaintManager.paint(RepaintManager.java:1413)
at javax.swing.RepaintManager.paint(RepaintManager.java:1206)
at javax.swing.JComponent.paint(JComponent.java:1040)
at java.awt.GraphicsCallback.run(GraphicsCallback.java:39)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115)
at java.awt.Container.paint(Container.java:1965)
at java.awt.Window.paint(Window.java:3865)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:781)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677)
at javax.swing.RepaintManager.access00(RepaintManager.java:59)
at javax.swing.RepaintManager.run(RepaintManager.java:1621)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access./Mac.bugs00(EventQueue.java:101)
at java.awt.EventQueue.run(EventQueue.java:666)
at java.awt.EventQueue.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:240)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:142)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:134)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
for more information see test: java/awt/Graphics/Images/GetRasterBeforeDrawing.java 
Build: b211
Tests failed (Regression):

                                    

Comments
URL:   http://hg.openjdk.java.net/jdk8/2d/jdk/rev/3c5bf5ed45a9
User:  bae
Date:  2012-12-03 12:30:02 +0000

                                     
2012-12-03
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/3c5bf5ed45a9
User:  lana
Date:  2012-12-11 19:52:58 +0000

                                     
2012-12-11
Verified in b92 using regression test
                                     
2013-06-13
  This fix foes not implement getRater() in ogl surfaces.
  Instead, it provides a blit for custom composite, which
  prepares a snapshot of the destination surface (which
  is one of ogl surfaces) and delegates the work to the
  general blit, which now extracts raster from the snapshot.
  A result of general blit's work is transferred to the original
  destination.

  Changes in OGLSurfaceDataProcy is required in order to prevent
  getting an accelerated copy of original source image as an
  operand of the blit. Now we first check for composite type,
  and only then (if composite is not specified, or is a kind
  of alpha composite) we take into account other conditions.

  So this fix does not change anything for the case of alpha composites
  but affects only XOR and custom composites case.

Suggested fix: http://sa.us.oracle.com/projects/java2d_data/7u10/7124347/
                                     
2012-11-14



Hardware and Software, Engineered to Work Together