JDK-6458449 : Applet causes GDI Leak under IE
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-08-09
  • Updated: 2011-02-16
  • Resolved: 2006-08-10
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 6
6Resolved
Related Reports
Duplicate :  
Description
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.

Comments
EVALUATION this bug is duplicate of 6367496 which is fixed in mustang b70, 5.0u7 and 1.4.2_12. please try.
10-08-2006