JDK-6471789 : FireFox freezes if Exception is thrown during Applet initialization
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2006-09-18
  • Updated: 2011-02-16
  • Resolved: 2007-12-11
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b98)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b98, mixed mode, sharing)


ADDITIONAL OS VERSION INFORMATION :
Linux cehost 2.6.16.13-4-default #1 Wed May 3 04:53:23 UTC 2006 i686 i686 i386 GNU/Linux

EXTRA RELEVANT SYSTEM CONFIGURATION :
OpenSuse-10.1 with some updates
FireFox2 Beta2 / FireFix1.5.4

A DESCRIPTION OF THE PROBLEM :
If an applet throws an Exception during initialization, FireFox freezes after about 10s.
Then firefox-bin consumes 99% CPU and does no more respond to user input, however the applet itself as well as the java-console are working fine.

I used FireFox2 Beta2, but saw this problem with earlier Mustang builds and FireFox15 too.

If I change back to java-5_03 everthing works as expected, the exception is shown in the java-console and the applet as a red-cross.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.) Load the applet from http://web460.server3.webplus24.de/deadlock.html
2.) Wait 10s till firefox locks up

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
the plugin should (of course) fail to load the applet, but should not deadlock mozilla.
ACTUAL -
the java-plugin deadlocks mozilla.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
the test applet simply throws an RuntimeException in its constructor.
---------- END SOURCE ----------

Comments
EVALUATION This is a duplicate of 6540719 which has been fixed in 6u3.
11-12-2007

EVALUATION Contribution forum : https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?forumID=1463&messageID=21355
10-09-2007