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.

Extension host terminated unexpectedly: JavaScript heap out of memory

See original GitHub issue

Environment data

  • VS Code version: 1.35.0

  • Extension version (available under the Extensions sidebar): XXX

  • OS and version: Linux kernel version: 4.19.47; 16gb RAM

  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.3

  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): No environment

  • Relevant/affected Python packages and their versions: - tqdm==4.31.1 - itertools.permutations - numpy==1.16.4

  • Jedi or Language Server?: Language Server

Expected behaviour

Run loop through permutations of a list, and successfully fill up numpy array

Actual behaviour

Run multiple times and at different parts of the loop, the extension host fails.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Nothing

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

workbench.main.js:3311 
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 0x55669731a566  
[/usr/lib/electron/electron] 2: 0x55669731a6d5  
[/usr/lib/electron/electron] 3: 0x556694165a27  
[/usr/lib/electron/electron] 4: 0x5566941659bb  
[/usr/lib/electron/electron] 5: 0x55669420ba13  
[/usr/lib/electron/electron] 6: 0x55669420a87d  
[/usr/lib/electron/electron] 7: 0x556694207f81 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) 
[/usr/lib/electron/electron] 8: 0x556694208455  
[/usr/lib/electron/electron] 9: 0x556694213ac0  
[/usr/lib/electron/electron]10: 0x556693df372d v8::internal::Factory::NewRawOneByteString(int, v8::internal::PretenureFlag) 
[/usr/lib/electron/electron]11: 0x556693ec22f8  
[/usr/lib/electron/electron]12: 0x556693ec0e31  
[/usr/lib/electron/electron]13: 0x556693ec39d3  
[/usr/lib/electron/electron]14: 0x556693ec0ef4  
[/usr/lib/electron/electron]15: 0x556693ec42a0  
[/usr/lib/electron/electron]16: 0x556693ec0e8e  
[/usr/lib/electron/electron]17: 0x556693ec39d3  
[/usr/lib/electron/electron]18: 0x556693ec0ef4  
[/usr/lib/electron/electron]19: 0x556693ec39d3  
[/usr/lib/electron/electron]20: 0x556693ec0ef4  
[/usr/lib/electron/electron]21: 0x556693ec42a0  
[/usr/lib/electron/electron]22: 0x556693ec0e8e 
 [/usr/lib/electron/electron]23: 0x556693ec39d3  
[/usr/lib/electron/electron]24: 0x556693ec0ef4  
[/usr/lib/electron/electron]25: 0x556693ec09ed  
[/usr/lib/electron/electron]26: 0x556693b7c317  
[/usr/lib/electron/electron]27: 0x5566943cfe0e  
[/usr/lib/electron/electron]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
amichudacommented, Jun 13, 2019

This is in the python interactive window

On Thu, Jun 13, 2019, 10:22 AM Kartik Raj notifications@github.com wrote:

Can you please inform if you using Python interactive window. Or do you have a python file where this loop runs?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-python/issues/6001?email_source=notifications&email_token=ABQVPBGXG5QSCLQ74QRZGMDP2J66FA5CNFSM4HXT436KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXUNUSQ#issuecomment-501799498, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQVPBCAY35B3R6RP5NAIB3P2J66FANCNFSM4HXT436A .

0reactions
amichudacommented, Jul 10, 2019

Thank you so much! No apologies needed, you guys are working hard and vacations are NEEDED. Thank you for all the hard work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extension host terminated unexpectedly (memory allocation ...
I believe nodejs processes are normally limited to 4GB of memory, and the extension host crashes when it reaches that, even when using...
Read more >
Error : Extension host terminated unexpectedly in VS Code
The solution for the problem : Open your vscode and launch the command palette by ctrl + shift + p enter image description...
Read more >
Remote extension Host terminated unexpectedly when running ...
This line results in remote extension host crash when compile-command.json is large. (Currently I am using remote-ssh). After I commented out 514 line...
Read more >
Developers - Extension host keeps crashing - - Bountysource
... working and I get a "Extension host terminated" FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of...
Read more >
DupChecker - Visual Studio Marketplace
❗️Note: for huge files with millions of lines, you may get an error like Extension host terminated unexpectedly which is caused by JavaScript...
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