This site requires JavaScript, please enable it in your browser!
Greenfoot back
Annex456789
Annex456789 wrote ...

2024/5/24

How to increase heap space?

Annex456789 Annex456789

2024/5/24

#
Hello, this is my first time using Greenfoot and I ran my program and it gave me these errors: java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space I don't know how to resolve the issue, please help!!! :(
Annex456789 Annex456789

2024/5/24

#
Here is more of the errors, Greenfoot like freezes when I try to copy it all: r: Java heap space java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space: java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
danpost danpost

2024/5/24

#
Please provide your MyWorld class codes (to start with).
Annex456789 Annex456789

2024/5/24

#
Hi Danpost, I think I solved it, because I created an infinite loop with one of my actors. Thank you to being so helpful :)
You need to login to post a reply.