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

Possible memory leak somewhere in ImageView handlers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 8
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      Of course it's impossible to provide finite number of steps to get guaranteed OOM exception on arbitrary machine. But sometimes it's enough to move and resize image for 3-5 minutes.
      Here's the stack I've got for it:

      com.oracle.javafx.scenebuilder.app.SceneBuilderApp$SceneBuilderUncaughtExceptionHandler uncaughtException
      SEVERE: An exception was thrown:
      java.lang.OutOfMemoryError: Java heap space
       at com.sun.javafx.tk.quantum.PixelUtils.imageToPixels(PixelUtils.java:85)
       at com.sun.javafx.tk.quantum.QuantumClipboard.placeImage(QuantumClipboard.java:442)
       at com.sun.javafx.tk.quantum.QuantumClipboard.putContentToPeer(QuantumClipboard.java:593)
       at com.sun.javafx.tk.quantum.QuantumClipboard.flush(QuantumClipboard.java:269)
       at com.sun.javafx.tk.quantum.QuantumToolkit.startDrag(QuantumToolkit.java:1150)
       at javafx.scene.Scene$DnDGesture.dragDetectedProcessed(Scene.java:2940)
       at javafx.scene.Scene$DnDGesture.process(Scene.java:3009)
       at javafx.scene.Scene$DnDGesture.access$8400(Scene.java:2896)
       at javafx.scene.Scene$MouseHandler.process(Scene.java:3762)
       at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3471)
       at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1695)
       at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2486)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
       at java.security.AccessController.doPrivileged(Native Method)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
       at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
       at com.sun.glass.ui.View.notifyMouse(View.java:898)
       at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
       at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
       at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
       at java.lang.Thread.run(Thread.java:744)



       com.oracle.javafx.scenebuilder.app.SceneBuilderApp$SceneBuilderUncaughtExceptionHandler uncaughtException
      SEVERE: An exception was thrown:
      java.lang.AssertionError
       at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.SelectAndMoveGesture.mouseDragDetected(SelectAndMoveGesture.java:188)
       at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.AbstractMouseDragGesture$1.handle(AbstractMouseDragGesture.java:84)
       at com.oracle.javafx.scenebuilder.kit.editor.panel.content.gesture.mouse.AbstractMouseDragGesture$1.handle(AbstractMouseDragGesture.java:80)
       at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
       at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
       at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
       at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
       at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
       at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
       at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
       at javafx.event.Event.fireEvent(Event.java:204)
       at javafx.scene.Scene$DnDGesture.fireEvent(Scene.java:2920)
       at javafx.scene.Scene$DnDGesture.process(Scene.java:2999)
       at javafx.scene.Scene$DnDGesture.access$8400(Scene.java:2896)
       at javafx.scene.Scene$MouseHandler.process(Scene.java:3762)
       at javafx.scene.Scene$MouseHandler.access$1800(Scene.java:3471)
       at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1695)
       at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2486)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:314)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:243)
       at java.security.AccessController.doPrivileged(Native Method)
       at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:345)
       at com.sun.glass.ui.View.handleMouseEvent(View.java:526)
       at com.sun.glass.ui.View.notifyMouse(View.java:898)
       at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
       at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
       at com.sun.glass.ui.win.WinApplication$4$1.run(WinApplication.java:112)
       at java.lang.Thread.run(Thread.java:744)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              dkozorez Dmitry Kozorez (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: