question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ndb loads dev-tools window. But window stays empty and doesn't respond.

See original GitHub issue

Tell us about your environment:

  • ndb version: v1.0.42
  • Platform / OS version: OSX 10.14.1
  • Node.js version: 8.11.1
  • using nodenv

Hey all 👋 After working with ndb successfully for a couple of months, it suddenly stopped working for me. running NDB loads the dev-tools screen, but then the window stays “empty”: sources pane shows no files. Console tab shows flashing caret, but typing anything and pressing enter does nothing. The node program that is supposed to run in the BG does not run.

I’ve also tried with a simple “hello world” js file, results are the same.

After a few minutes, the process will emit the following :

<--- Last few GCs --->

[14076:0x103000000]   318621 ms: Mark-sweep 1506.9 (1604.5) -> 1506.9 (1565.0) MB, 2302.6 / 0.4 ms  last resort GC in old space requested
[14076:0x103000000]   320195 ms: Mark-sweep 1506.9 (1565.0) -> 1506.9 (1565.0) MB, 1574.6 / 0.3 ms  last resort GC in old space requested


<--- JS stacktrace --->

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

Security context: 0x3f62ebba57c1 <JSObject>
    1: /* anonymous */ [/Users/zappatta/.nodenv/versions/8.11.1/lib/node_modules/ndb/node_modules/chokidar/lib/fsevents-handler.js:~151] [pc=0x21b3e6e4ceb5](this=0x3f624758c571 <FSWatcher map = 0x3f62a00ae0a1>,watchPath=0x3f62c69c4d19 <String[100]: /Users/zappatta/Code/zencity-community/node_modules/es6-iterator/#/get.js/.npmignore/CHANGES/index.js>,realPath=0x3f62c6986929 <String[100]: /Users/zap...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
 1: node::Abort() [/Users/zappatta/.nodenv/versions/8.11.1/bin/node]
 2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>, v8::Local<v8::Message>) [/Users/zappatta/.nodenv/versions/8.11.1/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/Users/zappatta/.nodenv/versions/8.11.1/bin/node]
 4: v8::internal::Factory::NewUninitializedFixedArray(int) [/Users/zappatta/.nodenv/versions/8.11.1/bin/node]
 5: 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) [/Users/zappatta/.nodenv/versions/8.11.1/bin/node]
 6: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/Users/zappatta/.nodenv/versions/8.11.1/bin/node]
 7: 0x21b3e6d042fd

another weird but potentially useful information: During those few minutes, I’m seeing a process named ndb/file_system hogging CPU on my machine.

using nodenv to switch to node 10.12.0, ndb seems to work fine.

If there is any more useful information I can provide, please let me know.

cheers 🍻

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:5

github_iconTop GitHub Comments

4reactions
ak239commented, Jun 20, 2019

ndb@1.0.47 uses new version of chokidar. This version is much better optimized to work with huge file trees. Feel free to file another issue or leave a comment here if you still can reproduce this problem.

0reactions
rafakwolfcommented, Feb 26, 2019

Same here

node v8.15.0 Linux Mint v18.3 ndb v1.0.43

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome dev tools fails to show response even the content ...
Now when I look at the response, it shows 'Failed to load response data'. ... Unfortunately, in my case, the window.onunload = function()...
Read more >
Microsoft Edge Developer Tools window stays blank
Solved by going to https://www.microsoft.com/edge . Downloaded edge setup and reinstalled it. Then the DevTools started to work again.
Read more >
Source tab sometimes does not refresh when browser window ...
1. Load a page in the browser. 2. Open Developer Tools. 3. Select the Sources tab; open the HTML file; open the JavaScript...
Read more >
Inspect opens an empty window · Issue #14 - GitHub
Test your connection: Try to open https://chrome-devtools-frontend.appspot.com; If it doesn't work, thats why you're getting an empty window.
Read more >
Bug listing with status RESOLVED with resolution FIXED as at ...
Cant load libsandbox.so ... no such file" status:RESOLVED resolution:FIXED severity:normal · Bug:1600 - "python and portage" status:RESOLVED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found