IcedTea6 Mozilla plugin with OpenJDK6

Ivan Voras ivoras at freebsd.org
Fri Sep 10 22:13:59 UTC 2010


On 10 September 2010 23:46, Jung-uk Kim <jkim at freebsd.org> wrote:

> All applets or some applets?  Can you test some trivial applets?
> Something like the following:
>
> file:///usr/local/openjdk6/demo/jfc/SwingApplet/SwingApplet.html

Surprisingly, yes I can. But I cannot start for example this one:

http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.html

And even with the simple applet that works I get ridiculous CPU usage
of firefox:

  PID USERNAME      THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAND
  647 ivoras         15  44    0   228M 94320K ucond   5   1:58
268.95% firefox-bin

>> (process:82994): Gtk-WARNING **: Locale not supported by C library.
>>       Using the fallback 'C' locale.
>> *** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
>> variable>) in NPN_GetValue()
>
> Although it is a different problem, I know what it is. :-)
>
> Please try www/nspluginwrapper-devel instead of www/nspluginwrapper:
>
> http://www.freebsd.org/cgi/cvsweb.cgi/ports/www/nspluginwrapper-devel/

This makes firefox crash with the output:

betelgeuse:~> firefox3
(process:98515): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
*** NSPlugin Viewer  *** ERROR: NPN_GetValue() wait for reply: Connection closed
*** NSPlugin Viewer  ***
WARNING:(/home/jkim/new/a/nspluginwrapper-1.3.0/src/npw-viewer.c:1136):invoke_NPN_GetValue:
assertion failed: (rpc_method_invoke_possible(g_rpc_connection))
Abort trap (core dumped)

I had to reinstall the old one before it works again. It still
produces these error messages but it doesn't crash:

(process:592): Gtk-WARNING **: Locale not supported by C library.
	Using the fallback 'C' locale.
*** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
variable>) in NPN_GetValue()
*** NSPlugin Viewer  *** WARNING: unhandled variable 18 (<unknown
variable>) in NPN_GetValue()

(for what it's worth, my LOCALE is hr_HR.UTF-8).

>> openjdk version "1.6.0"
>> OpenJDK Runtime Environment (build 1.6.0-b20)
>> OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode)
>> net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error:
>> Could not initialize applet.

> Do you see /var/tmp/icedteaplugin-* directory, something like this?
>
> %ls -dl /var/tmp/icedteaplugin-jkim/
> drwx------  2 jkim  wheel  1536 Sep  9 18:32 /var/tmp/icedteaplugin-jkim/

Yes, it contains some pipes:

betelgeuse:/var/tmp/icedteaplugin-ivoras> ll
total 0
prw-------  1 ivoras  wheel  0 Sep 11 00:10
543-icedteanp-appletviewer-to-plugin|
prw-------  1 ivoras  wheel  0 Sep 11 00:10
543-icedteanp-plugin-to-appletviewer|
prw-------  1 ivoras  wheel  0 Sep 11 00:11
647-icedteanp-appletviewer-to-plugin|
prw-------  1 ivoras  wheel  0 Sep 11 00:11
647-icedteanp-plugin-to-appletviewer|


More information about the freebsd-java mailing list