Build engine source on Mac

Trying to build engine from source on Mac.

Seems to build ok, but then when it opens it crashes every time with the following report: Process: UE4Editor-Mac-Debug [2254]Path: /UE4/* - Pastebin.com

Hi Taisaku,

This is a known issue that we are working on.

To work around this, in Engine/Source/Runtime/Core/Private/Mac/CocoaThread.cpp

please change this:

[GameThread setStackSize:810241024];

to this:

[GameThread setStackSize:1610241024];

Let me know if this does not resolve your issue.

Thanks

Thanks for the reply. Unfortunatly after the edit and recompile it still crashes. - Process: UE4Editor-Mac-Debug [4899]Path: /UE4/* - Pastebin.com

Try one more (similar) thing:

In Engine/Source/Runtime/Core/Public/Mac/MacPlatformRunnableThread.h change this:

	return 2 * 1024 * 1024;

to:

	return 4 * 1024 * 1024;

in GetDefaultStackSize() function.

Still crashes - Process: UE4Editor-Mac-Debug [6971]Path: /UE4/* - Pastebin.com

I’m afraid I don’t know how to explain this :frowning: We had identical problem and increasing the stack size (until we fix this properly) worked around this for us. Maybe you could try increasing both stacks some more?

I increased both lines to 3210241024 and now it compiles and runs without crashing, Thanks! (now to work out why the Apsalar plugin isnt working…)