Skip to content

Memory error #6

@creeperyang

Description

@creeperyang

When images are large than normal icon, it will have no enough memory:

<--- Last few GCs --->

   93221 ms: Mark-sweep 1376.9 (1434.5) -> 1376.9 (1434.5) MB, 1398.0 / 0.0 ms [allocation failure] [GC in old space requested].
   94574 ms: Mark-sweep 1376.9 (1434.5) -> 1376.9 (1405.5) MB, 1352.5 / 0.0 ms [last resort gc].
   95946 ms: Mark-sweep 1376.9 (1405.5) -> 1376.9 (1405.5) MB, 1371.7 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x1f10224cfb51 <JS Object>
    1: getPixel [/Users/creeper/.nvm/versions/node/v6.9.0/lib/node_modules/.ysprite_npminstall/node_modules/.0.0.9@lwip/lib/ImagePrototypeInit.js:~78] [pc=0x1f65238634e5] (this=0x3a34d0decd89 <an Image with map 0x35bc58057d99>)
    2: arguments adaptor frame: 2->0
    3: appendImage [/Users/creeper/.nvm/versions/node/v6.9.0/lib/node_modules/.ysprite_npminstall/node_modules/.3.0.0@ysprite/lib/im...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
 4: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
 5: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/creeper/.nvm/versions/node/v6.9.0/bin/node]
 6: 0x1f65235092a7
[1]    13460 abort      ysprite -s "*.png" -o tt.png --no-retina --no-style

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions