Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4445611

drawImage using custom Composite causes InternalError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • 2d
    • beta3
    • sparc
    • solaris_7

      The attached program works fine on 1.3.1, but produces an InternalError
      when run on Merlin build 60 on Solaris Sparc. A custom Composite is being
      used to render to a BufferedImage.

      Here is the stack trace:

      java.lang.InternalError: Cannot construct general op for MaskBlit(Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;Ljava/awt/Composite;IIIIII[BII)V Any CompositeContext
              at sun.java2d.loops.GraphicsPrimitive.setupGeneralBinaryOp(GraphicsPrimitive.java:230)
              at sun.java2d.loops.MaskBlit.makePrimitive(MaskBlit.java:123)
              at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:170)
              at sun.java2d.loops.MaskBlit.locate(MaskBlit.java:51)
              at sun.java2d.loops.Blit$GeneralMaskBlit.<init>(Blit.java:130)
              at sun.java2d.loops.Blit.makePrimitive(Blit.java:118)
              at sun.java2d.loops.GraphicsPrimitiveMgr.locate(GraphicsPrimitiveMgr.java:170)
              at sun.java2d.loops.Blit.locate(Blit.java:47)
              at sun.java2d.loops.Blit.getFromCache(Blit.java:60)
              at sun.java2d.SunGraphics2D.blitSurfaceData(SunGraphics2D.java:2965)
              at sun.java2d.SunGraphics2D.renderSurfaceData(SunGraphics2D.java:2892)
              at sun.java2d.SunGraphics2D.clipAndRenderSurfaceData(SunGraphics2D.java:2949)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3258)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3490)
              at Tone8.makeImage(Tone8.java:69)
              at Tone8.paint(Tone8.java:21)
              at sun.awt.RepaintArea.paintRect(RepaintArea.java:354)
              at sun.awt.RepaintArea.paint(RepaintArea.java:339)
              at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:345)
              at java.awt.Component.dispatchEventImpl(Component.java:3549)
              at java.awt.Component.dispatchEvent(Component.java:3343)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:439)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:150)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:131)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

            flar Jim Graham
            jrevans Jerald Evans (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: