#Java Heap Space Issue: An Exception Occurred in Theotown Game (1.11.36p)

1 messages · Page 1 of 1 (latest)

woven vine
#

Dear Theotown Developer,

I hope this message finds you well. I encountered a recurring problem in the game with the following error details:

An exception occurred (1.11.36p)
Details about the issue:
x
com.badlogic.gdx.utils.GdxRuntimeException:java.lang.OutOfMemoryError: Java heap space
at com.badlogic.gdx.backends.lwjg13.Lwjg13Application.<init>(Lwjg13Application.java:172)
at into.flowersoft.theotown.desktop.DesktopLauncher$2.<init>(DesktopLauncher.java:118)
at into.flowersoft.theotown.desktop.DesktopLauncher.main(DesktopLauncher.java:104)
Caused by: java.lang.OutOfMemoryError: Java heap space

I have attached a screenshot for your reference. I attempted to adjust the heap space, but the game fails to run. If this problem persists, kindly review the details provided and advise on a possible solution.

Your prompt assistance in resolving this matter is highly appreciated.

Best regards,
Kenth Delfin
Kirin1307

topaz mantleBOT
# woven vine Dear Theotown Developer, I hope this message finds you well. I encountered a re...

If you encounter java.lang.OutOfMemoryError: Java heap space error, that means that the game ran out of memory (ram) while processing your request or action.

If you're on mobile, there's not much you can do to alleviate this issue, closing other applications in the background might help. For PC, you can simply increase the maximum heap space as a launch argument. For example -Xmx4G will let the game use up to 4 gigabytes of memory. That is, of course if you have enough memory. Generally, it's not a good idea to allocate more than 50% of your entire system memory. If that doesn't work and you're on PC, please check if you have 64 bit Java installed, because if you don't, game can only use 2 gigabytes of memory.

woven vine
#

like this?

#

I will try to find a solution

harsh sedge
#

do you have 64 bit java installed?

woven vine
#

my bad, i have 32 bit Java. I thought I installed the right one. The "Java HotSpot(TM) Client VM" indicates that it's a client VM, which is typically associated with 32-bit Java

harsh sedge
#

Ptag java

harsh sedge
#

get the 64 bit one :)

woven vine
#

I'm pleased to inform you that I have successfully integrated the 64-bit version of Java on my PC. This update ensures optimal performance and compatibility for various applications👌

#

I deleted the 32 bit Java and installed a new one