java.lang.OutOfMemoryError: Java heap space


Solutions on the web

Solution icon of stackoverflow
Java heap space

Solution icon of stackoverflow
Java heap space

Stack trace

java.lang.OutOfMemoryError: Java heap space
	at com.sun.javafx.iio.jpeg.JPEGImageLoader.load(JPEGImageLoader.java:238)
	at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:364)
	at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:324)
	at com.sun.javafx.tk.quantum.PrismImageLoader2.loadAll(PrismImageLoader2.java:127)
	at com.sun.javafx.tk.quantum.PrismImageLoader2.<init>(PrismImageLoader2.java:71)
	at com.sun.javafx.tk.quantum.QuantumToolkit.loadImage(QuantumToolkit.java:720)
	at javafx.scene.image.Image.loadImage(Image.java:1047)
	at javafx.scene.image.Image.initialize(Image.java:795)
	at javafx.scene.image.Image.<init>(Image.java:609)
	at derby.PhotoGallery$1$1.updateItem(PhotoGallery.java:138)
	at derby.PhotoGallery$1$1.updateItem(PhotoGallery.java:123)
	at javafx.scene.control.TableCell.updateItem(TableCell.java:663)
	at javafx.scene.control.TableCell.indexChanged(TableCell.java:468)
	at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:116)
	at com.sun.javafx.scene.control.skin.TableRowSkinBase.updateCells(TableRowSkinBase.java:533)
	at com.sun.javafx.scene.control.skin.TableRowSkinBase.checkState(TableRowSkinBase.java:634)
	at com.sun.javafx.scene.control.skin.TableRowSkinBase.computePrefHeight(TableRowSkinBase.java:571)
	at javafx.scene.control.Control.computePrefHeight(Control.java:545)
	at javafx.scene.Parent.prefHeight(Parent.java:927)
	at javafx.scene.layout.Region.prefHeight(Region.java:1435)
	at com.sun.javafx.scene.control.skin.VirtualFlow.resizeCellSize(VirtualFlow.java:1947)
	at com.sun.javafx.scene.control.skin.VirtualFlow.addTrailingCells(VirtualFlow.java:1345)
	at com.sun.javafx.scene.control.skin.VirtualFlow.layoutChildren(VirtualFlow.java:1197)
	at javafx.scene.Parent.layout(Parent.java:1079)
	at javafx.scene.Parent.layout(Parent.java:1085)
	at javafx.scene.Parent.layout(Parent.java:1085)
	at javafx.scene.Parent.layout(Parent.java:1085)
	at javafx.scene.Scene.doLayoutPass(Scene.java:552)
	at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2397)
	at com.sun.javafx.tk.Toolkit.lambda$runPulse$31(Toolkit.java:348)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.