x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to increase stack size for unreal engine?

I need to increase stack size for editor because DebugEditor begin crash nearly the end of loading (93-95% loading) with stack overflow error.

From log I see that it loading map in that time. If I put absolutely clear map for initial load - it loads successfully. But when it load (initially) any of work maps it will crash with overflow.

So how to increase stack size for unreal engine? Because in Visual Studio 2015 on Project Property page are absent needed pages as described here: https://docs.microsoft.com/en-us/cpp/build/reference/f-set-stack-size

Product Version: UE 4.18
Tags:
more ▼

asked Jan 23 '18 at 01:24 PM in C++ Programming

avatar image

nynjed
25 4 7 10

avatar image Alex.Duran Feb 02 '18 at 02:46 PM

I believe, for the editor, you want to look at VCToolChain.cs (where it uses the stack size) or UEBuildWindows.cs (where it sets "LinkEnvironment.DefaultStackSize"

A quick test showed me that stomping over it in VCToolChain.cs seemed to fix my debug editor (I made it conditional on "(LinkEnvironment.Configuration == CppConfiguration.Debug)".

However, I'm also running out of stack when cooking, and nothing I do to either of those files seems to change my cooker stack size(trying to track down a cooker crash), so I'd appreciate any tips anyone has there.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question