I have a large project (500+ Blueprints) and a pretty bad case of coupling (we were in circular dependency hell prior to 4.7). Given this situation I attempted to run to project on my MacBook (doing some vacation programming But during initial map load (
FEditorFileUtils::LoadDefaultMapAtStartup()
) when all package loads start rolling in application crashes what seems to be due to stack limit of 16M begin exceeded:
Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000140bb5838 VM Regions Near 0x140bb5838: VM_ALLOCATE 000000013faf4000-0000000140af0000 [ 16.0M] rw-/rw- SM=SHM --> mapped file 0000000140af0000-0000000140bbc000 [ 816K] r--/rwx SM=COW /System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
(I’m not hiding any uassets in my KeyboardLayout, promise! :] )
I tried to remedy this by upping max stack size with setrlimit
in FMacPlatformMisc::PlatformPreInit
as a workaround but that had no effect.
Here is entire OS X crash detail report (GitHub Gist)
way I see it:
- I should fix our projects code/BP design so it’s not such a monster.
- It would be dandy if package loading in UE wouldn’t recursively load dependent packages (if that’s whats happening), piling on to stack. I don’t know how (if at all) feasible this is.
Thought you might want to know, let me know if I left anything out.
Cheers,
.