Space Engineers

Space Engineers

Nanite Control Factory - Automated Construction (Not working - Old Version)
Rick_Sanchez 27 Apr, 2016 @ 6:40am
Memory Leak?
Seems to have a memory leak. My ram usage spikes and closes the program. I have 64 bit windows 10, the new skylake i7 at 4.0Ghz, 32 gigs of DDR4 @ 3200, and a GTX 980ti STRIX, so my computer can't be the issue. I tried dropping the resolution to 1080 from 4K, and it still did the same error. It sat around 8 gigs of usage before spiking past about 12 gigs when I went to access a control panel on a nanite factory. Any thoughts? I had set up an easy world on mars (offline), built up some other bases, increased the deconstruct range in the config to 1200, and had 6 nanite factories going with 25 streams each. There were AI crashed ships, and I had a handful (maybe 5?) deconstruct beacons placed. On another occasion, same setup, one AI ship impacted the base, started to show an explosion, then spiked and closed again. I have been using another mod for reactors, my power usage was under 2 percent when all nanite factories were going, and haven't had any issue with any other mods.
Last edited by Rick_Sanchez; 27 Apr, 2016 @ 7:10am
< >
Showing 1-15 of 15 comments
Rick_Sanchez 27 Apr, 2016 @ 7:09am 
It seems I can duplicate the error and ram spike, making it close the app, by placing more deconstruct beacons than I have nanite factories. I tried placing 8 on one ship and the ram usage spiked up from 10.4 gigs this time to over 14 gigs before it gave me the error and booted me out of the game.
tyrsis  [developer] 27 Apr, 2016 @ 8:28am 
Very strange, I will look into it, thanks for the info.
Rick_Sanchez 27 Apr, 2016 @ 9:49pm 
Originally posted by tyrsis:
Very strange, I will look into it, thanks for the info.

It seems I can make it crash fairly quickly, I set one deconstruct beacon, but set the max streams to 50 before opening the game with only one nanite factory. Crashed within one minute after memory usage spiked above 40 percent.
tyrsis  [developer] 27 Apr, 2016 @ 11:38pm 
Is this in MP or SP?
Rick_Sanchez 28 Apr, 2016 @ 1:43am 
Single player, offline
tyrsis  [developer] 28 Apr, 2016 @ 7:14am 
I tried setting max streams to 50 and deconstructing 5 large ships, and the memory usage is the exact same. Can you do me a favour? Set it up where you can crash it. Publish your world, and also paste your settings.xml file. I'd like to recreate your situation EXACTLY. If I can see it happen and repeat it locally, I can fix it really fast.
Rick_Sanchez 29 Apr, 2016 @ 5:40pm 
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=675412497

I placed two more 40mm turrets, went to the program block, and it crashed. Reloaded it, memory went up 15 percent just on loading, they stopped deconstructing, so I placed a beacon on the miner ship, then placed two more turrets,went to the program block, transferred ownership of turrets to me, and then it crashed upon entering the inventory of one nanite factory. I do have it set to 50 streams and 3.75 efficiency though in my settings for this. I also disabled as many mods as I could. Shields are turned off. Youll see the 40mm on the roof, and the program console below to the right of it.
tyrsis  [developer] 29 Apr, 2016 @ 9:41pm 
Ok I repeated this exactly, I could not get it to leak at all (world was at 5GB the whole time). I did manage to get it to crash and it was due to the mod (very rare issue, but fixable). I fixed that crash. I'm still unsure what is causing your leak though, as I can't replicate it. I've done a bunch of updates tonight trying to track down a bunch of MP issues, and found a few issues, so maybe I fixed it. Please try again after reading this and see if it still occurs.
Rick_Sanchez 29 Apr, 2016 @ 10:45pm 
Yes. I loaded, placed a beacon on the miner, added two turrets, went to the program block, and upon trying to enter the screen it threw me out of game. Logs show this:

2016-04-29 21:38:24.760 - Thread: 1 -> mod_warning: Nanite Control Factory - Automated Construction
2016-04-29 21:38:24.760 - Thread: 1 -> in file: C:/Users/Eric/AppData/Roaming/SpaceEngineers/Mods/655922051.sbm/Data/BlockCategories.sbc
2016-04-29 21:38:24.760 - Thread: 1 -> None file extensions.

2016-04-29 21:39:48.673 - Thread: 1 -> Hiding window
2016-04-29 21:39:48.676 - Thread: 1 -> Network readers disposed
2016-04-29 21:39:48.882 - Thread: 1 -> Hiding window done
2016-04-29 21:39:48.882 - Thread: 1 -> Showing message
2016-04-29 21:39:48.888 - Thread: 1 -> ERROR: branch name cannot be resolved, services=
2016-04-29 21:39:48.888 - Thread: 1 -> ERROR: branch name cannot be resolved, services=
2016-04-29 21:39:48.888 - Thread: 1 -> ERROR: branch name cannot be resolved, services=
Rick_Sanchez 29 Apr, 2016 @ 10:49pm 
You had it set to 50 streams and 3.75 effeciency? This is very odd. Loads up over 5 gigs when I open it, then spikes to over 7 gigs and closes. As stated, I have the new skylake i7-6700k, stock clocl 4.0Ghz, 32 gigs of DDR4 @ 3200, and an Asus GTX 980Ti STRIX edition. Asus Matrix ROG motherboard. PNY 1TB SSD the game and steam are loaded onto which also contains my OS. No issues with any other mods, and I have 180 almost and I load them all at the same time, but even this save only has a dozen or so loaded.
tyrsis  [developer] 30 Apr, 2016 @ 5:33am 
Yes I did exactly that. I can't fix something I can't replicate. I'm not sure, but I believe this must be a game issue then. Paste your settings file in here. It's in %appdata%\SpaceEngineers\Storage\655922051.sbm_NaniteConstructionSystem.

Like I said, it does take 5 gigs, but that's just how it is with planets right now. I don't understand what you mean by "closes". Are you saying that it just closes without exceptioning? If so this may be a game issue. Can you paste your whole SpaceEngineers.log file to pastebin.com or paste.ee so I can look at it when it crashes?
Last edited by tyrsis; 30 Apr, 2016 @ 5:55am
Rick_Sanchez 30 Apr, 2016 @ 8:22am 
<?xml version="1.0" encoding="utf-16"?>
<NaniteSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConstructionMaxStreams>12</ConstructionMaxStreams>
<ConstructionEfficiency>0.5</ConstructionEfficiency>
<ConstructionPowerPerStream>26</ConstructionPowerPerStream>
<ConstructionMinTravelTime>16</ConstructionMinTravelTime>
<ConstructionDistanceDivisor>5</ConstructionDistanceDivisor>
<ProjectionMaxStreams>6</ProjectionMaxStreams>
<ProjectionPowerPerStream>26</ProjectionPowerPerStream>
<ProjectionMinTravelTime>16</ProjectionMinTravelTime>
<ProjectionDistanceDivisor>5</ProjectionDistanceDivisor>
<CleanupMaxStreams>50</CleanupMaxStreams>
<CleanupCarryVolume>10</CleanupCarryVolume>
<CleanupMaxDistance>500</CleanupMaxDistance>
<CleanupPowerPerStream>26</CleanupPowerPerStream>
<CleanupMinTravelTime>14</CleanupMinTravelTime>
<CleanupDistanceDivisor>15</CleanupDistanceDivisor>
<DeconstructionMaxStreams>50</DeconstructionMaxStreams>
<DeconstructionMaxDistance>800</DeconstructionMaxDistance>
<DeconstructionEfficiency>3.75</DeconstructionEfficiency>
<DeconstructionPowerPerStream>26</DeconstructionPowerPerStream>
<DeconstructionMinTravelTime>16</DeconstructionMinTravelTime>
<DeconstructionDistanceDivisor>5</DeconstructionDistanceDivisor>
<DeconstructionPerformanceFriendly>true</DeconstructionPerformanceFriendly>
<FactoryComponentMultiplier>2</FactoryComponentMultiplier>
</NaniteSettings>

It closes, and says there was an error and asks if I want to submit it, when I reload the game it says I ran out of RAM.

http://pastebin.com/57tqpMEq
Last edited by Rick_Sanchez; 30 Apr, 2016 @ 8:33am
tyrsis  [developer] 30 Apr, 2016 @ 11:35am 
This log was valuable, I can see the issue and will fix ASAP. Memory is not the issue.
tyrsis  [developer] 30 Apr, 2016 @ 11:59am 
Please try again. This should no longer cause a crash.
Rick_Sanchez 30 Apr, 2016 @ 5:13pm 
We are good! No more crashing. Thank you very much!
< >
Showing 1-15 of 15 comments
Per page: 1530 50