#Java.outofmemory error

1 messages · Page 1 of 1 (latest)

merry garden
#

I tried to "ignore" the report in theotown several times and it KEPT POPPING up with this same result.
Even restarting my own device cannot help.
My OS is Android and I'm still stuck with this error message
PS: HELP!!!

twin pagoda
#

Ptag memory

lost zodiacBOT
# twin pagoda 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.

elder dawn
#

ram ram ram

merry garden
#

There's nothing I CAN DO

twin pagoda
#

Ptag Android files

lost zodiacBOT
# twin pagoda 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:

  1. Use the in-game file manager that is accessible from the region stage menu.
  2. 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

This app is a shortcut to the file manager of the settings app.

twin pagoda
#

Try this

#

And delete some plugins

merry garden
twin pagoda
#

Huh

#

That's interesting

#

Have you tried restarting your device at all during this

merry garden
twin pagoda
#

Since you have access to the files can you try getting these

#

Ptag crash

lost zodiacBOT
# twin pagoda Ptag crash

When reporting a bug, please following the following guidelines:

  1. Use the appropriate tag that best describes your issue.
  2. Select the correct platform tag (e.g., Android, PC, iOS) related to your problem.
  3. Include your game version to help with compatibility checks.
  4. Attach relevant files:
    • crash.txt
    • log.txt
    • out.txt
      These are located in your TheoTown directory (check Ptag files for your system’s location).
  5. List any plugins you have installed.
  6. 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.

merry garden
twin pagoda
#

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

merry garden
#

The only thing that's involved in the log.txt is "Wires under roads" plguin

#

That's the only thing I saw

twin pagoda
#

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)

merry garden
twin pagoda
#

@merry marten I know you're on top of bugs and such, would you care to provide some insight?

elder dawn
#

i have a good solution

#

new phone

#

wait

#

what's youe phone

merry garden
#

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.

merry marten
merry marten
#

Odd

#

Give me a few minutes and Ill check out your files on pc

merry garden
# merry marten Odd

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

merry marten
merry garden
merry marten
#

yes, that would be ideal

merry garden
merry marten
merry garden
#
  1. DTLA Pack (discord)
  2. Breakwater Plugin (discord)
  3. Canary Wharf Pack (discord)
  4. Chinatown buildings and deco (showcase)
  5. London Buildings pack (Discord)
  6. Frankfurt Buildings (Discord)
  7. Cobblestone Roads (Showcase)
    8-9. Plugin packs (By Chippy on Showcase)
  8. John Hancock Tower (Showcase)
  9. Istanbul Work Tower (Showcase)
  10. La Defénse Pack (Discord)
  11. Nakatan Tower (Showcase)
  12. Notre Dame (Showcase)
  13. Planters (Discord)
  14. San Francisco City Pack (showcase)
  15. Track n field stadium (showcase)
  16. St. Nicholas Church (Showcase)

I think that's all..
Most of them came from Vönark or LPC

merry marten
#

try moving out all the pack onesas well

merry garden
merry garden
merry marten
merry garden
#

I just moved everything to a separate folder too

merry marten
#

relaunch the game and see if that helped at all

merry garden
#

Yeah and after ALL THAT, it's still showing with that crap

merry marten
#

I have no idea why

#

Try clearing cache in settings

merry garden
merry garden
#

Even with plugins stripped off, the game wouldn't work

merry marten
#

🤔

#

What background apps do you have running?

merry marten
#

Trying possible remedies

broken jackal
#

Did you try to reinstall the game?

merry marten
#

Instead of uninstalling, clearing all data is an alternative but the data must be backed up first in that case as well

broken jackal
#

But how to backup before reinstalling?

#

Like transferring the inner files of theotown

merry marten
#

Yes

#

Specifically maps and region files

merry garden
merry garden
merry marten
#

Not the maps and regions

merry garden
merry garden
#

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

merry marten
#

I wonder what was taking all that memory

#

Good to hear its been resolved though

merry garden
merry marten
#

My best guess is as good as yours unfortunately

#

You can see plugin sizes on the store

merry garden