microsoft / pylance-release

Documentation and issues for Pylance
Creative Commons Attribution 4.0 International
1.72k stars 766 forks source link

Heap memory limit error #142

Closed mohammad7t closed 4 years ago

mohammad7t commented 4 years ago

Hi Pylance team,

Thank you so much for providing this great extension. It significantly improves my python development performance. How can I increase the heap memory limit for the extension so that I can prevent the error logged below?

Environment data

Logs

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x10cd3e7d5 node::Abort() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 2: 0x10cd3e844 node::Abort() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 3: 0x108b39097 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 4: 0x108b39037 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 5: 0x108cc84a5 v8::internal::Heap::StartIdleIncrementalMarking(v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 6: 0x108cc9b3d v8::internal::Heap::StartIdleIncrementalMarking(v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 7: 0x108cc6239 v8::internal::Heap::CreateFillerObjectAt(unsigned long, int, v8::internal::ClearRecordedSlots, v8::internal::ClearFreedMemoryMode) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 8: 0x108cc3a8a v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 9: 0x108ccf83a v8::internal::Heap::PromotedExternalMemorySize() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
10: 0x108ccf8c1 v8::internal::Heap::PromotedExternalMemorySize() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
11: 0x108ca293d v8::internal::Factory::NewContext(v8::internal::Handle<v8::internal::Map>, int, int, v8::internal::AllocationType) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
12: 0x108ca3beb v8::internal::Factory::NewBlockContext(v8::internal::Handle<v8::internal::Context>, v8::internal::Handle<v8::internal::ScopeInfo>) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
13: 0x10903c213 v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, v8::internal::StoreOrigin, v8::Maybe<v8::internal::ShouldThrow>) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
14: 0x1095aab59 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]<--- Last few GCs --->[96760:0x1074d9000]   127420 ms: Scavenge 4090.4 (4100.8) -> 4089.9 (4101.3) MB, 3.7 / 0.0 ms  (average mu = 0.234, current mu = 0.169) allocation failure 
[96760:0x1074d9000]   130555 ms: Mark-sweep 4090.8 (4101.3) -> 4088.4 (4100.5) MB, 3129.4 / 0.0 ms  (+ 0.0 ms in 11 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 3135 ms) (average mu = 0.144, current mu = 0.043) alloca<--- JS stacktrace --->==== JS stack trace =========================================    0: ExitFrame [pc: 0x1095aab59]
    1: StubFrame [pc: 0x109627f49]
Security context: 0x16a73ac19581 <JSObject>
    2: _consumeTokensUntilType [0x16a7bc7f1f01] [/Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/pyright.bundle.js:1] [bytecode=0x16a8460f8629 offset=2](this=0x16a7ef0d10f9 <g map = 0x16a79e2e1191>,0x16a7ef0d4831 <JSArray[1]>)
    3: _parseSimpleStatement [0x16a7bc7f1251] [/Users/mohammad...
mohammad7t commented 4 years ago

Here is a tail of Trace-level log for a similar error when I ctrl-clicked on a library method for looking for its references:

[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prompt_toolkit/__init__.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prompt_toolkit/__init__.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/pygments/styles/__init__.py (7ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/pygments/styles/__init__.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/pygments/style.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/pygments/style.py (4ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/pygments/token.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/pygments/token.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/debugger.py (12ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/debugger.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/magics.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/magics.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/prompts.py (6ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/prompts.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/ptutils.py (11ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/ptutils.py (5ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/shortcuts.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/terminal/shortcuts.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/black.py (110ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/black.py (30ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/capture.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/capture.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbconvert/utils/io.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbconvert/utils/io.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/lib/pretty.py (19ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/lib/pretty.py (10ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/dir2.py (0ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/dir2.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/wildcard.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/wildcard.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/splitinput.py (5ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/splitinput.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/backcall/__init__.py (0ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/backcall/__init__.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/sentinel.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/sentinel.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/lib/__init__.py (3ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/lib/__init__.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/_process_cli.py (7ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/_process_cli.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/_process_posix.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/_process_posix.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/_process_common.py (6ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/_process_common.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/lib/clipboard.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/lib/clipboard.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/latex_symbols.py (28ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/latex_symbols.py (10ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/generics.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/utils/generics.py (3ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/jedi/__init__.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/jedi/__init__.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/jedi/api/helpers.py (30ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/jedi/api/helpers.py (8ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/jedi/api/classes.py (53ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/jedi/api/classes.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/auto.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/auto.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/basic.py (12ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/basic.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/code.py (21ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/code.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/config.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/config.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/display.py (11ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/display.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/execution.py (67ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/execution.py (9ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/extension.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/extension.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/history.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/history.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/logging.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/logging.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/namespace.py (19ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/namespace.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/osm.py (21ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/osm.py (7ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/packaging.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/packaging.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/pylab.py (6ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/pylab.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/script.py (7ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/core/magics/script.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/_version.py (0ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/_version.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v1/__init__.py (5ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v1/__init__.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v2/__init__.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v2/__init__.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v3/__init__.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v3/__init__.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/sentinel.py (0ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/sentinel.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/validator.py (9ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/validator.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/converter.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/converter.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/reader.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/reader.py (4ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/notebooknode.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/notebooknode.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/testing/iptest.py (20ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/IPython/testing/iptest.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/ipython_genutils/tempdir.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/ipython_genutils/tempdir.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/notebook/config_manager.py (5ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/notebook/config_manager.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/notebook/extensions.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/notebook/extensions.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/colorama/initialise.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/colorama/initialise.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/colorama/ansi.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/colorama/ansi.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/colorama/ansitowin32.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/colorama/ansitowin32.py (5ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/exposition.py (17ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/exposition.py (5ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/gc_collector.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/gc_collector.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/metrics.py (14ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/metrics.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/metrics_core.py (7ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/metrics_core.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/platform_collector.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/platform_collector.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/process_collector.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/process_collector.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/registry.py (6ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/prometheus_client/registry.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v4/nbbase.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v4/nbbase.py (5ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v4/nbjson.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v4/nbjson.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v4/convert.py (6ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbformat/v4/convert.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/exceptions.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/exceptions.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_osx.py (4ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_osx.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_win.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_win.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_gio.py (3ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_gio.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_other.py (7ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/send2trash/plat_other.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbconvert/exporters/templateexporter.py (10ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbconvert/exporters/templateexporter.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbconvert/exporters/base.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/nbconvert/exporters/base.py (4ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/terminado/websocket.py (3ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/terminado/websocket.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/terminado/management.py (10ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/terminado/management.py (3130ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/notebook/base/zmqhandlers.py (22ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/notebook/base/zmqhandlers.py (2ms)
[FG] parsing: /Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/typeshed-fallback/stdlib/2and3/distutils/cygwinccompiler.pyi (1ms)
[FG] binding: /Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/typeshed-fallback/stdlib/2and3/distutils/cygwinccompiler.pyi (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/distutils/lib2def.py (11ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/distutils/lib2def.py (4ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/crackfortran.py (195ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/crackfortran.py ...
[FG]   parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/auxfuncs.py (28ms)
[FG]   binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/auxfuncs.py (7ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/crackfortran.py (71ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/rules.py (62ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/rules.py (7ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/cb_rules.py (21ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/cb_rules.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/cfuncs.py (47ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/cfuncs.py (7ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/f90mod_rules.py (11ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/f90mod_rules.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/__version__.py (4ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/__version__.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/capi_maps.py (32ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/numpy/f2py/capi_maps.py (9ms)
[FG] parsing: /Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/typeshed-fallback/stdlib/2and3/distutils/debug.pyi (1ms)
[FG] binding: /Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/typeshed-fallback/stdlib/2and3/distutils/debug.pyi (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/windows_support.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/windows_support.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/config.py (20ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/config.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/installer.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/installer.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/py33compat.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/py33compat.py (1ms)
[FG] parsing: /Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/typeshed-fallback/stdlib/2and3/distutils/command/install_scripts.pyi (0ms)
[FG] binding: /Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/typeshed-fallback/stdlib/2and3/distutils/command/install_scripts.pyi (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/_imp.py (3ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/_imp.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/ssl_support.py (5ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/ssl_support.py (3260ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/unicode_utils.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/unicode_utils.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/glob.py (9ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/glob.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/command/py36compat.py (3ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/command/py36compat.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/namespaces.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/setuptools/namespaces.py (5ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_spectral.py (22ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_spectral.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_mean_shift.py (16ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_mean_shift.py (7ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_affinity_propagation.py (16ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_affinity_propagation.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_agglomerative.py (62ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_agglomerative.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_kmeans.py (81ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_kmeans.py (7ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_dbscan.py (9ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_dbscan.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_optics.py (30ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_optics.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_bicluster.py (24ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_bicluster.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_birch.py (18ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/cluster/_birch.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/scipy/spatial/transform/_rotation_groups.py (7ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/scipy/spatial/transform/_rotation_groups.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/pool.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/pool.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/executor.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/executor.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/cloudpickle/cloudpickle_fast.py (15ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/cloudpickle/cloudpickle_fast.py (8ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/process.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/process.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/queues.py (3ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/queues.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/managers.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/managers.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/synchronize.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/synchronize.py (6ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/_posix_reduction.py (8ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/_posix_reduction.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/__init__.py (0ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/__init__.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/_win_reduction.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/_win_reduction.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/compat.py (1ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/compat.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/utils.py (3371ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/joblib/externals/loky/backend/utils.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/dict_learning.py (2ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/dict_learning.py (0ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_nmf.py (54ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_nmf.py (12ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_pca.py (22ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_pca.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_incremental_pca.py (11ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_incremental_pca.py (5ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_kernel_pca.py (3557ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_kernel_pca.py (2ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_sparse_pca.py (3460ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_sparse_pca.py (1ms)
[FG] parsing: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_truncated_svd.py (9ms)
[FG] binding: /Users/mohammad/miniconda3/envs/tracking/lib/python3.7/site-packages/sklearn/decomposition/_truncated_svd.py (5ms)
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x1145717d5 node::Abort() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 2: 0x114571844 node::Abort() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 3: 0x11036c097 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 4: 0x11036c037 v8::internal::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 5: 0x1104fb4a5 v8::internal::Heap::StartIdleIncrementalMarking(v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 6: 0x1104fcb3d v8::internal::Heap::StartIdleIncrementalMarking(v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 7: 0x1104f9239 v8::internal::Heap::CreateFillerObjectAt(unsigned long, int, v8::internal::ClearRecordedSlots, v8::internal::ClearFreedMemoryMode) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 8: 0x1104f6a8a v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 9: 0x11050283a v8::internal::Heap::PromotedExternalMemorySize() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
10: 0x1105028c1 v8::internal::Heap::PromotedExternalMemorySize() [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
11: 0x1104d0847 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
12: 0x11083410f v8::internal::RegExp::CompileForTesting(v8::internal::Isolate*, v8::internal::Zone*, v8::internal::RegExpCompileData*, v8::base::Flags<v8::internal::JSRegExp::Flag, int>, v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::String>, bool) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
13: 0x110dddb59 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) [/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]

<--- Last few GCs --->

[99301:0x1093f0000]   913099 ms: Scavenge 4089.7 (4100.2) -> 4089.2 (4100.5) MB, 4.5 / 0.0 ms  (average mu = 0.091, current mu = 0.002) allocation failure 
[99301:0x1093f0000]   913109 ms: Scavenge 4089.9 (4100.5) -> 4089.3 (4100.5) MB, 4.6 / 0.0 ms  (average mu = 0.091, current mu = 0.002) allocation failure 
[99301:0x1093f0000]   913123 ms: Scavenge 4090.3 (4100.7) -> 4089.7 (4101.2) MB, 4.3 / 0.0 ms  (average mu = 0.091, current mu = 0.002) allocation failure 

<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x110dddb59]
    1: StubFrame [pc: 0x110dde995]
Security context: 0x39693bf59581 <JSObject>
    2: /* anonymous */ [0x3969ddd6b969] [/Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server/pyright.bundle.js:~1] [pc=0xf57cd3e5457](this=0x396908bb1bf9 <Object map = 0x39690f96d791>,0x396a46d0e4d1 <Object map = 0x3969c3255b09>)
    3: _makeStringNode [0x396908bb5cb9] [/Users/mohammad/.vscod...

[Info  - 7:17:54 AM] Connection to server got closed. Server will restart.
[Error - 7:17:54 AM] Request textDocument/references failed.
Error: Connection got disposed.
    at Object.dispose (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:82126)
    at Object.dispose (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:285194)
    at v.handleConnectionClosed (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:285406)
    at v.handleConnectionClosed (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:33706)
    at t (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:283515)
    at invoke (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:437528)
    at s.fire (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:438289)
    at Q (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:71691)
    at invoke (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:437528)
    at s.fire (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:438289)
    at l.fireClose (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:62144)
    at ChildProcess.<anonymous> (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:223765)
    at ChildProcess.emit (events.js:215:7)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:210:5)
    at Pipe.<anonymous> (net.js:658:12)
[Error - 7:17:54 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
    at Object.dispose (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:82126)
    at Object.dispose (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:285194)
    at v.handleConnectionClosed (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:285406)
    at v.handleConnectionClosed (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:33706)
    at t (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:283515)
    at invoke (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:437528)
    at s.fire (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:438289)
    at Q (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:71691)
    at invoke (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:437528)
    at s.fire (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:438289)
    at l.fireClose (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:46:62144)
    at ChildProcess.<anonymous> (/Users/mohammad/.vscode-insiders/extensions/ms-python.python-2020.7.94776/out/client/extension.js:1:223765)
    at ChildProcess.emit (events.js:215:7)
    at maybeClose (internal/child_process.js:1021:16)
    at Socket.<anonymous> (internal/child_process.js:430:11)
    at Socket.emit (events.js:210:5)
    at Pipe.<anonymous> (net.js:658:12)
[Info  - 7:17:54 AM] Pylance language server 2020.7.2 starting
[Info  - 7:17:54 AM] Server root directory: /Users/mohammad/.vscode-insiders/extensions/ms-python.vscode-pylance-2020.7.2/server
[Info  - 7:17:54 AM] No configuration file found.
[Info  - 7:17:54 AM] Setting pythonPath for service "tracking": "/Users/mohammad/miniconda3/envs/tracking/bin/python"
[Info  - 7:17:54 AM] stubPath /Users/mohammad/workspace/tracking/typings is not a valid directory.
[Info  - 7:17:54 AM] Assuming Python version 3.7
[Info  - 7:17:54 AM] Assuming Python platform Darwin
[Info  - 7:17:54 AM] Searching for source files
[Info  - 7:17:54 AM] Found 377 source files
mohammad7t commented 4 years ago

I have tried opening vscode using code-insiders --max-memory 16000 too, but I got the same results.

mohammad7t commented 4 years ago

In order to reproduce, install a bunch of libraries and ctrl+click on a python function inside one of the libraries.

jakebailey commented 4 years ago

@mhsekhavat Have you seen this in more recent builds?

jgkatz commented 4 years ago

I've been seeing similar right when pylance starts with a workspace containing several different python package folders. It goes through several loops of the following, then dies. I've had to uninstall the extension since it fails on every start.

vscode: 1.48.2 pylance: 2020.9.0

[Info  - 2:06:56 PM] Pylance language server 2020.9.0 (pyright 60eb2cca) starting
[Info  - 2:06:56 PM] Server root directory: /home/jkatz/.vscode-server/extensions/ms-python.vscode-pylance-2020.9.0/dist
[Error - 2:06:57 PM] stubPath typings is not a valid directory.
[Error - 2:06:58 PM] stubPath typings is not a valid directory.
[Error - 2:06:58 PM] stubPath typings is not a valid directory.
[Error - 2:06:58 PM] stubPath typings is not a valid directory.

<--- Last few GCs --->

[3628:0x7f9604000ad0]    34935 ms: Mark-sweep 2025.9 (2064.9) -> 2020.6 (2065.9) MB, 1888.4 / 0.0 ms  (average mu = 0.119, current mu = 0.042) allocation failure scavenge might not succeed
[3628:0x7f9604000ad0]    36729 ms: Mark-sweep 2024.0 (2065.9) -> 2021.8 (2083.4) MB, 1738.1 / 0.0 ms  (average mu = 0.074, current mu = 0.032) allocation failure GC in old space requested

<--- JS stacktrace --->

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

    0: ExitFrame [pc: 0x1a93942]
    1: StubFrame [pc: 0x1aed1dc]
Security context: 0x0e43eec9a2f1 <JSObject>
    2: _handleNewLine [0x1a974bc16de9] [/home/jkatz/.vscode-server/extensions/ms-python.vscode-pylance-2020.9.0/dist/pyright.bundle.js:1] [bytecode=0x21a4efafe401 offset=0](this=0x35483e59daf9 <JSObject>,1,1)
    3: _handleCharacter [0x1a974bc16d79] [/home/jkatz/.vscode-server/extensions/ms-python.vscode-pylance-2020.9.0/dist/pyri...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x98edf0 node::Abort() [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 2: 0x98fe56 node::OnFatalError(char const*, char const*) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 3: 0xb1552e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 4: 0xb158a9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 5: 0xf20105  [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 6: 0xf2aa6b v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 7: 0xf2b787 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 8: 0xf2df44 v8::internal::Heap::AllocateRawWithLightRetry(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
 9: 0xf036ab v8::internal::Factory::TryNewCode(v8::internal::CodeDesc const&, v8::internal::Code::Kind, v8::internal::Handle<v8::internal::Object>, int, v8::internal::MaybeHandle<v8::internal::ByteArray>, v8::internal::MaybeHandle<v8::internal::DeoptimizationData>, v8::internal::Movability, bool, int) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
10: 0xc25d43 v8::internal::compiler::CodeGenerator::FinalizeCode() [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
11: 0xd9ffef v8::internal::compiler::PipelineImpl::FinalizeCode(bool) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
12: 0xda0ff6 v8::internal::compiler::PipelineCompilationJob::FinalizeJobImpl(v8::internal::Isolate*) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
13: 0xc16d50 v8::internal::Compiler::FinalizeOptimizedCompilationJob(v8::internal::OptimizedCompilationJob*, v8::internal::Isolate*) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
14: 0xc1090b v8::internal::OptimizingCompileDispatcher::InstallOptimizedFunctions() [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
15: 0xec78be v8::internal::StackGuard::HandleInterrupts() [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
16: 0x11cb005 v8::internal::Runtime_StackGuard(int, unsigned long*, v8::internal::Isolate*) [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
17: 0x1a93942  [/home/jkatz/.vscode-server/bin/a0479759d6e9ea56afa657e454193f72aef85bd0/node]
[Info  - 2:07:35 PM] Connection to server got closed. Server will restart.
heejaechang commented 4 years ago

should be fixed in 2020.9.4

gkaemmer commented 1 year ago

Does anyone know what exactly was fixed here? I am also trying to load a massive python project with Pylance and getting the same error. Maybe @heejaechang ? (sorry I know this issue is extremely old)

The pylance server loads files until it hits 2GB of memory and then crashes with a JavaScript heap out of memory error.

heejaechang commented 1 year ago

so, we added something that will dump caches if memory hit certain threshold. but sounds like it didn't work out as we hope in certain cases.

Can you provide us some logs as described in the troubleshooting guide?

that will give us some idea on how our cache management hook worked.

erictraut commented 1 year ago

Also, please file a new bug. This one was closed nearly three years ago. The problem you're seeing may have similar symptoms, but it's almost definitely not the same underlying issue as this one.

gkaemmer commented 1 year ago

Created a new issue: https://github.com/microsoft/pylance-release/issues/4121