JDK-6572147 : Browser hang as an applet open and close repeatedly in 0.5-sec interval
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-06-21
  • Updated: 2010-04-04
  • Resolved: 2007-07-03
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
5.0u14 b01Fixed
Description
This problem is discovered during BAF v6 + 5.0u13 testing cycle.

Tested build:  5.0u13 + BAF v6
       machines:  256 MB of RAM PCs [XP-pro(sp2), win 2000 pro(sp4)]
       browser:   Internet Explorer 6 (sp2)



Test Description:  Browser hang as Arc test demo repeatedly opened and closed (every 0.5 second) on IE 6. Applet no longer functions within the first 2 hours of testing.

How to reproduce:
----------------
+ Test case and details how to run instruction can be found at:
  http://sqeweb.sfbay/st2/stress_to_large_extent/TC04-01-500ms.tar

Comments
EVALUATION The hang is a known issue in stop applet. Plugin suspends GrayBoxPainter during appletStop(). This happens on the browser main thread. GrayBoxPainter suspendPainting() need remove the graybox panel from the panel which need acquire Awt TreeLock. While waiting to get the TreeLock, the main thread may need process windows messages sent to it. There is no message pumping during java wait for an Object monitor. That's why the deadlock happens. To fix it, we can invokeLater the suspendPaiting() on the event dispatcher thread.
27-06-2007