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

Applet causes GDI Leak under IE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 6
    • 5.0
    • deploy
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0_06"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
      Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
      AND
      java version "1.6.0-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59g)
      Java HotSpot(TM) Client VM (build 1.6.0-beta-b59g, mixed mode, sharing)
      AND
      java version "1.4.2_11"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_11-b06)
      Java HotSpot(TM) Client VM (build 1.4.2_11-b06, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]
      Microsoft Windows [Version 5.2.3790]

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Internet Explorer Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519

      A DESCRIPTION OF THE PROBLEM :
      When having a web site with a lot of applets after browsing few minutes the windows video flash until Internet Explorer is killed.
      This is due to a GDI leak which reach the application limit of 10000.

      Note that no java code is necessary, only the presence of the Applet tag induce the problem.

      The problem is not reproducible with other java version then those specified above.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Open the task manager and ensure you view the column "GDI Objects". Open Internet Explorer and load a page containing the following html code.

      <html>
      <body>
      <input name="cn"/>
      <script>
      var i = 0;
      setInterval("i++; document.getElementsByName('cn')[0].value = i;", 10);
      </script>
      <applet width="10" height="10"></applet>
      <iframe width="10" height="10"></iframe>
      </body>
      </html>

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Number of GDI Objects should be constant.
      ACTUAL -
      Number of GDI Objects increase until the max limit.

      REPRODUCIBILITY :
      This bug can be reproduced always.

            mleisunw Mike Lei (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: