StackOverflowException

Hi Guys,

After a daily restart last night my MAP started getting this error and it won’t complete starting the server just stops there:

[1/26/2015 4:01:16 AM] Creating 106418 entities from save
[1/26/2015 4:01:28 AM] Spawning 106418 entities
[1/26/2015 4:01:30 AM] Spawned 13968/106418
[1/26/2015 4:01:32 AM] Spawned 26151/106418
[1/26/2015 4:01:34 AM] Spawned 39514/106418
[1/26/2015 4:01:36 AM] Spawned 52769/106418
[1/26/2015 4:01:38 AM] Spawned 63567/106418
[1/26/2015 4:01:40 AM] Spawned 75525/106418
[1/26/2015 4:01:42 AM] Spawned 87834/106418
[1/26/2015 4:01:44 AM] Spawned 97559/106418
[1/26/2015 4:01:46 AM] Loading Complete
[1/26/2015 4:01:46 AM] Stability Warmup
[1/26/2015 4:01:46 AM] 65682 blocks found
[1/26/2015 4:01:46 AM] Updating Supports Pass 1 of 8
**[1/26/2015 4:01:46 AM] StackOverflowException: The requested operation caused a stack overflow. **

Any way to solve this? This has happened to other Server admins out there, I’m not the only one…
Others reported this at around 80k entities, I guess I got lucky.

I just cant keep on wiping, ppl are getting very upset to say the least! Whats causing this?

Thanks,
-TheDoc

this has just happened to me the 2nd time in less than a week.

message from server console:

[1/26/2015 11:35:07 PM] Creating 77341 entities from save
[1/26/2015 11:35:22 PM] Spawning 77341 entities
[1/26/2015 11:35:24 PM] Spawned 32972/77341
[1/26/2015 11:35:26 PM] Spawned 45827/77341
[1/26/2015 11:35:28 PM] Spawned 57714/77341
[1/26/2015 11:35:30 PM] Spawned 68551/77341
[1/26/2015 11:35:32 PM] Loading Complete
[1/26/2015 11:35:32 PM] Stability Warmup
[1/26/2015 11:35:32 PM] 38235 blocks found
[1/26/2015 11:35:32 PM] Updating Supports Pass 1 of 8
[1/26/2015 11:35:32 PM] StackOverflowException: The requested operation caused a stack overflow.

and this is from the exception log:

BuildingBlock+Support.Update (Boolean forced) BuildingBlock.UpdateSupports (Boolean forceUpdate) BuildingBlock.DistanceFromGround ()
BuildingBlock+Support.Update (Boolean forced) BuildingBlock.UpdateSupports (Boolean forceUpdate) BuildingBlock.DistanceFromGround ()
BuildingBlock+Support.Update (Boolean forced) BuildingBlock.UpdateSupports (Boolean forceUpdate) BuildingBlock.DistanceFromGround ()
BuildingBlock+Support.Update (Boolean forced) BuildingBlock.UpdateSupports (Boolean forceUpdate) BuildingBlock.DistanceFromGround ()
UnityEngine.Debug:LogException(Exception, Object) ServerMgr:Update()

Yeah this has happened in the server I play in as well. We think its happening from forcing building parts that shouldn’t be stable to stay, or from building into the ground possibly as well. Not sure sure yet.

I have a Building control plugin running and that should prevent any of that, so I think that’s out of question. But you never know.

i also have that plugin running and building is limited to 40 so something else has to be wrong

What version number is your server reporting? Make a backup of your map and player data and perform a full wipe. See if this error happens then.

And, yes, you can damn well keep wiping, because this is alpha and wipes are a fact of life when the game is in active development and the terrain generator and placeable objects are liable to change at any time.

If your players get upset at you because of forced wipes due to new updates being incompatible with the old ones, remind them that they’re expecting permanence and stability in an Early Access game in the alpha stage. The game can’t be more than 20% finished yet.

You could just tell them all to disable automatic updates on Rust and never update your own server in order to keep it on a single version for an extended period of time, and this’ll keep you from forced upgrade-wipes, but there’s a catch to this – they won’t be able to play on any server that does update regularly, and they’re not going to be able to juggle back and forth between your older version and the latest version pushed down from Steam.

Also, if you’re using plugins, all bets are off, more or less, since you’re running an altered version of the server and garry isn’t responsible for plugins breaking things when a new Rust version gets pushed out and the plugins aren’t updated.

we’ve wiped several times and the problem keeps happening within 2 days or so. i’ve also ran the server without oxide and any plugins and this still happens.

thanks for your input but i know all of what you said so if you have any info. to help us then thanks.

It could very well be a legitimate bug, and I’m not a developer so I don’t have any specific insight into this problem. Wipes are still going to happen frequently enough.

Good to know that it’s not caused by plugins, at least, although that doesn’t solve the problem.

yes…it’s just very frustrating as things were going very well.

i also tried starting the server with server.stability false but that didnt help too. seems the save file is fubar.

elix, would you happen to know how to make rust save more than the default 8 save files? i know i can alter the interval at which it save but was not able to get any info. on the amount of save files.

I’ve never run my own server and I don’t think you can, but you could run a batch process on your server to copy the existing backups to a safe location so that you had an extended copy – say every 8 saves (or the total time interval for those autosaves or maybe every 7 or however many you want), it copies all of the autosaves into another folder after deleting whatever’s there (so you don’t run out of disk space keeping 700 backups nobody cares about). Then you have your eight save files in Rust, and the spare set in a folder if the sky falls.

I get this error allot when server gets busy and populated… freezes the server.
this has been going on for a since November.

Thanks for all the responses guys, I guess we still need Garry to fix this then, as it’s nothing we are doing wrong. At least that’s good to know.

yes, but how can we work around it?

can you guys post last error messages from your exception log? did you guys get your server back up and running using an older save file?

Nope, it just stops there man…

[1/26/2015 4:01:46 AM] Updating Supports Pass 1 of 8
[1/26/2015 4:01:46 AM] StackOverflowException: The requested operation caused a stack overflow.
THE END… :frowning:

TheDoc77 look for a file called “Log.Exception.txt” in you server folder and paste the last few lines

and this is from the exception log:

[1/13/2015 2:56:50 PM] NullReferenceException: Object reference not set to an instance of an object
BuildingBlock.UpdateSupports (Boolean forceUpdate)
BuildingBlock.DistanceFromGround ()
BuildingBlock+Support.Update (Boolean forced)
BuildingBlock.UpdateSupports (Boolean forceUpdate)
BuildingBlock.StabilityCheck ()
BuildingBlock+StabilityCheckWorkQueue.RunJob (.BuildingBlock entity)
ObjectWorkQueue`1[T].RunQueue (Int64 maximumMilliseconds)
ServerMgr.Update ()
UnityEngine.Debug:LogException(Exception, Object)
ServerMgr:Update()

anyone able to discover anything new with this problem?

Yeah it happens because people are removing building parts that effect the stability of a building, for example pillars. If you remove pillars when logically they shouldn’t be removed and you have a building entirely supported on a single pillar then yeah this is when the error will pop up.

I am also have the same problem on my server Stackoverflowexception …updateing page 1 of 8, and have wiped and reinstalled the part I see is from 0.sav file under Procedural Map. I remove that then server will start again but everything is gone! Please can someone help?? It has to be something that can be fixed.

I know this is very painful, restarting to update something and server crashes the fn MAP!

Garry HELP US man! Please!

-TheDoc

http://cache.www.gametracker.com/server_info/216.155.159.73:28016/b_560_95_1.png