Auth-module: Nuxt new installation crashed with auth-module

Created on 31 Jan 2020  路  1Comment  路  Source: nuxt-community/auth-module

OS: MacOS Catalina
Node: 10.16.3
Nuxt: 2.11.0 (with Express server)
Auth module: 4.8.5

  • Install Nuxt with express backend, auth module
  • create /store/index.js
  • enable auth-module
modules: [
    '@nuxtjs/axios',
    '@nuxtjs/auth',
  ],

Nuxt build OK, try access to http://localhost:3000/ and after few seconds got in console fatal crash:

<--- Last few GCs --->

[81531:0x103b1d000]    75381 ms: Mark-sweep 1327.7 (1424.5) -> 1327.3 (1424.5) MB, 956.8 / 0.1 ms  (average mu = 0.153, current mu = 0.011) allocation failure scavenge might not succeed
[81531:0x103b1d000]    76664 ms: Mark-sweep 1328.1 (1425.0) -> 1327.8 (1425.5) MB, 1268.2 / 0.0 ms  (average mu = 0.077, current mu = 0.011) allocation failure scavenge might not succeed


<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0xcb518ddbe3d]
    1: StubFrame [pc: 0xcb518e1ad94]
Security context: 0x161ca479e6e9 <JSObject>
    2: /* anonymous */ [0x161c25f12ae1] [server.js:26749] [bytecode=0x161c70de6301 offset=36086](this=0x161c25f12f31 <Object map = 0x161cc0593871>,module=0x161c25f12f01 <Object map = 0x161cc05967e1>,__webpack_exports__=0x161c25f12f31 <Object map = 0x161cc0593871>,__webpack_require__=0x161c25f12b69 <JSFunction __webpack_req...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x10003b348 node::Abort() [/usr/local/Cellar/node@10/10.16.3/bin/node]
 2: 0x10003b521 node::OnFatalError(char const*, char const*) [/usr/local/Cellar/node@10/10.16.3/bin/node]
 3: 0x10017cbbf v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/Cellar/node@10/10.16.3/bin/node]
 4: 0x10017cb60 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/Cellar/node@10/10.16.3/bin/node]
 5: 0x1004328e4 v8::internal::Heap::UpdateSurvivalStatistics(int) [/usr/local/Cellar/node@10/10.16.3/bin/node]
 6: 0x100434523 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/usr/local/Cellar/node@10/10.16.3/bin/node]
 7: 0x100431bbe v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/Cellar/node@10/10.16.3/bin/node]
 8: 0x1004309dd v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/Cellar/node@10/10.16.3/bin/node]
 9: 0x1004391be v8::internal::Heap::AllocateRawWithLigthRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/Cellar/node@10/10.16.3/bin/node]
10: 0x100439208 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/Cellar/node@10/10.16.3/bin/node]
11: 0x1004197bd v8::internal::Factory::AllocateRawWithAllocationSite(v8::internal::Handle<v8::internal::Map>, v8::internal::PretenureFlag, v8::internal::Handle<v8::internal::AllocationSite>) [/usr/local/Cellar/node@10/10.16.3/bin/node]
12: 0x10041cfd8 v8::internal::Factory::NewJSObjectFromMap(v8::internal::Handle<v8::internal::Map>, v8::internal::PretenureFlag, v8::internal::Handle<v8::internal::AllocationSite>) [/usr/local/Cellar/node@10/10.16.3/bin/node]
13: 0x100600e02 v8::internal::(anonymous namespace)::ObjectBoilerplate::Create(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, int, v8::internal::PretenureFlag) [/usr/local/Cellar/node@10/10.16.3/bin/node]
14: 0x1005ff19a v8::internal::Runtime_CreateObjectLiteral(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/Cellar/node@10/10.16.3/bin/node]
15: 0xcb518ddbe3d 
16: 0xcb518e1ad94 

This question is available on Nuxt community (#c484)
question

>All comments

This issue as been imported as question since it does not respect auth-module issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/auth-module/issues/c484.

Was this page helpful?
0 / 5 - 0 ratings