java.lang.OutOfMemoryError: Java heap space

JDK Bug System | Guixin Cheng | 4 months ago
  1. 0

    If you go to a web page with many images, JavaFx WebView uses way too much heap to load the web page. For example, this particular web page has 340 images: https://github.com/d3/d3/wiki/Gallery JavaFx WebView takes around 6.7 GB of heap in order to render the page. Firefox takes around 500 MB. Here are some example heap overflow stacks if you only set you heaps to 2 GB or so: {code} Exception in thread "JavaFX Application Thread" java.lang.OutOfMemoryError: Java heap space at com.sun.javafx.iio.gif.GIFImageLoader2.decodePalette(GIFImageLoader2.java:323) at com.sun.javafx.iio.gif.GIFImageLoader2.load(GIFImageLoader2.java:234) at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:364) at com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:274) at com.sun.javafx.webkit.prism.WCImageDecoderImpl.loadFrames(WCImageDecoderImpl.java:173) at com.sun.javafx.webkit.prism.WCImageDecoderImpl.loadFrames(WCImageDecoderImpl.java:186) at com.sun.javafx.webkit.prism.WCImageDecoderImpl.addImageData(WCImageDecoderImpl.java:109) at com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method) at com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java:838) at com.sun.webkit.network.URLLoader.lambda$didFinishLoading$98(URLLoader.java:829) at com.sun.webkit.network.URLLoader$$Lambda$314/1527838714.run(Unknown Source) at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295) at com.sun.javafx.application.PlatformImpl$$Lambda$179/203274438.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294) at com.sun.javafx.application.PlatformImpl$$Lambda$178/1044483803.run(Unknown Source) at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191) at com.sun.glass.ui.win.WinApplication$$Lambda$167/1747735167.run(Unknown Source) at java.lang.Thread.run(Thread.java:745) {code}

    JDK Bug System | 4 months ago | Guixin Cheng
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    OutOfMemoryError

    GitHub | 11 months ago | cyildirim
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  6. 0

    [exoplatform] [explatform] Memory requirements

    ow2.org | 1 year ago
    java.lang.OutOfMemoryError: Java heap space>java.lang.OutOfMemoryError: Java heap space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at com.sun.javafx.iio.gif.GIFImageLoader2.decodePalette()
    2. com.sun.javafx
      WCImageDecoderImpl.addImageData
      1. com.sun.javafx.iio.gif.GIFImageLoader2.decodePalette(GIFImageLoader2.java:323)
      2. com.sun.javafx.iio.gif.GIFImageLoader2.load(GIFImageLoader2.java:234)
      3. com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:364)
      4. com.sun.javafx.iio.ImageStorage.loadAll(ImageStorage.java:274)
      5. com.sun.javafx.webkit.prism.WCImageDecoderImpl.loadFrames(WCImageDecoderImpl.java:173)
      6. com.sun.javafx.webkit.prism.WCImageDecoderImpl.loadFrames(WCImageDecoderImpl.java:186)
      7. com.sun.javafx.webkit.prism.WCImageDecoderImpl.addImageData(WCImageDecoderImpl.java:109)
      7 frames
    3. com.sun.webkit
      URLLoader.lambda$didFinishLoading$98
      1. com.sun.webkit.network.URLLoader.twkDidFinishLoading(Native Method)
      2. com.sun.webkit.network.URLLoader.notifyDidFinishLoading(URLLoader.java:838)
      3. com.sun.webkit.network.URLLoader.lambda$didFinishLoading$98(URLLoader.java:829)
      3 frames