Hi,

   I was going to send this as a problem to the mailing list but (seemed to) have solved it.  I thought it might still be useful for someone else searching the archive though.

   The problem was getting an OutOfMemoryError when resizing a JFrame that contained two JSVGCanvases inside two separate JScrollPanes.  It turned out that the canvases were too big for the default jvm memory allocation (each one 1000 x 5000).  The solution came from http://www.cs.umd.edu/projects/hcil/jazz/list-archives/jazz-chat/0795.html where someone says that the JVM defaults to a memory allocation of 64M but can be increased at runtime through a command line parameter like this: Java -Xmx256M (e.g. to 256M)

-Randy

 

---Error message before adjusting jvm memory allocation---

java.lang.OutOfMemoryError

java.lang.IllegalStateException: RunnableQueue not started or has exited

            at org.apache.batik.util.RunnableQueue.invokeLater(Unknown Source)

            at org.apache.batik.swing.svg.JSVGComponent$SVGListener.dispatchMouseEntered(Unknown Source)

            at org.apache.batik.swing.gvt.JGVTComponent$Listener.mouseEntered(Unknown Source)

            at java.awt.AWTEventMulticaster.mouseEntered(AWTEventMulticaster.java:237)

            at java.awt.Component.processMouseEvent(Component.java:5030)

            at java.awt.Component.processEvent(Component.java:4818)

            at java.awt.Container.processEvent(Container.java:1525)

            at java.awt.Component.dispatchEventImpl(Component.java:3526)

            at java.awt.Container.dispatchEventImpl(Container.java:1582)

            at java.awt.Component.dispatchEvent(Component.java:3367)

            at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)

            at java.awt.LightweightDispatcher.trackMouseEnterExit(Container.java:3199)

            at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3056)

            at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)

            at java.awt.Container.dispatchEventImpl(Container.java:1568)

            at java.awt.Window.dispatchEventImpl(Window.java:1581)

            at java.awt.Component.dispatchEvent(Component.java:3367)

            at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)

            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)

            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)

            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)

            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)

            at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)

Reply via email to