weex在debug时报内存错误

之前都是正常的,就是更新了一下开发环境,就凉了!!
<--- Last few GCs --->

[3233:0x104801000] 247812 ms: Mark-sweep 1379.4 (1478.6) -> 1379.4 (1479.1) MB, 1742.6 / 0.0 ms allocation failure GC in old space requested
[3233:0x104801000] 249340 ms: Mark-sweep 1379.4 (1479.1) -> 1379.4 (1435.1) MB, 1527.1 / 0.0 ms last resort GC in old space requested
[3233:0x104801000] 250971 ms: Mark-sweep 1379.4 (1435.1) -> 1379.4 (1434.1) MB, 1630.4 / 0.0 ms last resort GC in old space requested

<--- JS stacktrace --->

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

Security context: 0x92391da5739 <JSObject>

1: /* anonymous */ [/Users/txmac/.xtoolkit/node_modules/weex-devtool/node_modules/weex-builder/node_modules/webpack-core/node_modules/source-map/lib/source-map/source-node.js:~341] [pc=0x19a500d05cdb](this=0x92332b8c3a9 <JSGlobal Object>,chunk=0x9236011cfb9 <String[18]\: \x09    availHeight: >,original=0x92333832479 <Object map = 0x92372ebbbf1>)
2: SourceNode_walk [/Users/txmac/.xtoolkit/...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/usr/local/bin/node]
2: node::OnFatalError(char const, char const) [/usr/local/bin/node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [/usr/local/bin/node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
5: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node]
6: v8::internal::(anonymous namespace)::ElementsAccessorBase<v8::internal::(anonymous namespace)::FastPackedObjectElementsAccessor, v8::internal::(anonymous namespace)::ElementsKindTraits<(v8::internal::ElementsKind)2> >::GrowCapacity(v8::internal::Handle<v8::internal::JSObject>, unsigned int) [/usr/local/bin/node]
7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object*, v8::internal::Isolate) [/usr/local/bin/node]
8: 0x19a5002842fd
Abort trap: 6

阅读 2.3k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进