The Pylance server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

当Pylance server挂了之后,vscode中python代码无法跳转,同一文件内也不行。

解决方法

  1. 打开vscode的终端

  2. 执行以下命令

set NODE_OPTIONS=--max_old_space_size=8172
  1. 然后执行运行,完美解决问题!

vscode版本:

版本: 1.70.0 (user setup)

提交: da76f93349a72022ca4670c1b84860304616aaa2

日期: 2022-08-04T04:38:16.462Z

Electron: 18.3.5

Chromium: 100.0.4896.160

Node.js: 16.13.2

V8: 10.0.139.17-electron.0

OS: Windows_NT x64 10.0.19042

参考资料:https://blog.csdn.net/lyh1299259684/article/details/114936824

错误日志

<--- Last few GCs --->

[24648:0000205C002E4000] 4061 ms: Scavenge 40.0 (51.2) -> 37.3 (53.2) MB, 1.5 / 0.0 ms (average mu = 0.998, current mu = 0.998) task;

[24648:0000205C002E4000] 4473 ms: Scavenge 41.5 (53.2) -> 38.0 (55.2) MB, 1.6 / 0.0 ms (average mu = 0.998, current mu = 0.998) task;

[24648:0000205C002E4000] 5250 ms: Scavenge 43.6 (55.2) -> 39.2 (55.9) MB, 1.1 / 0.0 ms (average mu = 0.998, current mu = 0.998) task;

<--- JS stacktrace --->

<--- JS stacktrace --->

FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory

FATAL ERROR: MarkCompactCollector: young object promotion failed Allocation failed - JavaScript heap out of memory

1: 00007FF673C886D6 node::Buffer::New+50438

1: 00007FF673C886D6 node::Buffer::New+50438

1: 00007FF673C886D6 node::Buffer::New+50438

2: 00007FF673C888DF node::OnFatalError+463

2: 00007FF673C888DF node::OnFatalError+463

2: 00007FF673C888DF node::OnFatalError+463

3: 00007FF6767807EA v8::ScriptOrigin::HostDefinedOptions+858

3: 00007FF6767807EA v8::ScriptOrigin::HostDefinedOptions+858

3: 00007FF6767807EA v8::ScriptOrigin::HostDefinedOptions+858

4: 00007FF67678073C v8::ScriptOrigin::HostDefinedOptions+684

4: 00007FF67678073C v8::ScriptOrigin::HostDefinedOptions+684

4: 00007FF67678073C v8::ScriptOrigin::HostDefinedOptions+684

5: 00007FF676827A43 v8::CppHeap::CollectGarbageInYoungGenerationForTesting+53827

5: 00007FF676827A43 v8::CppHeap::CollectGarbageInYoungGenerationForTesting+53827

5: 00007FF676827A43 v8::CppHeap::CollectGarbageInYoungGenerationForTesting+53827

6: 00007FF67523B151 v8::CppHeap::GetHeapHandle+188273

6: 00007FF67523B151 v8::CppHeap::GetHeapHandle+188273

6: 00007FF67523B151 v8::CppHeap::GetHeapHandle+188273

7: 00007FF673186B18 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+173064

7: 00007FF673186B18 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+173064

7: 00007FF673186B18 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+173064

8: 00007FF673186686 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+171894

8: 00007FF673186686 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+171894

9: 00007FF67318D489 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+200057

9: 00007FF67318D489 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+200057

10: 00007FF673F4D778 GetHandleVerifier+2670104

10: 00007FF673F4D778 GetHandleVerifier+2670104

11: 00007FF6741C5AE4 node_api_get_module_file_name+6276

11: 00007FF6741C5AE4 node_api_get_module_file_name+6276

8: 00007FF673186686 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+171894

12: 00007FF673C9E438 uv_thread_create_ex+488

13: 00007FF675BB2CD0 Cr_z_crc32+4161984

9: 00007FF67318D489 cppgc::DefaultPlatform::MonotonicallyIncreasingTime+200057

14: 00007FFF428C7034 BaseThreadInitThunk+20

10: 00007FF673F4D778 GetHandleVerifier+2670104

15: 00007FFF440A2651 RtlUserThreadStart+33

11: 00007FF6741C5AE4 node_api_get_module_file_name+6276

12: 00007FF673C9E438 uv_thread_create_ex+488

[Error - 10:46:27] The Pylance server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

vs code python(Pylance server) crash的更多相关文章

  1. VS Code Python 全新发布!Jupyter Notebook 原生支持终于来了!

    VS Code Python 全新发布!Jupyter Notebook 原生支持终于来了! 北京时间 2019 年 10 月 9 日,微软发布了全新的 VS Code Python 插件,带来了众多 ...

  2. Python 处理server返回gzip内容

    Python 如何处理server返回gzip压缩过的内容,代码如下: from StringIO import StringIOimport gzip request = urllib2.Reque ...

  3. 小测几种python web server的性能

    http://blog.csdn.net/raptor/article/details/8038476 因为换了nginx就不再使用mod_wsgi来跑web.py应用了,现在用的是gevent-ws ...

  4. Python Web Server Gateway Interface -- WSGI

    了解了HTTP协议和HTML文档,我们其实就明白了一个Web应用的本质就是: 浏览器发送一个HTTP请求: 服务器收到请求,生成一个HTML文档: 服务器把HTML文档作为HTTP响应的Body发送给 ...

  5. SQLyog恢复数据库报错解决方法【Error Code: 2006 - MySQL server has gone away】

    https://blog.csdn.net/niqinwen/article/details/8693044 导入数据库的时候 SQLyog 报错了 Error Code: 2006 – MySQL ...

  6. a simple and universal interface between web servers and web applications or frameworks: the Python Web Server Gateway Interface (WSGI).

    WSGI is the Web Server Gateway Interface. It is a specification that describes how a web server comm ...

  7. 在线程内关闭thread handle,导致server crash

    很多年以前了,那时tester发现一个server crash,通过测试pager功能很多次,可以把server搞崩溃. 一般来说,能再现的bug都不难改,不过这次因为要跑很多次test,才能再现cr ...

  8. 解决 android studio 出现:"AndroidStudio:Could not GET 'https://dl.google.com Received status code 400 from server: Bad Request"问题

    一.android studio 编译项目时出现"AndroidStudio:Could not GET 'https://dl.google.com Received status cod ...

  9. 官宣!VS Code Python 全新功能在 PyCon China 全球首发!

    北京时间 2019 年 9 月 21 日,PyCon China 2019 在上海举行. 在下午的演讲中,来自微软开发工具事业部的资深研发工程师 在演讲中,我们看到了 Azure Notebook 与 ...

  10. Integrating .NET Code and SQL Server Reporting Services

    SQL Server Reporting Services versions 2000 and 2005 (SSRS) has many powerful features. SSRS has a w ...

随机推荐

  1. Excel 查找替换 -- 快速填充

    单元格匹配,这样就不会把 70 的 0 替换成 7零 了 Ctrl + E 快速填充 一列变多行 快速填充 1. 快速拆分数据 一列数据中包含了姓名和手机号码,这时你需要进行数据拆分,快速填充可以实现 ...

  2. Profile Config 多环境不同配置

    应用场景如:我们可以在开发.测试环境中,启用 Swagger,在生产环境中不启用 package com.vipsoft.web.boot.config; import springfox.docum ...

  3. python jira 取提出指向未解决的问题

    #!/usr/bin/python # -*- coding: utf-8 -*- import sys, os,time,requests,datetime import schedule from ...

  4. java jar 注册成 windows 服务

    1.去github上下载winsw https://github.com/winsw/winsw/releases 2.WinSW.NET4.xml <service> <id> ...

  5. OS | 进程和线程基础知识全家桶图文详解✨

    前言 先来看看一则小故事 我们写好的一行行代码,为了让其工作起来,我们还得把它送进城(进程)里,那既然进了城里,那肯定不能胡作非为了. 城里人有城里人的规矩,城中有个专门管辖你们的城管(操作系统),人 ...

  6. 智慧风电:数字孪生 3D 风机智能设备运维

    前言 6 月 1 日,福建省人民政府发布关于<福建省"十四五"能源发展专项规划>的通知.规划要求,加大风电建设规模.自 "30·60" 双碳目标颁布 ...

  7. iOS安全加固探讨:代码混淆、类名方法名混淆等方法

    摘要:本文探讨了iOS平台下的安全保护,以及几种常见的加固方法,包括字符串加密.类名方法名混淆.程序代码混淆和加入安全SDK等.通过这些方法,我们可以有效地提高iOS应用的安全性. 引言: 随着智能手 ...

  8. 【收藏】Stable Diffusion 制作光影文字效果

    大家对于最近 Stable Diffusion 不断出新的视觉"整活"印象都很深刻,很多人对最近比较流行的制作光影文字很感兴趣,制作光影文字可以作为进阶 Stable Diffus ...

  9. 【Serverless实战】传统单节点网站的Serverles

    什么是函数?刚刚考完数学没多久的我,脑里立马想到的是自变量.因变量.函数值,也就是y=f(x).当然,在计算机里,函数function往往指的是一段被定义好的代码程序,我们可以通过传参调用这个定义好的 ...

  10. SV OOP-1

    内容 面向对象编程 面向对象的基本概念 对象没有办法直接操作,需要通过handle(指向对象的指针)进行操作 面向对象的基本术语 面向对象的优势 类的定义 实例化对象 new() - 产生具体对象,开 ...