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

magnify - throwing OutOfMemory exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • client-libs
    • 2d
    • sparc
    • solaris_2.6

      The magnify applet is throwing the OutOfMemory exception when the mouse is moved around the window.
       
      To reproduce run the magnify applet :

      /home/lichtenw/JavaMedia/2d/tests/applets/magnify

      java full version "thanh:11/16/97-02:34"

      java.lang.OutOfMemoryError
              at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:53)
              at java.awt.image.Raster.createPackedRaster(Raster.java:182)
              at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:546)
              at sun.java2d.SunGraphics2D.transformBufferedImage(SunGraphics2D.java:1745)
              at sun.java2d.SunGraphics2D.renderingPipeImage(SunGraphics2D.java:1874)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1395)
              at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:1279)
              at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:469)
              at sun.awt.image.ScaledGraphicsObserver.drawImage(ScaledGraphicsObserver.java:41)
              at sun.awt.image.ImageRepresentation.drawToBufImage(ImageRepresentation.java:646)
              at sun.awt.motif.X11Graphics.drawImage(X11Graphics.java:428)
              at magnify.draw_box(magnify.java:68)
              at magnify.mouseMove(magnify.java:54)
              at java.awt.Component.handleEvent(Component.java:2600)
              at java.awt.Component.postEvent(Component.java:2049)
              at java.awt.Component.dispatchEventImpl(Component.java:1934)
              at java.awt.Container.dispatchEventImpl(Container.java:934)
              at java.awt.Component.dispatchEvent(Component.java:1837)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:160)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)


      More applets throwing this exception :
      /home/lichtenw/demos/Voltage

      brian.lichtenwalter@Eng 1997-11-19

            jehung Jeannette Hung (Inactive)
            blichtensunw Brian Lichtenwalter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: