Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2678] Code Processor: Getting out of memory error

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNot Our Bug
Resolution Date2013-04-17T22:24:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterDebasis Shee
AssigneeShak Hossain
Created2013-04-15T16:52:17.000+0000
Updated2016-03-08T07:41:47.000+0000

Description

I am getting this error "FATAL ERROR: JS Allocation failed - process out of memory" after running the following command of Titanium Code Processor. C:\Users\sheed>titanium-code-processor analyze -o android -p ti-api-processor -p ti-api-deprecation-finder -p require-provider -d C:\Users\sheed\Documents\Titan ium_Studio_Workspace\TRGYPMobileApp Titanium Code Processor v0.3.2 Copyright (c) 2012-2013, Appcelerator, Inc. All Rights Reserved. info: Analyzing project at "C:\Users\sheed\Documents\Titanium_Studio_Workspace\T RGYPMobileApp" FATAL ERROR: JS Allocation failed - process out of memory

Comments

  1. Bryan Hughes 2013-04-17

    node.js has a memory limit and the code processor does bump into it from time to time. The workaround is to increase the stack-size for node.js. This can be done manually by doing: node --stack-size=10000 /path/to/titanium-code-processor/bin/codeprocessor To make life easier, you can always write a bash/python/node.js script that calls the code processor with the extended stack size and symlink /usr/local/bin/titanium-code-processor (or whatever) to this script Unfortunately there is nothing that can be done to change this on the code processor side to increase the stack because node.js doesn't include any APIs to increase the stack size programatically (probably because the V8 instance has already been created).
  2. Shak Hossain 2014-01-17

    Closing since no response from the reporter.

JSON Source