vs code python(Pylance server) crash
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代码无法跳转,同一文件内也不行。
解决方法
打开vscode的终端
执行以下命令
set NODE_OPTIONS=--max_old_space_size=8172
- 然后执行运行,完美解决问题!
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的更多相关文章
- VS Code Python 全新发布!Jupyter Notebook 原生支持终于来了!
VS Code Python 全新发布!Jupyter Notebook 原生支持终于来了! 北京时间 2019 年 10 月 9 日,微软发布了全新的 VS Code Python 插件,带来了众多 ...
- Python 处理server返回gzip内容
Python 如何处理server返回gzip压缩过的内容,代码如下: from StringIO import StringIOimport gzip request = urllib2.Reque ...
- 小测几种python web server的性能
http://blog.csdn.net/raptor/article/details/8038476 因为换了nginx就不再使用mod_wsgi来跑web.py应用了,现在用的是gevent-ws ...
- Python Web Server Gateway Interface -- WSGI
了解了HTTP协议和HTML文档,我们其实就明白了一个Web应用的本质就是: 浏览器发送一个HTTP请求: 服务器收到请求,生成一个HTML文档: 服务器把HTML文档作为HTTP响应的Body发送给 ...
- SQLyog恢复数据库报错解决方法【Error Code: 2006 - MySQL server has gone away】
https://blog.csdn.net/niqinwen/article/details/8693044 导入数据库的时候 SQLyog 报错了 Error Code: 2006 – MySQL ...
- 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 ...
- 在线程内关闭thread handle,导致server crash
很多年以前了,那时tester发现一个server crash,通过测试pager功能很多次,可以把server搞崩溃. 一般来说,能再现的bug都不难改,不过这次因为要跑很多次test,才能再现cr ...
- 解决 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 ...
- 官宣!VS Code Python 全新功能在 PyCon China 全球首发!
北京时间 2019 年 9 月 21 日,PyCon China 2019 在上海举行. 在下午的演讲中,来自微软开发工具事业部的资深研发工程师 在演讲中,我们看到了 Azure Notebook 与 ...
- 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 ...
随机推荐
- 【HZERO】班翎工作流
班翎工作流 工作流流程 流程分类定义 接口管理 long类型写0 字符串写空 流程定义[画流程图] 人工节点-添加审批人规则 空-全局事件-选回调接口 我的待办 流程平台-我参与的流程 发起流程:wo ...
- CF:706B. Interesting drink (二分查找)
题意:不同奶茶店里同样的奶茶价格不同,问在当天Yuki持有的零钱能在几家店购买 思路:对价格数组排序,先优先判断是否会比较最大值和最小值,然后二分查找 #include<bits/stdc++. ...
- 写SAE评测,获 Airpods 2大奖【集结令】!
Serverless 应用引擎 SAE 开启测评有奖!名额有限,先到先得! Serverless应用引擎SAE是一款极简易用.自适应弹性的容器化应用平台.现面向所有用户发出诚挚邀请,参与一分钟部署在线 ...
- 元素可视区client系列
client翻译过来就是客户端,我们使用client系列的相关属性来获取元素可视区的相关信息. 通过client系列的相关属性可以动态的得到该元素的边框大小.元素大小等. client系列属性 作用 ...
- 机器学习-无监督机器学习-密度聚类DBSCAN-19
目录 1. DBSCAN 2. OPTICS 2. MeanShift 1. DBSCAN Density based clustering DBSCAN不要求我们指定cluster簇的数量,避免了异 ...
- 每天学五分钟 Liunx 011 | sudo
回顾前两节,在 001 中介绍了怎么添加用户及用户组,在 010 中介绍了从 client 端 ssh 到 server 的详细过程,那么接下来要介绍的就是是登陆到 server 之后如何切换用户了. ...
- Nginx 配置文件备忘单
Nginx 是用于 Web 服务.反向代理.缓存.负载平衡.媒体流等的开源软件.在这篇文章中,我将提到一些我们经常使用的 Nginx 配置. 监听端口 server { Standard HTTP P ...
- [转帖]windows10彻底关闭Windows Defender的4种方法
https://zhuanlan.zhihu.com/p/495107049 Windows Defender是windows10系统自带的杀毒软件.默认情况下它处于打开的状态.大多数第三方的杀毒软件 ...
- [转帖]DBWR与LGWR的写入机制
https://www.jianshu.com/p/6c87cb6cd320 读与写是每个数据库提供的最基本的功能.当数据库中出现第一个进程时,总免不了要将数据从磁盘上加载到内存中,一次数据库的物理I ...
- [转帖]badboy与jmeter的结合使用
https://blog.csdn.net/weixin_41754309/article/details/107106855 欢迎关注[无量测试之道]公众号,回复[领取资源], Python编程学习 ...