#Java.outofmemory error
1 messages · Page 1 of 1 (latest)
Ptag memory
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.
ram ram ram
There's nothing I CAN DO
Ptag Android files
On Android, TheoTown files are stored in the following directory:
- /storage/emulated/0/Android/data/info.flowersoft.theotown.theotown/files
On your file manager, by default, you should be in /storage/emulated/0/. Uninstalling the game on Android will delete all files, unless you decide to keep the files when prompted by the removal process.
If you cannot access this location through your file manager (Android 11 and up restricts access to external storage for apps), you may access these files in 2 ways:
- Use the in-game file manager that is accessible from the region stage menu.
- Use the Files app by Marc apps & software.
You can find your plugin, music, region and city files there as well as logs for debugging purposes.
https://cdn.discordapp.com/attachments/423228437818507264/1424065628192641137/image.png
https://cdn.discordapp.com/attachments/423228437818507264/1424066588629401602/Screenshot_20251004-190930_Files.png
Okay, even if i obliterated most of the plugins in the plugin folder, to no surprise. Same error message
It isn't working still looking fresh
When reporting a bug, please following the following guidelines:
- Use the appropriate tag that best describes your issue.
- Select the correct platform tag (e.g., Android, PC, iOS) related to your problem.
- Include your game version to help with compatibility checks.
- Attach relevant files:
crash.txtlog.txtout.txt
These are located in your TheoTown directory (checkPtag filesfor your system’s location).
- List any plugins you have installed.
- Detail reproduction steps: Clearly explain how the issue can be recreated.
💥 Reporting Crashes
When submitting a crash report, describe the exact moment or conditions under which the crash occurred. If the crash is reproducible, please include that information — it greatly helps us test and resolve the issue faster.
Do I have to list what plugin is involved within these .txt?
I mean if you can it's helpful, but there's not a file that's just a running list or anything
So you'd have to add that yourself
Which I'd say hopefully isn't needed gor this
The only thing that's involved in the log.txt is "Wires under roads" plguin
That's the only thing I saw
These are just helpful for seeing what's the main issye
In theory it bot be plugins at all
I am off to bed now, but I'll look at these in the morning (or with some luck another staff member may)
Alright thanks, I'll get in touch with the other staff available
@merry marten I know you're on top of bugs and such, would you care to provide some insight?
Let's think of this:
A plugin lover and of course they downloaded too many of them, from discord to the in-game plugin store.
Unfortunately so many plugins ended up eating the game's ram until it stopped working.
That's the story, I know I downloaded some good plugins from Ross The Mayor, Vönark or LPC.
After you disabled the plugins, did yoi close the game properly before opening it again?
Yes I did
Here's the thing: I moved most of the plugin files and yet it still gives me the same thing
I'm so clueless as to why this happened
what plugins do you currently have enabled?
I'll check, I'll list them all if I can
yes, that would be ideal
How then? If I can't get access to theotown anyway
you said you moved some of the files, are you not able to see which ones you have from there?
Oh sure
- DTLA Pack (discord)
- Breakwater Plugin (discord)
- Canary Wharf Pack (discord)
- Chinatown buildings and deco (showcase)
- London Buildings pack (Discord)
- Frankfurt Buildings (Discord)
- Cobblestone Roads (Showcase)
8-9. Plugin packs (By Chippy on Showcase) - John Hancock Tower (Showcase)
- Istanbul Work Tower (Showcase)
- La Defénse Pack (Discord)
- Nakatan Tower (Showcase)
- Notre Dame (Showcase)
- Planters (Discord)
- San Francisco City Pack (showcase)
- Track n field stadium (showcase)
- St. Nicholas Church (Showcase)
I think that's all..
Most of them came from Vönark or LPC
try moving out all the pack onesas well
Wdym by that?
Including the ones from the in-game plugin store?
yes
just disable them for now
Alrrrrright what's next?
I just moved everything to a separate folder too
relaunch the game and see if that helped at all
Yeah and after ALL THAT, it's still showing with that crap
I did it too
I'm so confused
Even with plugins stripped off, the game wouldn't work
Not your typical nugget I cant lie, im figuring this out with you as well go
Trying possible remedies
Did you try to reinstall the game?
That is an idea, but they need to backup the data they want to keep like maps and regions first
Instead of uninstalling, clearing all data is an alternative but the data must be backed up first in that case as well
But how to backup before reinstalling?
Like transferring the inner files of theotown
I didn't have anything running
But in the case like for example, you have a theotown account, wouldn't the data be saved there?
Only diamonds and plugin store purchases
Not the maps and regions
Ah, that makes sense
Update:
I finally got it out
All figured
But hopefully the staff can research this, the only
Risky but yet needs to be done is to reinstall the game
I was left with many questions:
Which plugin/regions/single cities consume so much ram?
My best guess is as good as yours unfortunately
You can see plugin sizes on the store
The only thing on top is the Sphere plugin in Las Vegas