Skip to content

ionic serve --lab crashes frequently #8415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
milne-dev opened this issue Oct 3, 2016 · 2 comments
Closed

ionic serve --lab crashes frequently #8415

milne-dev opened this issue Oct 3, 2016 · 2 comments

Comments

@milne-dev
Copy link

Short description of the problem:

Every few minutes 'ionic serve --lab' will crash with this error:

<--- Last few GCs --->
  531479 ms: Mark-sweep 1270.0 (1434.9) -> 1270.0 (1434.9) MB, 1394.6 / 0.0 ms [allocation failure] [GC in old space requested].
  532927 ms: Mark-sweep 1270.0 (1434.9) -> 1270.0 (1434.9) MB, 1447.8 / 0.0 ms [allocation failure] [GC in old space requested].
  534428 ms: Mark-sweep 1270.0 (1434.9) -> 1279.2 (1404.9) MB, 1499.1 / 0.0 ms [last resort gc].
  535875 ms: Mark-sweep 1279.2 (1404.9) -> 1288.4 (1404.9) MB, 1446.7 / 0.0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x35386adcfb51 <JS Object>
    1: map [native array.js:~994] [pc=0x2ec9fa976e12] (this=0x9c9414818f9 <JS Array[95192]>,bq=0x3a323562009 <JS Function (SharedFunctionInfo 0x38cacaa04f71)>,br=0x35386ad04381 <undefined>)
    2: arguments adaptor frame: 1->2
    3: encode(aka encode) [/path/to/node_modules/rollup/dist/rollup.js:375] [pc=0x2ec9f97446ae] (this=0x35386ad04381 <undefined>,decode...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [node]
 2: 0xd6a4ac [node]
 3: v8::Utils::ReportApiFailure(char const*, char const*) [node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]
 5: v8::internal::Factory::NewRawOneByteString(int, v8::internal::PretenureFlag) [node]
 6: v8::internal::Factory::NewStringFromOneByte(v8::internal::Vector<unsigned char const>, v8::internal::PretenureFlag) [node]
7: v8::internal::Factory::NumberToString(v8::internal::Handle<v8::internal::Object>, bool) [node]
 8: v8::internal::Object::ToString(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>) [node]
 9: v8::internal::Object::ConvertToName(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>) [node]
10: v8::internal::Runtime_HasProperty(int, v8::internal::Object**, v8::internal::Isolate*) [node]
11: 0x2ec9f97092a7

Steps to reproduce:

  1. run 'ionic serve --lab'
  2. make code changes
  3. sometimes it will crash, every 5 minutes or so

Cordova CLI: 6.3.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: Arch Description: Arch Linux
Node Version: v6.7.0

@NoNameProvided
Copy link
Contributor

Happening from me as well, without the --lab flag. Its related to a memory leak what Node complain about every time when ionic serve re-compile the source files.

@jgw96
Copy link
Contributor

jgw96 commented Oct 3, 2016

Hello all! Thanks for opening an issue with us! I am going to be closing this issue as a duplicate of ionic-team/ionic-app-scripts#62. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed Oct 3, 2016
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants