Throwing together a quick pack to introduce a newbie

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

ShneekeyTheLost

Too Much Free Time
Dec 8, 2012
3,728
3,004
333
Lost as always
We have a memory leak! And I'm not sure what to do about it.

A memory leak is a cancer on this modpack. I'm not sure how to proceed here. Pulling mods and testing simply isn't practical. It takes hours before it crashes you, and that's hours of actual play time that I'm playing on a server. I can't just do it that way.

This appears to have only started recently. I thought the culprit was ExU2 because I had updated that one recently, but downgrading it didn't work.

Any ideas for some common causes to focus on?
Did anyone recently set up an RS network hooked up to Storage Drawers or otherwise hook up large numbers of inventories via storage busses or the like? That can sometimes be a culprit. If RFTools Control is around, putting infinite loops in logic can cause this, which can also sometimes occur in things like Integrated Dynamics if you aren't careful.
 
  • Like
Reactions: Drbretto

Drbretto

Popular Member
Mar 5, 2016
1,886
781
139
Did anyone recently set up an RS network hooked up to Storage Drawers or otherwise hook up large numbers of inventories via storage busses or the like? That can sometimes be a culprit. If RFTools Control is around, putting infinite loops in logic can cause this, which can also sometimes occur in things like Integrated Dynamics if you aren't careful.

I built a little auto-sorter with TD pipes that connect to AA crates and Storage Drawers compacting drawers. That is right around when it started, too, but it's not even close to my biggest thing of its kind. In fact, it's my most compact one to date. That would really suck if I have to destroy it!

Edit: Hmm, maybe there's some kind of infinite loop, though, I think is what you're getting at. Maybe I just need to fix it a little bit.
 

KingTriaxx

Forum Addict
Jul 27, 2013
4,266
1,333
184
Michigan
Use the wrench to make sure there are no loops in the piping, and use retrievers rather than filters for moving things around, so you don't have a servo constantly trying to draw things if nothing wants to allow them there. I'm starting to notice when I have a lot of storage drawers going, it's producing lots of lag no matter what version I'm playing in. I'm thinking I've got to transition my 1.7.10 base to AE instead. Which is sad, because I love my big Storage Drawers Warehouse, but... playability trumps coolness.
 
  • Like
Reactions: Drbretto

Drbretto

Popular Member
Mar 5, 2016
1,886
781
139
I'm wondering now if the culprit might be the servo that's on the ender chest that acts as the input for the system.

There are "loops" in the piping in that everything is connected to each other, but there is never an instance where an item is looping around anywhere. Everything has its place it goes to and it completes its work. When everything is sorted, it's dormant and motionless.

The way I had it set up, is a servo on the ender chest that pushes everything out to the furthest place it can go, so it sends ores and whatnot to the SAG mills rather than straight to their mod chests. Everything else is retrievers. Though, in several places, a servo will push an item towards a retriever that's also trying to pull that item, so maybe that's the loop?

I'm mostly thinking it's the ender chest, though, because it causes some kind of weird error on a reply whenever I open that chest. That, to me, suggests an issue of some kind at least.

I'll try that tonight, and if it works, I will be very, very happy!
 

KingTriaxx

Forum Addict
Jul 27, 2013
4,266
1,333
184
Michigan
I don't necessarily mean it's looping around, but more the pathing issues caused by determining the correct route.
 

ShneekeyTheLost

Too Much Free Time
Dec 8, 2012
3,728
3,004
333
Lost as always
Thermal Dynamics uses a tree-traversing algorithm to determine optimal route before sending it. If there are loops, especially if the loops are in such a way that going either way around the loop is equidistant from origin to destination, it can cause issues in calculation before sending the item through.

A small system probably won't be sufficient to cause this, not unless you have a ton of filters and servos all competing with one another, but the interaction between a Storage Drawers controller and stuff like AE2 or RS is well known to be... problematic at times.
 

Drbretto

Popular Member
Mar 5, 2016
1,886
781
139
Now I'm thinking that's not it. It's nothing but servos and retrievers and I was too lazy to build a drawer controller. I put retrievers on each compacting drawer.

Here it is, starting at around 1:15

 

Padfoote

Brick Thrower
Forum Moderator
Dec 11, 2013
5,140
5,898
563
Not sure how much of an impact till have on performance but those ducts seem to have multiple connections to each other. You could try limiting it to one or two at most and see if that helps. It’ll definitely reduce the number of calculations being done in the future when things start expanding.
 

Drbretto

Popular Member
Mar 5, 2016
1,886
781
139
You mean like go through with a wrench and pull out any excess paths? I can try that. I'm not as hopeful this is it, though. It's awfully small, and as far as I can tell, it doesn't have a lot of ambiguity or conflicts in its logic. Of course, that was also my first ever attempt at it, so what do I know? I'm hoping it's the ender chest or something to do with having servos that push into retrievers. I might be able to cut the original servo (the one on the ender chest) out of the deal entirely. Just in case the problem is two different devices trying push/pull the same items.

I will still go in and do what you asked the other day, too. Running it with less ram allocated. That might even just make it somewhat bearable to test. But I haven't been able to log on since the weekend, so I haven't been able to actually try anything. I just wanted to go into that diagnostic session armed with some knowledge.
 

Padfoote

Brick Thrower
Forum Moderator
Dec 11, 2013
5,140
5,898
563
You mean like go through with a wrench and pull out any excess paths? I can try that. I'm not as hopeful this is it, though. It's awfully small, and as far as I can tell, it doesn't have a lot of ambiguity or conflicts in its logic. Of course, that was also my first ever attempt at it, so what do I know? I'm hoping it's the ender chest or something to do with having servos that push into retrievers. I might be able to cut the original servo (the one on the ender chest) out of the deal entirely. Just in case the problem is two different devices trying push/pull the same items.

I will still go in and do what you asked the other day, too. Running it with less ram allocated. That might even just make it somewhat bearable to test. But I haven't been able to log on since the weekend, so I haven't been able to actually try anything. I just wanted to go into that diagnostic session armed with some knowledge.

It’s very likely the loops I mentioned will do absolutely nothing, it’s just a shot in the dark. I also want to blame the Ender chest, but that’s my history with them breaking all the time haunting me.
 

Drbretto

Popular Member
Mar 5, 2016
1,886
781
139
Well, thanks for the ideas, everyone. Not much I can do now until I can get home and test some of these things, or at least gather more data. This gives me some stuff to try first before I have to start taking a hatchet to the mod list at least.

I have a list of mods I want to add in, but I have to fix this first.