From owner-freebsd-java@FreeBSD.ORG Fri Sep 10 23:32:43 2010 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C73501065675; Fri, 10 Sep 2010 23:32:43 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5D41A8FC1B; Fri, 10 Sep 2010 23:32:43 +0000 (UTC) Received: by qwg5 with SMTP id 5so2141713qwg.13 for ; Fri, 10 Sep 2010 16:32:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=JtO26SfZf02SNaqiRABsIHstvoKZ+e/b5h8ev7TP5aA=; b=otocgxG6YVVnGi6i2d8dzKT/PNpccdg7NrkiY7WQXbnBesDiLrcPAVbMOb4xlvHozq Hb1oRigaQaIIFzTmnB/5JXvkn60yQFzwdsE200vtH4Ag2VUE/TZFjrT4LeosvJu8j0ni 1vMfu3rxZ1f95eEkqXj0l4P/hsL9WWfMyZj7M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=vx/tUU9qRwgGu/Bwa+/nrwU3Ym+/nwaJ+G5pfyNSIvCI/P2tqstlBrLIFS7Kz0NdPh OWS4GrHpFlKFhMVtp38S4tz6f8tmqjolKFQQu/o+Qx9JcAyi2JJcsonCuuAxNYXIfbms i+bA4TA0iYVSksB/Rardfy/aHoo9GSi6hlf6A= Received: by 10.229.224.148 with SMTP id io20mr1261135qcb.88.1284161558143; Fri, 10 Sep 2010 16:32:38 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.229.188.204 with HTTP; Fri, 10 Sep 2010 16:32:17 -0700 (PDT) In-Reply-To: <201009101900.37004.jkim@FreeBSD.org> References: <201009091743.01109.jkim@FreeBSD.org> <201009101746.52045.jkim@FreeBSD.org> <201009101900.37004.jkim@FreeBSD.org> From: Ivan Voras Date: Sat, 11 Sep 2010 01:32:17 +0200 X-Google-Sender-Auth: GeTlbdqIEr0xN8jvi13RJF6lKEc Message-ID: To: Jung-uk Kim Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-java@freebsd.org Subject: Re: IcedTea6 Mozilla plugin with OpenJDK6 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Sep 2010 23:32:44 -0000 On 11 September 2010 01:00, Jung-uk Kim 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. =C2=A0Your = 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: >> >> =C2=A0 PID USERNAME =C2=A0 =C2=A0 =C2=A0THR PRI NICE =C2=A0 SIZE =C2=A0 = =C2=A0RES STATE =C2=A0 C =C2=A0 TIME >> WCPU COMMAND 647 ivoras =C2=A0 =C2=A0 =C2=A0 =C2=A0 15 =C2=A044 =C2=A0 = =C2=A00 =C2=A0 228M 94320K ucond =C2=A0 5 >> =C2=A0 1:58 268.95% firefox-bin > > Yes, I know. =C2=A0firefox-bin process gets stuck at ucond state and ktra= ce shows it's doing somthing weird like this: > > ... > =C2=A022820 firefox-bin 0.000003 CALL =C2=A0_umtx_op(0x80d4d50c0,0x11,0,0= ,0) > =C2=A022820 firefox-bin 0.000005 CALL =C2=A0_umtx_op(0x80d4d50c0,0x12,0,0= ,0) > =C2=A022820 firefox-bin 0.000001 RET =C2=A0 _umtx_op 0 > =C2=A022820 firefox-bin 0.000006 RET =C2=A0 _umtx_op 0 > =C2=A022820 firefox-bin 0.000006 CALL =C2=A0_umtx_op(0x80d4d4040,0x11,0,0= ,0) > =C2=A022820 firefox-bin 0.000005 RET =C2=A0 _umtx_op 0 > =C2=A022820 firefox-bin 0.000003 CALL =C2=A0_umtx_op(0x80d4d4040,0x11,0,0= ,0) > =C2=A022820 firefox-bin 0.000004 RET =C2=A0 _umtx_op 0 > =C2=A022820 firefox-bin 0.000003 CALL =C2=A0_umtx_op(0x80d4d4040,0x11,0,0= ,0) > =C2=A022820 firefox-bin 0.000003 RET =C2=A0 _umtx_op 0 > =C2=A022820 firefox-bin 0.000004 CALL =C2=A0_umtx_op(0x80d4d4040,0x11,0,0= ,0) > =C2=A022820 firefox-bin 0.000003 CALL =C2=A0_umtx_op(0x80d4d4040,0x12,0,0= ,0) > ... > > I am not sure why it happens but my guess is the plugin may mis-handle mu= texes. =C2=A0This 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. >> =C2=A0 =C2=A0 =C2=A0 Using the fallback 'C' locale. >> *** NSPlugin Viewer =C2=A0*** ERROR: NPN_GetValue() wait for reply: >> Connection closed *** NSPlugin Viewer =C2=A0*** >> 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. =C2=A0Did you re-instal= l > the wrappers in ~/.mozilla/plugins/? =C2=A0"nspluginwrapper -l" should > print something like this: > > /home/jkim/.mozilla/plugins/npwrapper.libflashplayer.so > =C2=A0Original plugin: /usr/local/lib/npapi/linux-f10-flashplugin/libflas= hplayer.so > =C2=A0Plugin viewer: /usr/local/lib/nspluginwrapper/i386/linux/npviewer > =C2=A0Wrapper version string: 1.3.0 > > Note the wrapper version string is "1.3.0". Ok, I've fixed it.