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

    • Crysyn

      Only help if you can be helpful

      Hey All, A topic has come up of late in the IRC channel in regards to the general feel of the forums and the community that supports them. Things have progressed further than I would have liked with out this being addressed more publicly because I would much rather have snubbed this out sooner rather than later.. but I have been busy. Here is the general rule I would like people to follow: Wheaton's Law "Don't be a dick." Those of you from the IRC channel know that this is the only rule I ask people in there to follow and we generally have a good and lively time chatting about all manner of things. This is basic rule that just about everyone understands and I am going to expand it to the forums from here moving forward. If you can not help people in a helpful and polite manner then I simply ask you to stop. Now I generally take a back seat to moderating the forums as I like to participate in the suggestions forum fairly heavily at times and would rather do so as a forums user than a moderator. But I am also fairly well known for being the person who constantly puts their foot down and so I am stepping up and doing so on here. If you find yourself unable to respond to a message politely then I ask that you do not respond. This mostly focuses on the increasing level of hostility found within the Suggestion forum as well as the Server forum. I do not care if this is the 30th some odd time you have seen someone make the same suggestion. Or even if the new post on an older topic is one entry above the old one. I expect the members of this forum to respond politely to the user, new or old, and point to the older topic if it applies and even go the extra step to suggest they either add in new information or to summarize the outcome of the previous discussion based upon the new post's entry into it. That is what we are here for, that is why I close most topics instead of deleting them, so that they can be found and referenced down the road. The next topic is the slew of derailment attempts I have seen as of late. If you want to have fun and joke around that is what the off topic forum is for and pretty much anything goes there. I do not expect to read a suggestion thread and have to go through 3 pages of image memes people have shot back and forth. Quite simply this is a waste of my time to read and then have to clean up. Now for the summary. I am going to start taking a more active role, especially in policing the suggestion forum, and handing out warn levels to people whom I see doing this. These will be indiscriminate and applied not to just the first person who derails or is impolite on a topic or response, but to everyone whom follows the lead of that person. As I do not like doing things with out giving you all warning this post shall serve as that warning. If you have a desire to bring this topic up with me then I invite you to do so on the IRC channel. Lets raise the level of quality and grow the community. Let us not descend into the quality often found on the minecraft or league of legend forums. There is simply no need for that here. Be passionate about things, just do not be abusive.
    • Kittychanley

      Offline Servers

      Recently I've seen a few server listings showing up on the first page of the Servers forum that have been closed for an extended period of time, but have recently gotten a reply from a new member who didn't realize the server is offline. To help prevent this from happening in the future, it would be greatly appreciated if you could use the report function on the original post of any servers that have been confirmed as offline, so that the topic may be locked. If you are the admin of a server and plan on taking the server offline, please use the report function on the original post of your topic to let the TFC Staff know that the topic should be locked. If you are the admin of a server that has a locked topic, and would wish to bring the server back online, please use the report function on the original post of the topic to let the TFC Staff know that the topic should be unlocked. As always, please remember to follow rule #3 of the servers forum and update your topic title to contain the version of TFC that the server is currently running. You can do so by editing the OP, and then clicking on "Use Full Editor."
Absle

[Solved] Crash/EXTREME lag due to running out of memory while loading new areas

9 posts in this topic

Have you read, understood, and followed all of the rules listed in large text at the top of the support forum? (Yes/No): Yes Answering "no" to the above question will result in your post being deleted. TFC Version #: 0.79.20 Forge Version #: 10.13.4.1448  SSP/SMP (SinglePlayer/MultiPlayer): SSP Description: Sorry in advance if this is too much info, I'm just trying to get down any patterns that I noticed in case they are useful. When entering a new area (perhaps new chunk?) the games memory begins to spike to extremely high levels until it begins to approach 100% and starts becoming unresponsive in certain ways (not updating the map item or not dropping sticks/rocks when I break them on the ground) and eventually begins to lag so much that it's unplayable. I'm unsure if Minecraft actually considers it a crash since it is the "Java SE Binary" that becomes unresponsive from the point of view of windows and allows me to force it off. Furthermore, if I retreat from the new area quickly enough the memory returns to a manageable level and I can play normally and Minecraft doesn't seem to make a crash report in the way described in this forum's tutorials (all I get is the games output log with no link to a crash report or a crash report folder in the .minecraft directory). Increasing the games allocated memory to 2gb or 3gb doesn't seem to do anything other than make it take longer to get to 100% and crash. The first area that this began to happen in caused the game to crash 4 or 5 times and I gave up for a few ours and put my computer in hibernate while I was out, and when I came back and started playing again I could load the new area just fine and explore just fine (not sure how far in that would have continued). Going to a NEW new area began to cause the same issue and eventual crash. I was playing around the with map item (which appeared to be making a map of the whole chunk I was currently in) it didn't start until I left the borders of an explored map into a new one, so I believe it is in fact chunk-based. The new map just gave me a white paper and began to lag out again eventually. Have you deleted your config files or are using default configs and are still able to reproduce this bug? (Yes/No): Yes Do you have any mods other than Forge and TFC installed? (Yes/No): Yes, FastCraft This is the log that the game has had in its output every time that this has occurred. Sorry that it's not an actual crash report, Minecraft doesn't seem to be making a crash report in the way described on this forum. Let me know if there's an alternate way I might get the crash report and I'll post it if possible. Towards the end of this particular report I changed to a cheat-enabled LAN setting in-game to change the weather and test if the rain was somehow causing the crash. It wasn't.

 

http://pastebin.com/1vLkEPTW

0

Share this post


Link to post
Share on other sites

You should update Java. Currently you're using Java 8u25 while 8u45 is available here: https://java.com/en/download/manual.jsp It's very important to keep Java updated. Not just to solve bugs, but to patch the many security issues Java has. Also be sure to keep Java disabled in your browser at all costs. How do I disable Java in my web browser?

 

Who knows, it may even help solve your issue :)

1

Share this post


Link to post
Share on other sites

First you need to give more than 1gb RAM. 1gb is bare minimum, try 2, no more than 4gb. Next read Kitty's Post on JVM arguements. Lastly are you running fastcraft? If not you need to run it.

0

Share this post


Link to post
Share on other sites

You should update Java. Currently you're using Java 8u25 while 8u45 is available here: https://java.com/en/download/manual.jsp It's very important to keep Java updated. Not just to solve bugs, but to patch the many security issues Java has. Also be sure to keep Java disabled in your browser at all costs. How do I disable Java in my web browser?

 

Who knows, it may even help solve your issue :)

 

Woops, didn't even realize I was out of date. Not that I care, but why should I keep java from running in my browser?

 

 

First you need to give more than 1gb RAM. 1gb is bare minimum, try 2, no more than 4gb. Next read Kitty's Post on JVM arguements. Lastly are you running fastcraft? If not you need to run it.

 

That particular log I was only using 1gb, but it was still occuring on up to 3gb. And yeah, fastcraft is installed.

0

Share this post


Link to post
Share on other sites

All right, so by setting Minecraft's threads to use all 8 it didn't quite crash upon entering a new chunk, but it started doing weird things with the inventory UI and dropped items. Sticks that I broke on the ground only popped up after a good minute and the maps in my inventory started to update and stack and move in really strange ways. Even afterwards my location on the map wasn't updating properly. The actual movement of the character however never lagged or jumped in anyway.

0

Share this post


Link to post
Share on other sites

Could you please post the world seed and location that you are experiencing this lag? It is much more likely that it is specific to just that area in that world, and that you wouldn't have this issue when playing a different seed. Also, I see that you said you changed the settings for how many threads to use, but did you do all of the other settings for garbage collection and whatnot? All of those arguments in my post should be used to get the best possible performance.

0

Share this post


Link to post
Share on other sites

Could you please post the world seed and location that you are experiencing this lag? It is much more likely that it is specific to just that area in that world, and that you wouldn't have this issue when playing a different seed. Also, I see that you said you changed the settings for how many threads to use, but did you do all of the other settings for garbage collection and whatnot? All of those arguments in my post should be used to get the best possible performance.

 

Just finished adding all the arguments, didn't realized that they were ALL important to add. The seed is 3515603363446706600, my current main shack is located at x=551 y=146 z=-8395. The crash and lag initially happened when heading into new areas west of there and north of there. I don't know the exact places since it hasn't been happening for awhile, probably because the new areas causing it are now completely loaded properly and I haven't been able to go beyond them yet. I did go east a bit and didn't experience ANYTHING like it, but I'm not sure if I went far enough.

0

Share this post


Link to post
Share on other sites

It honestly sounds to me that your system just couldn't keep up with the garbage collection while generating those new areas. For some players it just lags out like you experienced, for others it will crash with a stack overflow, everyone's system is different. However, adding in all of the JVM arguments will help with that greatly, and it's very likely you won't experience it again.

 

Java is pretty crap when it comes to garbage collection. Just allocating more memory isn't going to help in a lot of situations, because all that means is its going to hold on to that much more junk before it finally does one big dump, which often causes a lag spike that can hang around for quite a while until it gets everything cleared, if it manages to clear everything at all. For single player, set it to 1GB minimum and then 2GB max, and only increase it to 3GB or 4GB if you are explicitly getting OutOfMemory crashes and have already added all the other arguments to help out with performance. Allocating too much memory with Minecraft can cause just as many issues as not allocating enough

 

Edit: I loaded up a world with that seed, teleported my player to that location and then started flying west. I can confirm that the chunks were a bit slower than expected to load, but they all did within a minute and it was smooth sailing from there.

Edited by Kittychanley
0

Share this post


Link to post
Share on other sites

It honestly sounds to me that your system just couldn't keep up with the garbage collection while generating those new areas. For some players it just lags out like you experienced, for others it will crash with a stack overflow, everyone's system is different. However, adding in all of the JVM arguments will help with that greatly, and it's very likely you won't experience it again.

 

Java is pretty crap when it comes to garbage collection. Just allocating more memory isn't going to help in a lot of situations, because all that means is its going to hold on to that much more junk before it finally does one big dump, which often causes a lag spike that can hang around for quite a while until it gets everything cleared, if it manages to clear everything at all. For single player, set it to 1GB minimum and then 2GB max, and only increase it to 3GB or 4GB if you are explicitly getting OutOfMemory crashes and have already added all the other arguments to help out with performance. Allocating too much memory with Minecraft can cause just as many issues as not allocating enough

 

Edit: I loaded up a world with that seed, teleported my player to that location and then started flying west. I can confirm that the chunks were a bit slower than expected to load, but they all did within a minute and it was smooth sailing from there.

 

The arguments have helped a helluva lot, thanks! And yeah, that's exactly what I've been experiencing lately, I can even watch Java taking those big dumps from 90% down to 60% in one jump, neat. I was probably just overreacting to just not having my Java set up to handle this very well, 'cause I don't notice any more gameplay issues while loading new chunks (though I can watch the memory usage spike to around 80-90%). One caveat (and it's not a huge one, probably unavoidable) when I walked to the corner of an old chunk and simultaneously came in range of two new ones that tried to load at once it lagged enough that I wasn't able to interact with my inventory and items weren't dropping on the ground. I thought it was going to crash again when it hit 99%, but it dumped back to 70%. Thanks again for the help everyone!

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now