[GREENFOOT-199] java.lang.OutOfMemoryError: Java heap space
Hitting the "compile" or "reset" Button throws the konsole up with this output:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Hints:
- The error is caused by the big background image (2500x1900px).
- only by setting the background image in the worldclass AND choosing the same image by right-clicking "setImage", this heap overflow crahing can be reproduced.
I've attached an test project.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 1.5.0