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"

Cooker out of memory

I'm getting out of memory crashes when trying to cook/package our game. The command line I'm using for this is:

 ../Engine/Engine/Build/BatchFiles/RunUAT.sh BuildCookRun -nop4 -compile -project=/path/to/project/game/Game.uproject -cook -allmaps -stage -archive -archivedirectory=../Packages -package -LinuxNoEditor -clientconfig=Development -ue4exe=UE4Editor -pak -targetplatform=Linux -build -utf8output [-incremental]

I can observer the process utilizing more and more memory (the system has a total of 16 GB) and swap space until it crashes with this message:

 Cook: LogLinux:Error: appError called: Assertion failed: Assertion failed:  [File:/path/to/project/Engine/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMemory.cpp] [Line: 319]
 Cook: munmap(addr=0x7f3237664000, len=49152) failed with errno = 12 (Cannot allocate memory)
 Cook: Fatal error: [File:/path/to/project/Engine/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMemory.cpp] [Line: 319]

There seems to be a notable amount of memory freed after the compilation but the freed memory during the cooking is nearly neglectable. I suspect especially the ogg audio compression to be a major factor for the memory consumption. I already made a clean rebuild of the entire project including all Saved and Intermediate folders but it didn't change anything regarding this issue.

Thanks in advance for any hints or recommendations.

Product Version: UE 4.16
Tags:
more ▼

asked Jul 21 '17 at 01:45 PM in Linux

avatar image

j.mueller RFG
304 3 10 10

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

1 answer: sort voted first
more ▼

answered Jul 22 '17 at 03:16 AM

avatar image

RCL STAFF
2.7k 59 6 88

avatar image j.mueller RFG Jul 25 '17 at 12:19 PM

I just merged it and ran the first tests and can confirm that it is working so far. The process still consumes nearly 20 GB of ram and swap in total but does not crash anymore. Thanks a lot for your help and your quick response.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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