IcedTea6 Mozilla plugin with OpenJDK6
Ivan Voras
ivoras at freebsd.org
Fri Sep 10 23:32:44 UTC 2010
On 11 September 2010 01:00, Jung-uk Kim <jkim at freebsd.org> wrote:
> On Friday 10 September 2010 06:13 pm, Ivan Voras wrote:
>> But I cannot start for example this one:
>>
>> http://java.sun.com/applets/jdk/1.4/demo/applets/ArcTest/example1.h
>>tml
>
> Probably you want to test it locally:
>
> file:///usr/local/openjdk6/demo/applets/ArcTest/example1.html
Yes, the local copy works. So it is just failing to load applets over
the network? Could this be some convoluted Java security problem?
> BTW, IcedTea plugin is not 100% compatible with Sun/Oracle's. Your mileage may vary. ;-)
But the underlying Java is OpenJDK, right?
>> 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
>
> Yes, I know. firefox-bin process gets stuck at ucond state and ktrace shows it's doing somthing weird like this:
>
> ...
> 22820 firefox-bin 0.000003 CALL _umtx_op(0x80d4d50c0,0x11,0,0,0)
> 22820 firefox-bin 0.000005 CALL _umtx_op(0x80d4d50c0,0x12,0,0,0)
> 22820 firefox-bin 0.000001 RET _umtx_op 0
> 22820 firefox-bin 0.000006 RET _umtx_op 0
> 22820 firefox-bin 0.000006 CALL _umtx_op(0x80d4d4040,0x11,0,0,0)
> 22820 firefox-bin 0.000005 RET _umtx_op 0
> 22820 firefox-bin 0.000003 CALL _umtx_op(0x80d4d4040,0x11,0,0,0)
> 22820 firefox-bin 0.000004 RET _umtx_op 0
> 22820 firefox-bin 0.000003 CALL _umtx_op(0x80d4d4040,0x11,0,0,0)
> 22820 firefox-bin 0.000003 RET _umtx_op 0
> 22820 firefox-bin 0.000004 CALL _umtx_op(0x80d4d4040,0x11,0,0,0)
> 22820 firefox-bin 0.000003 CALL _umtx_op(0x80d4d4040,0x12,0,0,0)
> ...
>
> I am not sure why it happens but my guess is the plugin may mis-handle mutexes. This is not my department, unfortunately. :-(
Ok, so I'll file this under "known problem" :)
>> 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:11
>>36):invoke_NPN_GetValue: assertion failed:
>> (rpc_method_invoke_possible(g_rpc_connection)) Abort trap (core
>> dumped)
>
> It looks like a wrapper/viewer version mis-match. Did you re-install
> the wrappers in ~/.mozilla/plugins/? "nspluginwrapper -l" should
> print something like this:
>
> /home/jkim/.mozilla/plugins/npwrapper.libflashplayer.so
> Original plugin: /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
> Plugin viewer: /usr/local/lib/nspluginwrapper/i386/linux/npviewer
> Wrapper version string: 1.3.0
>
> Note the wrapper version string is "1.3.0".
Ok, I've fixed it.
More information about the freebsd-java
mailing list