United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6572147 Browser hang as an applet open and close repeatedly in 0.5-sec interval
6572147 : Browser hang as an applet open and close repeatedly in 0.5-sec interval

Details
Type:
Bug
Submit Date:
2007-06-21
Status:
Resolved
Updated Date:
2010-04-04
Project Name:
JDK
Resolved Date:
2007-07-03
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u13
Fixed Versions:
5.0u14

Related Reports

Sub Tasks

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.
                                     
2007-06-27



Hardware and Software, Engineered to Work Together