clairelbromley / ZebrafishKymographing

Various software tools written for analysis of lumen opening and membrane retraction in zebrafish.
1 stars 0 forks source link

Problems with memory using manual edge finding #39

Closed clairelbromley closed 7 years ago

clairelbromley commented 7 years ago

Date = 210716, Embryo = 10b, Cut = 1 Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space at java.awt.image.DataBufferInt.(DataBufferInt.java:75) at java.awt.image.Raster.createPackedRaster(Raster.java:470) at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1032) at java.awt.image.BufferedImage.(BufferedImage.java:357) at sun.java2d.loops.GraphicsPrimitive.convertFrom(GraphicsPrimitive.java:557) at sun.java2d.opengl.OGLGeneralBlit.Blit(OGLBlitLoops.java:750) at sun.java2d.pipe.DrawImage.blitSurfaceData(DrawImage.java:956) at sun.java2d.pipe.DrawImage.renderImageCopy(DrawImage.java:578) at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:71) at sun.java2d.pipe.DrawImage.copyImage(DrawImage.java:1011) at sun.java2d.pipe.ValidatePipe.copyImage(ValidatePipe.java:186) at sun.java2d.SunGraphics2D.drawImage(SunGraphics2D.java:3084) at com.mathworks.hg.peer.FigureAxisComponentProxy.doPaint(FigureAxisComponentProxy.java:196) at com.mathworks.hg.peer.FigureAxisComponentProxy.access$000(FigureAxisComponentProxy.java:23) at com.mathworks.hg.peer.FigureAxisComponentProxy$2.paintCallback(FigureAxisComponentProxy.java:61) at com.mathworks.hg.peer.AxisPanel.paint(AxisPanel.java:64) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JComponent.paintChildren(JComponent.java:887) at javax.swing.JComponent.paint(JComponent.java:1063) at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) Caught unexpected exception of unknown type. Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

Insufficient Java heap memory to continue operation

clairelbromley commented 7 years ago

The above error message came up when I had pressed to assign a membrane front manually - this appeared when I had got up to the third embryo

clairelbromley commented 7 years ago

http://uk.mathworks.com/matlabcentral/fileexchange/36757-java-heap-cleaner Not sure if the above function will help?

Or in any case it might be that the code is not deleting the images created after manual edge finding?

clairelbromley commented 7 years ago

For now I have increased the java heap memory available in matlab 8x to hopefully mean the viewer can run for abit longer

screen shot 2016-11-10 at 15 24 25

dougkelly88 commented 7 years ago

Fixed in 1cf4d12463eabd6e3b25652d16d957f6d7c10c60.