jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Mouawad <pmoua...@apache.org>
Subject Possible Bug in Java 8 u 112 in javax.swing.JEditorPane.setText leads to stuck UI
Date Thu, 05 Jan 2017 10:12:25 GMT
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  such (partial)
stacktrace:
"AWT-EventQueue-0" #20 prio=6 os_prio=31 tid=0x00007fa7a8afc000 nid=0xf707
runnable [0x0000700002202000]
   java.lang.Thread.State: RUNNABLE
    at sun.font.CStrike.getNativeGlyphOutline(Native Method)
    at sun.font.CStrike.getGlyphOutline(CStrike.java:215)
    at sun.font.CStrike.getGlyphOutlineBounds(CStrike.java:177)
    at
sun.font.StandardGlyphVector$GlyphStrike.getGlyphOutlineBounds(StandardGlyphVector.java:1792)
    at
sun.font.StandardGlyphVector.getGlyphOutlineBounds(StandardGlyphVector.java:1174)
    at
sun.font.StandardGlyphVector.getGlyphVisualBounds(StandardGlyphVector.java:586)
    at
sun.font.StandardGlyphVector.getGlyphInfo(StandardGlyphVector.java:864)
    at
sun.font.ExtendedTextSourceLabel.createCharinfo(ExtendedTextSourceLabel.java:622)
    at
sun.font.ExtendedTextSourceLabel.getCharinfo(ExtendedTextSourceLabel.java:548)
    at
sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedTextSourceLabel.java:480)
    at java.awt.font.TextMeasurer.calcLineBreak(TextMeasurer.java:330)
    at java.awt.font.TextMeasurer.getLineBreakIndex(TextMeasurer.java:566)
    at
java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:359)
    at
java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:440)
    at javax.swing.text.TextLayoutStrategy.sync(TextLayoutStrategy.java:324)
    at
javax.swing.text.TextLayoutStrategy.insertUpdate(TextLayoutStrategy.java:70)
    at javax.swing.text.FlowView.insertUpdate(FlowView.java:256)
    at javax.swing.text.View.forwardUpdateToView(View.java:1227)
    at javax.swing.text.View.forwardUpdate(View.java:1162)
    at javax.swing.text.BoxView.forwardUpdate(BoxView.java:240)
    at javax.swing.text.View.insertUpdate(View.java:710)
    at
javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1610)
    at
javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1869)
    at
javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
    at
javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:748)
    at
javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:707)
    at javax.swing.text.PlainDocument.insertString(PlainDocument.java:130)
    at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:273)
    at javax.swing.JEditorPane.setText(JEditorPane.java:1416)
....


Is this a known bug or shall I open one ?
Thank you
Regards

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message