[messages] [Technical Support & Bugs] Unable to save game or write log due to out of memory

mintroll mintroll-vassal at 2-72.co.uk
Fri Sep 13 13:52:15 MST 2013


I'm playing the Space Empires 4X Module, I've been playing a game a
while and wanted to save it (so I could go to sleep), but VASSAL would
not let me save... I tried 'save game' and 'begin/end log' to try save
something. Both times I got 'VASSAL out of memory: change heap size and
restart'

I'd happily increase the heap size and restart... but it wouldn't let me
save my game first.

In the end I lost my game (yes, I should have been saving more often) -
failure to save seems a issue to me.


Is there a way to force a save... is this an issue other people have. Or
is it just the Space Empires module?


Thanks for any help.


I'm running
VASSAL 3.2.8
Se4x-close-encounters-2-1-final

java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.9)
(6b20-1.9.9-0ubuntu1~10.04.2)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

Linux 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:17 UTC 2011
x86_64 GNU/Linux

4Gb Memory
Unknown graphics card (sorry)


> 2013-09-13 18:02:56,894 [1-AWT-EventQueue-0] INFO 
> VASSAL.script.ExpressionInterpreter - Attempting to load
> /VASSAL/script/init_expression.bsh URI
>
generated=jar:file:/home/Downloads/VASSAL-3.2.8/lib/Vengine.jar!/VASSAL/script/init_expression.bsh
> 2013-09-13 19:20:38,284 [1-AWT-EventQueue-0] ERROR
> VASSAL.tools.ErrorDialog - 
> java.lang.OutOfMemoryError: Java heap space
>         at java.util.Arrays.copyOf(Arrays.java:2894) ~[na:1.6.0_20]
>         at
>
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:117)
> ~[na:1.6.0_20]
>         at
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:407)
> ~[na:1.6.0_20]
>         at java.lang.StringBuilder.append(StringBuilder.java:136)
> ~[na:1.6.0_20]
>         at
>
VASSAL.tools.SequenceEncoder.appendEscapedString(SequenceEncoder.java:144)
> ~[Vengine.jar:na]
>         at
> VASSAL.tools.SequenceEncoder.append(SequenceEncoder.java:88)
> ~[Vengine.jar:na]
>         at VASSAL.launch.BasicModule.encode(BasicModule.java:252)
> ~[Vengine.jar:na]
>         at
> VASSAL.build.module.GameState.saveString(GameState.java:415)
> ~[Vengine.jar:na]
>         at VASSAL.build.module.GameState.saveGame(GameState.java:649)
> ~[Vengine.jar:na]
>         at VASSAL.build.module.GameState.saveGame(GameState.java:454)
> ~[Vengine.jar:na]
>         at
> VASSAL.build.module.GameState$2.actionPerformed(GameState.java:123)
> ~[Vengine.jar:na]
>         at
>
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
> ~[na:1.6.0_20]
>         at
>
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
> ~[na:1.6.0_20]
>         at
>
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
> ~[na:1.6.0_20]
>         at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
> ~[na:1.6.0_20]
>         at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
> ~[na:1.6.0_20]
>         at
>
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)
> ~[na:1.6.0_20]
>         at
>
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)
> ~[na:1.6.0_20]
>         at java.awt.Component.processMouseEvent(Component.java:6203)
> ~[na:1.6.0_20]
>         at
> javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> ~[na:1.6.0_20]
>         at java.awt.Component.processEvent(Component.java:5968)
> ~[na:1.6.0_20]
>         at java.awt.Container.processEvent(Container.java:2105)
> ~[na:1.6.0_20]
>         at java.awt.Component.dispatchEventImpl(Component.java:4564)
> ~[na:1.6.0_20]
>         at java.awt.Container.dispatchEventImpl(Container.java:2163)
> ~[na:1.6.0_20]
>         at java.awt.Component.dispatchEvent(Component.java:4390)
> ~[na:1.6.0_20]
>         at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
> ~[na:1.6.0_20]
>         at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
> ~[na:1.6.0_20]
>         at
> java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
> ~[na:1.6.0_20]
>         at java.awt.Container.dispatchEventImpl(Container.java:2149)
> ~[na:1.6.0_20]
>         at java.awt.Window.dispatchEventImpl(Window.java:2478)
> ~[na:1.6.0_20]
>         at java.awt.Component.dispatchEvent(Component.java:4390)
> ~[na:1.6.0_20]
>         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
> ~[na:1.6.0_20]
> 2013-09-13 19:22:09,363 [1-AWT-EventQueue-0] ERROR
> VASSAL.tools.ErrorDialog - 


_______________________________________________
Read this topic online here:
http://www.vassalengine.org/forum/viewtopic.php?p=42020#p42020


More information about the messages mailing list