Menu ▾ ▴

#3 Out of memory exception

open
nobody
None
5
2005-07-25
2005-07-25
Anonymous
No

I tried to load 25 gif images, total size 5.82 MB.
This causes an out of memory excheption and the program
does not recover...

Discussion

  • Nobody/Anonymous

    Logged In: NO

    ... this is the exception I get:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Exception in thread "AWT-EventQueue-0"
    java.lang.OutOfMemoryError: Java heap spa
    ce
    Exception in thread "AWT-EventQueue-0"
    java.lang.OutOfMemoryError: Java heap spa
    ce
    Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException
    at
    com.ranga.janimationshop.components.AnimationImage.mouseEntered(Anima
    tionImage.java:198)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown
    Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
    Source)
    at
    java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown
    Source)
    at
    java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)

    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown
    Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0"
    java.lang.OutOfMemoryError: Java heap spa
    ce
    Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException
    at
    com.ranga.janimationshop.components.AnimationImage.mouseEntered(Anima
    tionImage.java:198)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown
    Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
    Source)
    at
    java.awt.LightweightDispatcher.trackMouseEnterExit(Unknown
    Source)
    at
    java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at
    java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
    Source)

    at
    java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown
    Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0"
    java.lang.OutOfMemoryError: Java heap spa
    ce
    Exception in thread "AWT-EventQueue-0"
    java.lang.OutOfMemoryError: Java heap spa
    ce
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     
  • Ranganath Prasannakumar

    Logged In: YES
    user_id=1011002

    you get this if you try to open too many files at once

     

Log in to post a comment.