Download

EU4 crash - Memory leak/alignment error in UnixPlatformMemory.cpp ?

I get exceptions thrown from Engine/Source/Runtime/Core/Private/Unix/UnixPlatformMemory.cpp just trying to allocate 10 megabytes, when I have gigabytes free for alloc(), the editor does not even run demo projects for me. Occurs versions 4.23 and the git master (4.25.0?) built on Ubuntu 18.04 and 19.10.


Malloc Size=65538 LargeMemoryPoolOffset=65554
Fatal error: [File:/home/barf/UnrealEngine/Engine/Source/Runtime/Core/Private/Unix/UnixPlatformMemory.cpp] [Line: 1027]
Ran out of memory allocating 10162176 bytes with alignment 4096
Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=131122
CommonUnixCrashHandler: Signal=11
Malloc Size=65535 LargeMemoryPoolOffset=196687
Malloc Size=797472 LargeMemoryPoolOffset=994176
Malloc Size=699880 LargeMemoryPoolOffset=1694072
Malloc Size=98 LargeMemoryPoolOffset=1694194
Malloc Size=62 LargeMemoryPoolOffset=1694286
Malloc Size=26 LargeMemoryPoolOffset=1694330
Malloc Size=150 LargeMemoryPoolOffset=1694502
Malloc Size=10 LargeMemoryPoolOffset=1694538
Malloc Size=44 LargeMemoryPoolOffset=1694604
Malloc Size=6 LargeMemoryPoolOffset=1694630
Malloc Size=6 LargeMemoryPoolOffset=1694662
Malloc Size=6 LargeMemoryPoolOffset=1694694
...
Malloc Size=6 LargeMemoryPoolOffset=2097110
Malloc Size=6 LargeMemoryPoolOffset=2097142
MallocCrash run out of memory allocating 6 bytes, free 0 bytes
Please increase LARGE_MEMORYPOOL_SIZE, exiting...

It’s easy to reproduce this, all I am doing is building following the instructions then opening a demo project (any project), the crash occurs after some time while editing.

Should I increase the LARGE_MEMORYPOOL_SIZE in Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMallocCrash.h or am I doing something wrong? (Although I’m just trying to run a demo project in the editor…)

Hello, I am encountering the same problem on Ubuntu 18.04, have you found a solution?