Skip to content

Extension host terminated unexpectedly: JavaScript heap out of memory #3330

@amichuda

Description

@amichuda

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]

Metadata

Metadata

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions