Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

IndexOutOfBoundsException when compilation/upload output window updated #3475

Closed
@yodaldevoid

Description

Every once and a while (maybe once every three times) when the compile or upload button is hit, an IndexOutOfBoundsException is created and the requested action does not happen. Generally hitting the button again clears the error and everything works fine.

Error:

java.lang.IndexOutOfBoundsException: len=-1
 at sun.font.FontDesignMetrics.charsWidth(FontDesignMetrics.java:501)
 at org.fife.ui.rsyntaxtextarea.TokenImpl.getWidthUpTo(TokenImpl.java:528)
 at org.fife.ui.rsyntaxtextarea.TokenImpl.getWidth(TokenImpl.java:499)
 at org.fife.ui.rsyntaxtextarea.RSyntaxUtilities.getTokenListWidth(RSyntaxUtilities.java:1142)
 at org.fife.ui.rsyntaxtextarea.RSyntaxUtilities.getTokenListWidth(RSyntaxUtilities.java:1121)
 at org.fife.ui.rsyntaxtextarea.SyntaxView.getLineWidth(SyntaxView.java:304)
 at org.fife.ui.rsyntaxtextarea.SyntaxView.calculateLongestLine(SyntaxView.java:110)
 at org.fife.ui.rsyntaxtextarea.SyntaxView.updateMetrics(SyntaxView.java:892)
 at org.fife.ui.rsyntaxtextarea.SyntaxView.setSize(SyntaxView.java:802)
 at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1722)
 at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:912)
 at javax.swing.plaf.basic.BasicTextAreaUI.getPreferredSize(BasicTextAreaUI.java:120)
 at javax.swing.JComponent.getPreferredSize(JComponent.java:1662)
 at javax.swing.JTextArea.getPreferredSize(JTextArea.java:619)
 at javax.swing.JViewport.getViewSize(JViewport.java:999)
 at javax.swing.plaf.basic.BasicScrollPaneUI.syncScrollPaneWithViewport(BasicScrollPaneUI.java:278)
 at javax.swing.plaf.basic.BasicScrollPaneUI$Handler.stateChanged(BasicScrollPaneUI.java:1033)
 at javax.swing.JViewport.fireStateChanged(JViewport.java:1369)
 at javax.swing.JViewport.setView(JViewport.java:969)
 at javax.swing.JScrollPane.setViewportView(JScrollPane.java:1007)
 at org.fife.ui.rtextarea.RTextScrollPane.setViewportView(RTextScrollPane.java:253)
 at processing.app.Editor.setCode(Editor.java:1766)
 at processing.app.Sketch.setCurrentCode(Sketch.java:1000)
 at processing.app.Sketch.load(Sketch.java:121)
 at processing.app.Sketch.prepare(Sketch.java:1071)
 at processing.app.Sketch.exportApplet(Sketch.java:1123)
 at processing.app.Sketch.exportApplet(Sketch.java:1113)
 at processing.app.Editor$DefaultExportHandler.run(Editor.java:2380)
 at java.lang.Thread.run(Thread.java:745)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /