Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2D15D200C38 for ; Wed, 1 Mar 2017 07:03:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2B8D8160B7E; Wed, 1 Mar 2017 06:03:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D1213160B7C for ; Wed, 1 Mar 2017 07:03:02 +0100 (CET) Received: (qmail 99289 invoked by uid 500); 1 Mar 2017 06:03:02 -0000 Mailing-List: contact dev-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jmeter.apache.org Delivered-To: mailing list dev@jmeter.apache.org Received: (qmail 99274 invoked by uid 99); 1 Mar 2017 06:03:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Mar 2017 06:03:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 457A5C0118; Wed, 1 Mar 2017 06:03:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.301 X-Spam-Level: X-Spam-Status: No, score=-3.301 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-2.999, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Ib50tQyBNeVh; Wed, 1 Mar 2017 06:02:58 +0000 (UTC) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8C7B05F23A; Wed, 1 Mar 2017 06:02:57 +0000 (UTC) Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v2162uY2009773 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Mar 2017 06:02:56 GMT Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v2162tZH018160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Mar 2017 06:02:56 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v2162toN025225; Wed, 1 Mar 2017 06:02:55 GMT MIME-Version: 1.0 Message-ID: <37613380-0987-412e-9e9c-7833f4eeceb3@default> Date: Tue, 28 Feb 2017 22:02:48 -0800 (PST) From: Muneer Kolarkunnu Sender: Muneer Kolarkunnu To: Philippe Mouawad , "Rory O'Donnell" , Dalibor Topic Cc: Balchandra Vaidya , dev@jmeter.apache.org Subject: RE: Possible Bug in Java 8 u 112 in javax.swing.JEditorPane.setText leads to stuck UI References: <27b800f3-130a-a0c4-5198-8f8ad6b10ced@oracle.com> <86c3bc58-19c1-408d-9019-0d61411bc837@default> <30a13584-77ed-2b9e-3fe6-f06cd32ecb15@oracle.com> In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] Content-Type: multipart/mixed; boundary="__1488348175045149956abhmp0014.oracle.com" X-Source-IP: userv0022.oracle.com [156.151.31.74] archived-at: Wed, 01 Mar 2017 06:03:04 -0000 --__1488348175045149956abhmp0014.oracle.com Content-Type: multipart/alternative; boundary="__1488348175048149957abhmp0014.oracle.com" --__1488348175048149957abhmp0014.oracle.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Philippe, =C2=A0 If you set the content type before setting text, it is not taking much time= . It is just 2-5 seconds. You can set the content type using javax.swing.JEditorPane.setContentType(S= tring) API. Eg: editor.setContentType("text/plain"); // or editor.setContentType("text/= html"); =C2=A0 I updated the test case which you shared along with bug and attached. =C2=A0 I hope it will resolve your issue. =C2=A0 Regards, Muneer =C2=A0 From: Philippe Mouawad [mailto:pmouawad@apache.org]=20 Sent: Wednesday, March 01, 2017 3:29 AM To: Rory O'Donnell; Dalibor Topic Cc: Muneer Kolarkunnu; Balchandra Vaidya; dev@jmeter.apache.org Subject: Re: Possible Bug in Java 8 u 112 in javax.swing.JEditorPane.setTex= t leads to stuck UI =C2=A0 Hello Guys, Any chance that a P4 bug is fixed ? It unfortunately affects us badly whenever some text (more than 700K which = is frequent for HTML pages) is received in our tool. =C2=A0 For my information what does this mean: ILW =3D MLH =3D P4=20 Thanks =C2=A0 On Tue, Jan 31, 2017 at 12:26 PM, Rory O'Donnell wrote: Hi Philippe, It's marked P4 because it is seen as a corner case issue. Rgds,Rory On 30/01/2017 22:43, Philippe Mouawad wrote: Hello, Thanks. Any chance issue gets fixed as I see it's P4 . Thank you On Monday, January 16, 2017, Muneer Kolarkunnu wrote: Hi Philippe, Thanks for sharing standalone test case. Issue is reproducible in all platforms(Windows, Linux and Osx) with all JDK versions(7, 8, 9-ea). I reopened the bug, You can see the updates in here: https://bugs.openjdk.java.net/browse/JDK-8172336 Regards, Muneer *From:* Philippe Mouawad [mailto:HYPERLINK "mailto:pmouawad@apache.org" \np= mouawad@apache.org ] *Sent:* Sunday, January 15, 2017 4:33 AM *To:* Muneer Kolarkunnu *Cc:* Dalibor Topic; Balchandra Vaidya; HYPERLINK "mailto:dev@jmeter.apache= .org" \ndev@jmeter.apache.org ; Rory O'Donnell *Subject:* Re: Possible Bug in Java 8 u 112 in javax.swing.JEditorPane.setT= ext leads to stuck UI Hi, Previous sample showed already very slow rendering when text contains spaces. Now for the text without space. Sample attached. Regards On Fri, Jan 13, 2017 at 2:20 PM, Philippe Mouawad > wrote: Hello Muneer, Find attached=C2=A0 a simple program reproducing issue. I see you closed the bug Regards On Fri, Jan 6, 2017 at 2:28 PM, Muneer Kolarkunnu < HYPERLINK "mailto:abdul.kolarkunnu@oracle.com" \nabdul.kolarkunnu@oracle.co= m Cc: Rory O'Donnell; Dalibor Topic; Balchandra Vaidya; Muneer Kolarkunnu Subject: Re: Possible Bug in Java 8 u 112 in javax.swing.JEditorPane.setTex= t leads to stuck UI Thanks Philippe, we'll take a look. Rgds,Rory On 05/01/2017 10:30, Philippe Mouawad wrote: Hello, Done:9046713 Regards On Thu, Jan 5, 2017 at 11:14 AM, Rory O'Donnell > =C2=A0 wrote: Hi Philippe, Many happy returns! Can you log a bug and send us the Java Incident id ? Rgds,Rory On 05/01/2017 10:12, Philippe Mouawad wrote: Greetings, First best wishes for 2017. I'd like to report what seems to be a critical bug we face in JMeter . I noticed it under Mac OSX El Capitan. Calling javax.swing.JEditorPane.setText() from AWT Thread with some long text (without spaces) leads to what seems to be either a very long or infinite loop, I made thread dumps and I have always=C2=A0 such (partial) stacktrace: "AWT-EventQueue-0" #20 prio=3D6 os_prio=3D31 tid=3D0x00007fa7a8afc000 nid=3D0xf707 runnable [0x0000700002202000] =C2=A0 =C2=A0 =C2=A0 java.lang.Thread.State: RUNNABLE =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.CStrike.getNativeGlyphOutline(Native= Method) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.CStrike.getGlyphOutline(CStrike.java= :215) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.CStrike.getGlyphOutlineBounds(CStrik= e.java:177) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.StandardGlyphVector$GlyphStrike.getGlyphOutlineBoun ds(StandardGlyphVector.java:1792) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.StandardGlyphVector.getGlyphOutlineBounds(StandardG lyphVector.java:1174) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.StandardGlyphVector.getGlyphVisualBounds(StandardGl yphVector.java:586) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.StandardGlyphVector.getGlyphInfo( StandardGlyphVector.java:864) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.ExtendedTextSourceLabel.createCharinfo(ExtendedText SourceLabel.java:622) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.ExtendedTextSourceLabel.getCharinfo(ExtendedTextSou rceLabel.java:548) =C2=A0 =C2=A0 =C2=A0 =C2=A0at sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedT extSourceLabel.java:480) =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.awt.font.TextMeasurer.calcLineBreak(Text= Measurer. java:330) =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.awt.font.TextMeasurer.getLineBreakIndex(= TextMeasurer. java:566) =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:359) =C2=A0 =C2=A0 =C2=A0 =C2=A0at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:440) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.TextLayoutStrategy.sync(Text= LayoutStrategy. java:324) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.TextLayoutStrategy.insertUpdate(TextLayoutS trategy.java:70) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.FlowView.insertUpdate(FlowVi= ew.java:256) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.View.forwardUpdateToView(Vie= w.java:1227) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.View.forwardUpdate(View.java= :1162) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.BoxView.forwardUpdate(BoxVie= w.java:240) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.View.insertUpdate(View.java:= 710) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate( BasicTextUI.java:1610) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdat e(BasicTextUI.java:1869) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractD ocument.java:201) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.AbstractDocument.handleInsertString(Abstrac tDocument.java:748) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.AbstractDocument.insertString( AbstractDocument.java:707) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.PlainDocument.insertString(P= lainDocument. java:130) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.text.DefaultEditorKit.read( DefaultEditorKit.java:273) =C2=A0 =C2=A0 =C2=A0 =C2=A0at javax.swing.JEditorPane.setText(JEditorPane.j= ava:1416) .... Is this a known bug or shall I open one ? Thank you Regards -- Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland -- Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland --=20 Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland =C2=A0 --__1488348175048149957abhmp0014.oracle.com Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi Philippe,

 

I= f you set the content type before setting text, it is not taking much time.= It is just 2-5 seconds.

You can set the= content type using javax.swing.JEditorPane.setContentType(String) API.

Eg: editor.setContentType("text/plain&= quot;); // or editor.setContentType("text/html");

<= p class=3DMsoNormal> 

I updated the= test case which you shared along with bug and attached.

 

I hope it will r= esolve your issue.

 

=

Regards,

Muneer

 

From: Philippe Mouawad [mailto:pmouawad@apache.org] Sent: Wednesday, March 01, 2017 3:29 AM
To: Rory O'Donnel= l; Dalibor Topic
Cc: Muneer Kolarkunnu; Balchandra Vaidya; dev@jm= eter.apache.org
Subject: Re: Possible Bug in Java 8 u 112 in java= x.swing.JEditorPane.setText leads to stuck UI

 

Hello Guys,

Any chance that = a P4 bug is fixed ?

It unfort= unately affects us badly whenever some text (more than 700K which is freque= nt for HTML pages) is received in our tool.

 

For my information what does this mean:
ILW =3D MLH = =3D P4

Thanks

=

 

On Tue, Jan 31, 2017 at 12:26 PM, Rory O'Donnell <rory.odonnell@oracle.com>= wrote:

Hi Philippe,

It's marked = P4 because it is seen as a corner case issue.

Rgds,Rory
On 30/01/= 2017 22:43, Philippe Mouawad wrote:

Hello,
Thanks.
Any chance issue gets fixed= as I see it's P4 .

Thank you

On Monday, January 16, 2017, Mu= neer Kolarkunnu <abdul.kolarkunnu@oracle.com>
wrote:

Hi Philippe,



Thanks for sharing standalone= test case.

Issue is reproducible in all platforms(Windows, Linux an= d Osx) with all
JDK versions(7, 8, 9-ea).

I reopened the bug, You= can see the updates in here:
https://bugs.openjdk.java.net/browse/J= DK-8172336



Regards,

Muneer



*From:*= Philippe Mouawad [mailto:pmouawad@apache.org
<javascript:_e(%7B%7D,'cvml','pmouawad@apache.org')= ;>]
*Sent:* Sunday, January 15, 2017 4:33 AM
*To:* Muneer Kolarkun= nu
*Cc:* Dalibor Topic; Balchandra Vaidya; dev@jmeter.apache.org
<javascript:_= e(%7B%7D,'cvml','dev@jmeter.apache.org');>; Rory O'Donnell
*Subject:* Re: Possibl= e Bug in Java 8 u 112 in javax.swing.JEditorPane.setText
leads to stuck = UI



Hi,

Previous sample showed already very slow rende= ring when text contains
spaces.

Now for the text without space. S= ample attached.

Regards



On Fri, Jan 13, 2017 at 2:20 = PM, Philippe Mouawad <pmouawad@apache.org
<javascript:_e(%7B%7D,'cvml','pmouawad@apache.org')= ;>> wrote:

Hello Muneer,

Find attached  a simple p= rogram reproducing issue.

I see you closed the bug

Regards


On Fri, Jan 6, 2017 at 2:28 PM, Muneer Kolarkunnu <
abdul.kolarkun= nu@oracle.com
<javascript:_e(%7B%7D,'cvml','abdul.kolarkunnu@oracle.com= ');>> wrote:

Hi Philippe,

Your incident has moved to JD= K-8172336: htt= ps://bugs.openjdk.java.net/
browse/JDK-8172336

I tried to rep= roduce the issue, but I could not reproduce this issue with
the informat= ion shared in the bug report. If you can provide a standalone
test case,= it will be great. Also, please let us know if you observe the
same issu= e with JDK 8u122-ea and JDK 9-ea.
Have you observed the same issue with = other OS(Other than Mac OSX) ?

8u122-ea is available here : https://jdk8.jav= a.net/download.html
JDK 9-ea is available here : https://jdk9.java.net/download/<= /a>

Regards,
Muneer


-----Original Message-----
From= : Rory O'Donnell
Sent: Thursday, January 05, 2017 5:22 PM
To:
dev@jmeter.apache.org
<javascript:_e(%7B%7D,'cvml','
dev@jmeter.apache.org');>
Cc: Rory O'Donne= ll; Dalibor Topic; Balchandra Vaidya; Muneer Kolarkunnu
Subject: Re: Pos= sible Bug in Java 8 u 112 in javax.swing.JEditorPane.setText
leads to st= uck UI

Thanks Philippe, we'll take a look.

Rgds,Rory

<= br>On 05/01/2017 10:30, Philippe Mouawad wrote:

Hello,
Done:9046713

Regards

On Thu, Jan 5, 2017 at= 11:14 AM, Rory O'Donnell
<rory.odonnell@oracle.com

<javascript:_e(%7B%7D,'cvml','rory.odonnell@oracle.com');>>

 

wrote:

Hi Philippe,

Many happy returns!

Can you log a bu= g and send us the Java Incident id ?

Rgds,Rory




On= 05/01/2017 10:12, Philippe Mouawad wrote:

Greetings,
First best wishes for 2017.

I'd like to report what= seems to be a critical bug we face in JMeter
. I noticed it under Mac O= SX El Capitan.

Calling javax.swing.JEditorPane.setText() from AWT Th= read with some
long text (without spaces) leads to what seems to be eith= er a very
long or infinite loop, I made thread dumps and I have always&n= bsp; such
(partial)
stacktrace:
"AWT-EventQueue-0" #20 p= rio=3D6 os_prio=3D31 tid=3D0x00007fa7a8afc000
nid=3D0xf707 runnable [0x0= 000700002202000]
      java.lang.Thread.State: RUNNABLE       at sun.font.CStrike.getNativeGlyphOutline(Nati= ve Method)
       at sun.font.CStrike.getGlyphOutlin= e(CStrike.java:215)
       at sun.font.CStrike.getGl= yphOutlineBounds(CStrike.java:177)
       at
sun.= font.StandardGlyphVector$GlyphStrike.getGlyphOutlineBoun
ds(StandardGlyp= hVector.java:1792)
       at
sun.font.StandardGly= phVector.getGlyphOutlineBounds(StandardG
lyphVector.java:1174)
 =      at
sun.font.StandardGlyphVector.getGlyphVisualBound= s(StandardGl
yphVector.java:586)
       at
sun= .font.StandardGlyphVector.getGlyphInfo(

StandardGlyphVector.java:864)

       at
sun.font.= ExtendedTextSourceLabel.createCharinfo(ExtendedText
SourceLabel.java:622= )
       at
sun.font.ExtendedTextSourceLabel.getC= harinfo(ExtendedTextSou
rceLabel.java:548)
       = ;at
sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedT
extS= ourceLabel.java:480)
       at java.awt.font.TextMea= surer.calcLineBreak(TextMeasurer.

<= p class=3DMsoNormal>java:330)

       at java.awt.font.TextMeasurer= .getLineBreakIndex(TextMeasurer.
java:566)
       = ;at
java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:35= 9)
       at
java.awt.font.LineBreakMeasurer.next= Layout(LineBreakMeasurer.java:440)
       at javax.s= wing.text.TextLayoutStrategy.sync(TextLayoutStrategy.
java:324)
 = ;      at
javax.swing.text.TextLayoutStrategy.insertUpdat= e(TextLayoutS
trategy.java:70)
       at javax.sw= ing.text.FlowView.insertUpdate(FlowView.java:256)
      &= nbsp;at javax.swing.text.View.forwardUpdateToView(View.java:1227)
 =      at javax.swing.text.View.forwardUpdate(View.java:1162)=
       at javax.swing.text.BoxView.forwardUpdate(Bo= xView.java:240)
       at javax.swing.text.View.inse= rtUpdate(View.java:710)
       at
javax.swing.pla= f.basic.BasicTextUI$RootView.insertUpdate(
BasicTextUI.java:1610)
&nb= sp;      at
javax.swing.plaf.basic.BasicTextUI$UpdateHand= ler.insertUpdat
e(BasicTextUI.java:1869)
       a= t
javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractD
ocumen= t.java:201)
       at
javax.swing.text.AbstractDo= cument.handleInsertString(Abstrac
tDocument.java:748)
    &= nbsp;  at
javax.swing.text.AbstractDocument.insertString(

AbstractDocument.java:7= 07)

  =      at javax.swing.text.PlainDocument.insertString(PlainDoc= ument.
java:130)
       at javax.swing.text.Defau= ltEditorKit.read(

DefaultEditorKit.java:273)

<= p class=3DMsoNormal style=3D'margin-bottom:12.0pt'>      &nb= sp;at javax.swing.JEditorPane.setText(JEditorPane.java:1416)
....

Is this a known bug or shall I open one ?
Thank you
Regards
<= br>

--
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle = EMEA , Dublin, Ireland

--
Rgds,Rory O'Donnell
Quality Eng= ineering Manager
Oracle EMEA , Dublin, Ireland




<= /o:p>


--
Rgds,Rory O'Donnell
Quality Engineering Manager
Or= acle EMEA , Dublin, Ireland

 

--__1488348175048149957abhmp0014.oracle.com-- --__1488348175045149956abhmp0014.oracle.com--