Skip to content
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

1.0.0-beta.20 fails when using within serverless framework #1229

Closed
gulbinas opened this issue Dec 11, 2017 · 2 comments
Closed

1.0.0-beta.20 fails when using within serverless framework #1229

gulbinas opened this issue Dec 11, 2017 · 2 comments
Assignees

Comments

@gulbinas
Copy link

Got error:


<--- Last few GCs --->

  199773 ms: Mark-sweep 1366.2 (1434.4) -> 1366.2 (1434.4) MB, 2327.4 / 1.3 ms [allocation failure] [GC in old space requested].
  202019 ms: Mark-sweep 1366.2 (1434.4) -> 1366.2 (1434.4) MB, 2245.4 / 1.3 ms [allocation failure] [GC in old space requested].
  204676 ms: Mark-sweep 1366.2 (1434.4) -> 1366.1 (1408.4) MB, 2656.4 / 1.3 ms [last resort gc].
  207031 ms: Mark-sweep 1366.1 (1408.4) -> 1366.1 (1408.4) MB, 2355.0 / 1.3 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0x233085bcfb51 <JS Object>
    1: hasOwnProperty(this=0x2f627808c619 <an Object with map 0x36c8eca57ea1>,0x18b1d97102d1 <String[198]: /Users/justinas/PyProjects/cv-bc-registry/node_modules/web3/packages/web3-net/node_modules/web3-core-method/node_modules/web3-core-helpers/node_modules/web3-utils/node_modules/minimatch/package.json>)
    2: _stat [/usr/local/lib/node_modules/serverless/node_modules/glob/glob.js:~710] [pc=...

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::Utils::ReportApiFailure(char const*, char const*) [/usr/local/bin/node]
 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 5: v8::internal::Factory::NewInternalizedStringImpl(v8::internal::Handle<v8::internal::String>, int, unsigned int) [/usr/local/bin/node]
 6: v8::internal::InternalizedStringKey::AsHandle(v8::internal::Isolate*) [/usr/local/bin/node]
 7: v8::internal::StringTable::LookupKey(v8::internal::Isolate*, v8::internal::HashTableKey*) [/usr/local/bin/node]
 8: v8::internal::StringTable::LookupString(v8::internal::Isolate*, v8::internal::Handle<v8::internal::String>) [/usr/local/bin/node]
 9: v8::internal::LookupIterator::LookupIterator(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Name>, v8::internal::Handle<v8::internal::JSReceiver>, v8::internal::LookupIterator::Configuration) [/usr/local/bin/node]
10: v8::internal::Runtime_ObjectHasOwnProperty(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
11: 0x13a6070092a7
12: 0x13a607034f1e
13: 0x13a60780cbed
14: 0x13a607165d84
Abort trap: 6

package.json:

{
  "name": "AAAAA",
  "version": "0.0.0",
  "license": "MIT",
  "private": true,
  "dependencies": {
    "aws-sdk": "^2.6.12",
    "serverless": "^1.24.1",
    "truffle-contract": "^3.0.1",
    "truffle-core": "^4.0.1",
    "web3": "1.0.0-beta.20"
  },
  "devDependencies": {
    "testrpc": "0.0.1",
    "ganache-cli": "^6.0.3",
    "serverless-plugin-browserify": "^1.1.3"
  }
}

previous versions worked fine

@nivida nivida self-assigned this Aug 9, 2018
@nivida
Copy link
Contributor

nivida commented Nov 29, 2018

@gulbinas could you please add a code example? :-)

@nivida
Copy link
Contributor

nivida commented Apr 2, 2019

This issue got closed due to inactivity of the creator. Feel free to create a new issue if this error still occurs with the latest version of Web3.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants