JDK-4892479 : GDI object leak with 256 Colors display in 1.3.1_08
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.3.1_08
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-07-17
  • Updated: 2004-04-29
  • Resolved: 2003-09-15
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.
Other Other
1.3.1_10 10Fixed 1.4.2_05Fixed
Description
This is a regression in 1.3.1_08.  To reproduce the problem:

1.  Change Display Setting to 256 Colors on Windows PC.
2.  Start the SwingSet2 demo with 1.3.1_08.
3.  Bring up the Task Manager, and show GDI Objects as a column on the Processes tab.
4.  Start moving the SwingSet2 window around the screen and watch GDI object increase dramatically.  Eventually, the level gets so high that the application needs to be restarted since all other applications being to repaint very slowly.  


Please note:

- Testing has only been conducted with Windows 2000 so far.  
- The problem does not occur in 32-bit color mode with 1.3.1_08.
- The problem does not occur in any color mode with 1.3.1_07 or 1.4.1_03.
- Disabling hardware acceleration does not prevent the problem. 
- Brief profiling of the application using OptimizeIt does not show any leaks of Java objects. 

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.3.1_10 1.4.2_05 generic tiger tiger-beta FIXED IN: 1.3.1_10 1.4.2_05 tiger tiger-beta INTEGRATED IN: 1.3.1_10 1.4.2_05 tiger-b26 tiger-beta VERIFIED IN: 1.3.1_10 1.4.2_05
14-06-2004

WORK AROUND This customer cannot upgrade to 1.4.x at this time.
11-06-2004

EVALUATION deleting the object after it has been unselected out of the DC (that is, after you have selected a different palette into it) works ###@###.### 2003-08-26 The same fix has been integrated into tiger: http://javaweb.sfbay/jcg/1.5.0-tiger/2D/4892479 ###@###.### 2003-10-08 Fix verified for build 1.4.2_05-ea-b01 Raja.Dhanesh ###@###.### 2004-04-29
08-10-2003