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

OutOfMemoryError after creating some JFXPanel instances (e.g. tabs)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 7u15
    • javafx
    • Windows 7, JDK 1.7.0_17

      I've started the VM with -Xmx64m and creation of *just 4* JFXPanel instances causes an OutOfMemoryError.

      {code}
      java.lang.OutOfMemoryError: Java heap space
      at java.nio.HeapIntBuffer.<init>(HeapIntBuffer.java:57)
      at java.nio.IntBuffer.allocate(IntBuffer.java:331)
      at com.sun.javafx.tk.quantum.EmbeddedPainter.run(EmbeddedPainter.java:78)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
      at com.sun.prism.render.RenderJob.run(RenderJob.java:37)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:98)
      at java.lang.Thread.run(Thread.java:722)
      {code}

      This makes JFXPanel almost unusable in environments such as NetBeans Platform, e.g. opening many tabs with content displayed via JFX. Increasing Xmx is not really a solution - who knows how many tabs will be opened...

            ant Anton Tarasov (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: