clehner / git-ssb

social coding on secure-scuttlebutt [migrated to git-ssb]
https://git.scuttlebot.io/%25n92DiQh7ietE%2BR%2BX%2FI403LQoyf2DtR3WQfCkDKlheQU%3D.sha256
257 stars 15 forks source link

JavaScript out of memory error when trying to access patchbay repo #7

Open mmckegg opened 6 years ago

mmckegg commented 6 years ago

@clehner This happens reliably whenever I try to access the patchbay repo: http://localhost:7718/%25s9mSFATE4RGyJx9wgH22lBrvD4CgUQW4yeguSWWjtqc%3D.sha256

I believe @mixmix also had this problem. Is that still true?

<--- Last few GCs --->

   30123 ms: Mark-sweep 1221.2 (1267.3) -> 1221.2 (1267.3) MB, 361.3 / 0.0 ms [allocation failure] [GC in old space requested].
   30496 ms: Mark-sweep 1221.2 (1267.3) -> 1221.2 (1267.3) MB, 372.9 / 0.0 ms [allocation failure] [GC in old space requested].
   30877 ms: Mark-sweep 1221.2 (1267.3) -> 1221.1 (1234.3) MB, 381.2 / 0.0 ms [last resort gc].
   31241 ms: Mark-sweep 1221.1 (1234.3) -> 1220.8 (1234.3) MB, 363.9 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

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

Security context: 0x3293e68cf781 <JS Object>
    1: /* anonymous */ [/usr/local/lib/node_modules/git-ssb/node_modules/ssb-git/linearize.js:~21] [pc=0xe9e96c53152] (this=0x384ae21afa39 <JS Global Object>,list=0x512f888a761 <JS Array[24142618]>)
    2: arguments adaptor frame: 3->1
    3: InnerArrayForEach(aka InnerArrayForEach) [native array.js:942] [pc=0xe9e96afd7b0] (this=0x3293e6804381 <undefined>,bq=0x1b755368a571 <JS Function (SharedF...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/usr/local/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/usr/local/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 4: v8::internal::Factory::NewUninitializedFixedArray(int) [/usr/local/bin/node]
 5: v8::internal::Factory::NewJSArrayStorage(v8::internal::Handle<v8::internal::JSArray>, int, int, v8::internal::ArrayStorageAllocationMode) [/usr/local/bin/node]
 6: v8::internal::Factory::NewJSArray(v8::internal::ElementsKind, int, int, v8::internal::ArrayStorageAllocationMode, v8::internal::PretenureFlag) [/usr/local/bin/node]
 7: v8::internal::ElementsAccessor::Concat(v8::internal::Isolate*, v8::internal::Arguments*, unsigned int) [/usr/local/bin/node]
 8: v8::internal::(anonymous namespace)::Fast_ArrayConcat(v8::internal::Isolate*, v8::internal::Arguments*) [/usr/local/bin/node]
 9: v8::internal::Builtin_Impl_ArrayConcat(v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)0>, v8::internal::Isolate*) [/usr/local/bin/node]
10: v8::internal::Builtin_ArrayConcat(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
11: 0xe9e965092a7
12: 0xe9e96c53152
13: 0xe9e96509895
mmckegg commented 6 years ago

Oh I see that there is already an issue for this on git-ssb: http://localhost:7718/%25QZvDtlE23M6g1pcr06Wjfwn%2FbPPZCfxe5S400LSrS9Q%3D.sha256