Loading any page containing a Java applet causes a failure in the IcedTea Java plug-in <> xulrunner interface resulting in 100% core usage, and requiring a hard 'kill -9' of the firefox process.
Reproducible: Always
Steps to Reproduce:
1. Use the IcedTea Plugin and OpenJDK Java environment
2. Start Firefox 3.5.x
3. Visit a page containing a Java applet
Actual Results:
CPU core runs at 100% and can only be stopped if the browser process is sent the SIGKILL signal - SIGTERM/closing the application doesn't remove the process from memory or stop the CPU spinning.
../IcedTeaPlugin.cc:3858: Error: create process
../IcedTeaPlugin.cc:1666: Error: started appletviewer
(firefox-3.5:6404): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed
../IcedTeaPlugin.cc:4067: Error: Failed to write bytes to output channel
The last GLib-CRITICAL message is repeated.
Expected Results:
The plug-in should start, CPU usuage should be minimal,the Java applet should run, and the application should exit memory correctly.
Initializing JVM...
ICEDTEA PLUGIN: get component manager
ICEDTEA PLUGIN: liveconnect
ICEDTEA PLUGIN: thread manager
ICEDTEA PLUGIN: Instance::StartAppletviewer
ICEDTEA PLUGIN: get component manager
ICEDTEA PLUGIN: create local file
ICEDTEA PLUGIN: init with path
../IcedTeaPlugin.cc:3858: Error: create process
ICEDTEA PLUGIN: Instance::StartAppletviewer return
../IcedTeaPlugin.cc:1666: Error: started appletviewer
ICEDTEA PLUGIN: Factory::Initialize return
It appears that the xulrunner-1.9.1 plug-in handling code has changed subtly, since the IcedTea plug-in works fine with Firefox 3.0.x and xulrunner 1.9.0.14.
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090910 Ubuntu/9.04 (jaunty) Shiretoko/3.5.3
Loading any page containing a Java applet causes a failure in the IcedTea Java plug-in <> xulrunner interface resulting in 100% core usage, and requiring a hard 'kill -9' of the firefox process.
Reproducible: Always
Steps to Reproduce:
1. Use the IcedTea Plugin and OpenJDK Java environment
2. Start Firefox 3.5.x
3. Visit a page containing a Java applet
Actual Results:
CPU core runs at 100% and can only be stopped if the browser process is sent the SIGKILL signal - SIGTERM/closing the application doesn't remove the process from memory or stop the CPU spinning.
../IcedTeaPlugi n.cc:3858: Error: create process n.cc:1666: Error: started appletviewer
../IcedTeaPlugi
(firefox-3.5:6404): GLib-CRITICAL **: g_io_channel_ write_chars: assertion `channel != NULL' failed n.cc:4067: Error: Failed to write bytes to output channel
../IcedTeaPlugi
The last GLib-CRITICAL message is repeated.
Expected Results:
The plug-in should start, CPU usuage should be minimal,the Java applet should run, and the application should exit memory correctly.
This doesn't affect Firefox 3.0.x.
Originally reported on Ubuntu Launchpad:
https:/ /bugs.launchpad .net/ubuntu/ +source/ firefox- 3.5/+bug/ 359407
apt-cache policy icedtea6-plugin 4.1-0ubuntu11 4.1-0ubuntu11 4.1-0ubuntu11 0 gb.archive. ubuntu. com jaunty-updates/main Packages security. ubuntu. com jaunty- security/ main Packages dpkg/status 1.4.1-0ubuntu7 0 gb.archive. ubuntu. com jaunty/main Packages
icedtea6-plugin:
Installed: 6b14-1.
Candidate: 6b14-1.
Version table:
*** 6b14-1.
500 http://
500 http://
100 /var/lib/
6b14-
500 http://
apt-cache policy openjdk-6-jre 4.1-0ubuntu11 4.1-0ubuntu11 4.1-0ubuntu11 0 gb.archive. ubuntu. com jaunty-updates/main Packages security. ubuntu. com jaunty- security/ main Packages dpkg/status 1.4.1-0ubuntu7 0 gb.archive. ubuntu. com jaunty/main Packages
openjdk-6-jre:
Installed: 6b14-1.
Candidate: 6b14-1.
Version table:
*** 6b14-1.
500 http://
500 http://
100 /var/lib/
6b14-
500 http://
apt-cache policy xulrunner-1.9.1 build1+ nobinonly- 0ubuntu0. 9.04.2 build1+ nobinonly- 0ubuntu0. 9.04.2 build1+ nobinonly- 0ubuntu0. 9.04.2 0 gb.archive. ubuntu. com jaunty- proposed/ universe Packages dpkg/status 9.1.2+nobinonly -0ubuntu0. 9.04.1 0 gb.archive. ubuntu. com jaunty- updates/ universe Packages security. ubuntu. com jaunty- security/ universe Packages 9.1~b4~ hg20090330r2402 1+nobinonly- 0ubuntu1 0 gb.archive. ubuntu. com jaunty/universe Packages
xulrunner-1.9.1:
Installed: 1.9.1.3+
Candidate: 1.9.1.3+
Version table:
*** 1.9.1.3+
500 http://
100 /var/lib/
1.
500 http://
500 http://
1.
500 http://
Using debug information from icedtea the problem appears to stem from "Error: create process":
result = manager- >CreateInstance ByContractID (NS_PROCESS_ CONTRACTID,
nsnull,
NS_ GET_IID (nsIProcess),
getter_ AddRefs (applet_ viewer_ process) ); CHECK_RETURN ("create process", result);
PLUGIN_
which is called during initialisation:
ICEDTEAPLUGIN_ DEBUG=1 firefox-3.5
...
Initializing JVM... :StartAppletvie wer n.cc:3858: Error: create process :StartAppletvie wer return n.cc:1666: Error: started appletviewer
ICEDTEA PLUGIN: get component manager
ICEDTEA PLUGIN: liveconnect
ICEDTEA PLUGIN: thread manager
ICEDTEA PLUGIN: Instance:
ICEDTEA PLUGIN: get component manager
ICEDTEA PLUGIN: create local file
ICEDTEA PLUGIN: init with path
../IcedTeaPlugi
ICEDTEA PLUGIN: Instance:
../IcedTeaPlugi
ICEDTEA PLUGIN: Factory::Initialize return
It appears that the xulrunner-1.9.1 plug-in handling code has changed subtly, since the IcedTea plug-in works fine with Firefox 3.0.x and xulrunner 1.9.0.14.