Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Dries007

      ATTENTION Forum Database Breach   03/04/2019

      There has been a breach of our database. Please make sure you change your password (use a password manager, like Lastpass).
      If you used this password anywhere else, change that too! The passwords themselves are stored hashed, but may old accounts still had old, insecure (by today's standards) hashes from back when they where created. This means they can be "cracked" more easily. Other leaked information includes: email, IP, account name.
      I'm trying my best to find out more and keep everyone up to date. Discord (http://invite.gg/TerraFirmaCraft) is the best option for up to date news and questions. I'm sorry for this, but the damage has been done. All I can do is try to make sure it doesn't happen again.
    • Claycorp

      This forum is now READ ONLY!   01/20/2020

      As of this post and forever into the future this forum has been put into READ ONLY MODE. There will be no new posts! A replacement is coming SoonTM . If you wish to stay up-to-date on whats going on or post your content. Please use the Discord or Sub-Reddit until the new forums are running.

      Any questions or comments can be directed to Claycorp on either platform.
MDub

[Solved] Possible Memory Leak?

7 posts in this topic

TFC Version #: 0.79.18
 
Forge Version #: v10.13.2.1291
 
Please note that an actual number must be provided for both of the above fields.
Simply saying "current" or "latest" will result in your post being locked, due to the fact that in a large number of cases, users who say they are using the "latest" or "current" version are actually using an outdated version.
 
SSP/SMP (SinglePlayer/MultiPlayer): SSP

 

 
Have you deleted your config files or are using default configs and are still able to reproduce this bug? (Yes/No): yes
 
If you answered no to the above question, delete all 3 TFC config files (TFCCrafting, TFCOptions, TFCOre), do NOT edit or add to any of the files, and try to reproduce the bug.
This question is here because many bugs are caused by mistakes in config files. All bug reports should have an answer of "Yes" to this question.
 
Do you have any mods other than Forge and TFC installed? (Yes/No):  yes
If yes, which mods?  REI, Fastcraft

If you have Optifine or Cauldron installed, can you still reproduce the bug after uninstalling them? (Yes/No): Not using them
 
If you answered no to the above question, uninstall Optifine/Cauldron and try to reproduce the bug.
Both Optifine and Cauldron edit the base classes of forge that TFC uses. Because of this, we cannot officially support any issues that happen only when these mods are installed. In the majority of cases, TFC is not causing the bug; Optifine/Cauldron is and TFC can do nothing to fix it.
All bug reports should have an answer of "Yes" to this question.
If you refuse to uninstall Optifine/Cauldron, and cannot reproduce the bug when the mods are not installed, do not bother making a bug report, as it will be locked and ignored.
 
Pastebin.com link of the Crash Report: no crash

 

 

Sorry about the format above if its a little wonky, I copied from some other support thread because im lazy.

I created a brand new instance of TFC this weekend to try out, which I do from time to time. Most everything was working correctly for me, but I kept experiencing a consistent type of behavior. I would play the game for 30 minutes or so, and then I would get stuttering in my frame rates. If I stood still for a while, they would go away, but return when I started moving around and actively doing things again. The time it took for the stuttering to happen again would get smaller and smaller with each iteration of the process. I suggest that this may be a memory leak due to the nature of the stuttering. It felt quite like CPU time in GC, but that coupled with the shortening timeframe for the issue to happen again, leads me to believe the heap is filling up with objects that are not eligible for GC, and that the CPU is having to spend more and more time in GC as the available space shrinks over time. I did get one crash during this, an IllegalOperationException, or IllegalStateException, or something or other, with the ole "Already Tesselating" exception message. I didn't bother including the stack trace in this post because I don't always get that error, and believe it to be a symptom of a bigger problem and not the root cause. If need be I can profile this in visual VM or something and provide you guys with the snapshot if it helps. FYI I think my heap is set to 4 gigs or something ridiculous (via the windows environmental var), and I am using the default GC settings on a standard  64bit JVM. Also, just restarting TFC clears up the issue for obvious reasons, its just troublesome, and consistent... and I have to actually restart the client. Never experienced this in MP, but then again, I haven't played MP in a long time.

Edited by MDub
0

Share this post


Link to post
Share on other sites

What JVM arguments are you using on the actual Minecraft launcher? Minecraft doesn't really care what you set the heap to on your system by default, you have to set it in the JVM arguments for the launcher itself.

 

TFC is an extremely resource intensive mod. You need at least 1GB allocated to play single player smoothly. This is not a memory leak, the mod does actually properly use all of those resources primarily because we are generating using the full world height of 256 blocks.

 

Also, I strongly suggest you use a different minimap mod, as any copy of REI's minimap that's for a Minecraft version later than 1.6.2 is an illegal port, violates copyright and could very possibly contain malware as it is not an officially distributed copy.

0

Share this post


Link to post
Share on other sites

I don't actually set any JVM args in MultiMC, only via the windows java options deal, which I'm pretty sure is a global setting that is only overridden, and not ignored outright by individual JVM's. I will try to set it via MultiMC, but the default heap size is what like 512MB? Presumably it would have to be creating the JVM using the windows environmental, but I don't actually know this for sure off hand. I would expect it to crash with an OOME @ 512MB. I'll give it a shot tonight and let ya know what happens.

0

Share this post


Link to post
Share on other sites

The launcher sets it's own default JVM arguments to launch, overriding environmental variables, if you don't.

 

Edit: It's also important to note that allocating too much memory can cause just as many lag spikes as not enough, because your system might not be able to handle dumping all that memory at once. I suggest you start with setting 1 min, 2 max, and only increasing if you still experience issues.

 

Also make sure to uninstall REI's and confirm that it is TFC causing the issue, and not the unofficial minimap.

Edited by Kittychanley
0

Share this post


Link to post
Share on other sites

Can do, I'll reply when I can test. If the problem repeats ill include a visual VM snapshot, unless you guys prefer a different profiler

0

Share this post


Link to post
Share on other sites

Just a screenshot of the F3 screen is more than enough to start initial debugging.

0

Share this post


Link to post
Share on other sites

Kitty, you were right. MultiMC apparently is using its only jvm args silently, and overriding the windows environmental if you don't specify them in app. I added the args on the instance for TFC, and haven't had any issues since.

Edited by MDub
0

Share this post


Link to post
Share on other sites