Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8124221

LinkedHashMap ConcurrentModificationException in complex multi-task gui

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 7u10
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Win7 x64, 8GB RAM

      Description

      I have a complex gui with many Node adding, replacing, removing. The gui also uses many tasks.
      At random following ConcurrentModificationException is thrown.
      I have replaced all HashMaps with ConcurrentHashMaps in my project but the ConcurrentModificationException still occurs.

      java.util.ConcurrentModificationException
      at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(Unknown Source)
      at java.util.LinkedHashMap$KeyIterator.next(Unknown Source)
      at javafx.scene.Parent.recomputeBounds(Parent.java:1526)
      at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1275)
      at javafx.scene.Node.updateGeomBounds(Node.java:3142)
      at javafx.scene.Node.getGeomBounds(Node.java:3102)
      at javafx.scene.Node.getLocalBounds(Node.java:3084)
      at javafx.scene.Node.updateTxBounds(Node.java:3155)
      at javafx.scene.Node.getTransformedBounds(Node.java:3002)
      at javafx.scene.Parent.recomputeBounds(Parent.java:1577)
      at javafx.scene.Parent.impl_computeGeomBounds(Parent.java:1275)
      at javafx.scene.layout.Region.impl_computeGeomBounds(Region.java:2517)
      at javafx.scene.Node.updateGeomBounds(Node.java:3142)
      at javafx.scene.Node.getGeomBounds(Node.java:3102)
      at javafx.scene.Node.impl_updatePG(Node.java:456)
      at javafx.scene.Parent.impl_updatePG(Parent.java:107)
      at javafx.scene.layout.Region.impl_updatePG(Region.java:2044)
      at javafx.scene.Node.impl_syncPGNode(Node.java:425)
      at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2105)
      at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2206)
      at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
      at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              psafrata Pavel Ĺ afrata
              Reporter:
              aliebelt Andreas Liebelt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: