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

OOME from pulseString()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 7u6
    • fx2.1
    • javafx
    • JavaFx 2.1.0-beta-b14, Java 6, OS X.

      with a large number of nodes in the scene graph (40'000 rectangles and action handlers attached)
      I got the following OOME
      {code}
      Glass detected outstanding Java exception at -[GlassRunnable run]:src/com/sun/mat/ui/GlassApplication.m:163
      Exception in thread "AWT-AppKit" java.lang.OutOfMemoryError: Java heap space
      java.lang.OutOfMemoryError: Java heap space
      at java.lang.AbstractStringBuilder.<init>(AbstractStringBuilder.java:45)
      at java.lang.StringBuilder.<init>(StringBuilder.java:68)
      at com.sun.javafx.tk.quantum.QuantumToolkit.pulseString(QuantumToolkit.java:424)
      at com.sun.javafx.tk.quantum.QuantumToolkit.postPulse(QuantumToolkit.java:407)
      at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:330)
      {code}

      While it is totally ok to get OOME with too many nodes, it is probably not intended
      that this comes from a StringBuilder generated by pulseString() !

      Related: RT-20007

            morris Morris Meyer (Inactive)
            dkoenigjfx Dierk Koenig (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: