Skip to content

[Bundle] "Allocation failed - process out of memory" in OSX making bundle #5196

@Takeno

Description

@Takeno

I get an error archiving iOS app, while react-native-xcode.sh is running.

I have found the command which throw the error:

$ react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output /Users/matteo/Library/Developer/Xcode/DerivedData/XXX-giksyrhhnbtkzvexaglpgclnuxxc/Build/Intermediates/ArchiveIntermediates/XXX/BuildProductsPath/Release-iphoneos/XXX.app/main.jsbundle --assets-dest /Users/matteo/Library/Developer/Xcode/DerivedData/XXX-giksyrhhnbtkzvexaglpgclnuxxc/Build/Intermediates/ArchiveIntermediates/XXX/BuildProductsPath/Release-iphoneos/XXX.app --verbose

Output:

  ReactNativePackager:SocketClient connecting to +0ms /var/folders/vf/51_gzv_93q5dv1zcs0m_8vkr0000gn/T/react-packager-5aca564e0b1dba4dc62417c52f2469f6
bundle: Created ReactPackager
  ReactNativePackager:SocketClient got message with type +859ms result
bundle: start
[14:01:19] <START> Whole Program Optimisations

<--- Last few GCs --->

   15879 ms: Scavenge 1398.4 (1455.5) -> 1398.4 (1455.5) MB, 0.8 / 0 ms (+ 2.0 ms in 1 steps since last GC) [allocation failure] [incremental marking delaying mark-sweep].
   16864 ms: Mark-sweep 1398.4 (1455.5) -> 1396.3 (1455.5) MB, 984.7 / 0 ms (+ 3.5 ms in 2 steps since start of marking, biggest step 2.0 ms) [last resort gc].
   17817 ms: Mark-sweep 1396.3 (1455.5) -> 1398.2 (1455.5) MB, 953.2 / 0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x1ab707fe3ac1 <JS Object>
    1: get [/Users/matteo/mobile-workspace/XXX/node_modules/babel-traverse/lib/path/index.js:~75] [pc=0x26d5471a2791] (this=0x618f966b51 <JS Function NodePath (SharedFunctionInfo 0x36f8c2bcf7d1)>,_ref2=0x3de3985e7ca9 <an Object with map 0x2b945634e609>)
    2: node [/Users/matteo/mobile-workspace/XXX/node_modules/babel-traverse/lib/index.js:~119] [pc=0x26d54711edf4] (this=0x618f967bf1 <JS F...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
Abort trap: 6

My versions:

$ react-native -v
react-native-cli: 0.1.8
react-native: 0.17.0

$ node -v
v5.4.0

With DEV=true there are no problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions