JDK-4907235 : Browser crashes with page switch or when refresh/reload in browser is exercised.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2003-08-15
  • Updated: 2003-09-05
  • Resolved: 2003-09-04
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
Browser crashes when moved from html pages running the applet to a different page(page switch is done automatically or when the pages are refreshed in the browser.)

Here is the typical customer scenario , one of the usecase for this scenario could be "bidding" where every page could be refreshed or redirected at certain intervals of time.(the page switch is done automatically with this scenario)

Here are the 2 different scenarios to reproduce the problem.

Scenario #1
===========
1. Install Tiger 1.5.0
2. Load the following applet
   http://javaweb.sfbay.sun.com/sridhare/refresh/refresh.html
3. wait for few seconds browser crashes.

Scenario #2
===========
1. Install Tiger 1.5.0
2. Load the following applet
   http://javaweb.sfbay.sun.com/~sridhare/refresh/refresh1.html
3. the applet loads and loads another applet(html page) automatically after 
   some time, that inturn loads another applet after some amount time
   (The Intervals provided here are enough to load the applet and the applets
     in each page are loaded)
4. crashes the browser during the page switch.

There might be applets and frames in html pages uses the refresh to periodically and this might lead to crash.

The problem was intially noticed when try to type different URL in the browser while the applet is running , which leads to crash , this was hard to reproduce manually due to the timing and other issues.refresh / reload (OR) page switch automatically was very consistent in reproducing the problem.

This will be a scenario when applets are used in bidding sites or automatic reload or redirect hosting.I suspect is with the page switch , the crasher happens after destroying the applet and joining the threadm, this was the message when debugging is switched on and looked in the trace.

This bug is noticed on all windows platforms on IE and Netscape 4.x / Netscape 7 /mozilla browsers.

Comments
EVALUATION After some amount of debugging and looking into the hotspot error log file, it looks like a AWT failure. Assigning it to AWT team for further evaluation. The log file is attached to this bug report ###@###.### 2003-08-14 More info: ###@###.### tells me that he was unable to debug the problem - "When it crashes, I am unable to get the stack trace even with plug-in debug builds." ###@###.### tells me that he thinks it is new in build 15. Also, he has been able to reproduce it on windows, but not on Solaris. Most of the GUI groups integrated into b15, but AWT made very few changes to native Windows code. I wonder if we could go through the nightly builds of the jre and see when this first started happening. ###@###.### 2003-08-15 I was able to reproduce the crash on build 14 as well. It looks it is crashing close to AWTIsHeadless. An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x5B4A0C8 Function=AWTIsHeadless+0xDA8 Library=C:\Program Files\Java\j2re1.5.0\bin\awt.dll Current Java thread: at sun.awt.windows.WToolkit.eventLoop(Native Method) at sun.awt.windows.WToolkit.run(WToolkit.java:270) at java.lang.Thread.run(Thread.java:549) ###@###.### 2003-08-18 Looks like the problem started in b08 of tiger. The problem can be reproduced by just untarring the attached tar file and opening the refresh.html in IE. ###@###.### 2003-08-19 AWT, 2D, and TL integrated into build 8. The 2D putback looks massive. ###@###.### 2003-08-19 Name: rpR10076 Date: 09/05/2003 This bug stopped reproducing in AWT workspace after the fix for 4908809 was put back. I tried backing out the fix for 4908809, and after that 4907235 started crashing again. That's why I believe this is a duplicate. If all goes well, 4908809 will be integrated in tiger build 19. ###@###.### ======================================================================
11-06-2004

PUBLIC COMMENTS It is reproducable on promoted tiger build 15. This bug is not reproducable in Mantis (1.4.2) hence is a regression. ###@###.### 2003-08-14
14-08-2003