Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-678

Batik calls repaint() while not running in Swing thread

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • 1.6
    • None
    • GVT
    • None
    • Operating System: Linux
      Platform: Other

    Description

      We use a "updates outside of the Swing thread" detector. It yeilded this when
      selecting text:

      [java] java.lang.Exception: Swing Component Accessed From Wrong Thread:
      [java] at
      com.awarix.swing.ThreadCheckingRepaintManager.checkThread(ThreadCheckingRepaintManager.java:67)
      [java] at
      com.awarix.swing.ThreadCheckingRepaintManager.addDirtyRegion(ThreadCheckingRepaintManager.java:74)
      [java] at javax.swing.JComponent.repaint(JComponent.java:4518)
      [java] at javax.swing.JComponent.repaint(JComponent.java:4532)
      [java] at
      org.apache.batik.swing.gvt.TextSelectionManager$TextSelectionListener.selectionStarted(Unknown
      Source)
      [java] at
      org.apache.batik.swing.gvt.TextSelectionManager$TextSelectionListener.selectionCleared(Unknown
      Source)
      [java] at
      org.apache.batik.gvt.text.ConcreteTextSelector.dispatchSelectionEvent(Unknown
      Source)
      [java] at
      org.apache.batik.gvt.text.ConcreteTextSelector.clearSelection(Unknown Source)
      [java] at
      org.apache.batik.swing.gvt.TextSelectionManager$MouseListener.mousePressed(Unknown
      Source)
      [java] at
      org.apache.batik.gvt.event.AWTEventDispatcher.processMouseEvent(Unknown Source)
      [java] at
      org.apache.batik.gvt.event.AWTEventDispatcher.dispatchMouseEvent(Unknown Source)
      [java] at
      org.apache.batik.gvt.event.AWTEventDispatcher.dispatchEvent(Unknown Source)
      [java] at
      org.apache.batik.gvt.event.AWTEventDispatcher.mousePressed(Unknown Source)
      [java] at org.apache.batik.swing.svg.JSVGComponent$18.run(Unknown Source)
      [java] at org.apache.batik.util.RunnableQueue.run(Unknown Source)
      [java] at java.lang.Thread.run(Thread.java:595)

      Here's another one:

      [java] java.lang.Exception: Swing Component Accessed From Wrong Thread:
      [java] at
      com.awarix.swing.ThreadCheckingRepaintManager.checkThread(ThreadCheckingRepaintManager.java:67)
      [java] at
      com.awarix.swing.ThreadCheckingRepaintManager.addDirtyRegion(ThreadCheckingRepaintManager.java:74)
      [java] at javax.swing.JComponent.repaint(JComponent.java:4518)
      [java] at java.awt.Component.repaint(Component.java:2731)
      [java] at
      org.apache.batik.util.gui.MemoryMonitor$RepaintThread.run(Unknown Source)

      Attachments

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            archie Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: