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 ...
随机推荐
- 火山引擎ByteHouse助力中国地震台网中心,快速构建一站式实时数仓
更多技术交流.求职机会,欢迎关注字节跳动数据平台微信公众号,并进入官方交流群 近日,中国地震台网中心与火山引擎达成合作,双方将围绕 ByteHouse 实时数仓展开合作. 中国地震台网中心为中国地震局 ...
- drf-jwt配置文件 jwt签发认证源码分析 自定义用户签发认证 simpleui后台管理美化 权限控制 (acl、rbac)
目录 昨日回顾 接口文档 自动生成接口文档 接口文档必备的内容 cookie-session-token发展史 token原理 base64 快速签发 定制返回格式 jwt的认证 drf-jwt配置文 ...
- hyper-v虚拟机中ubuntu连不上网络的解决办法
首先重启下hyper-v的服务,看下情况: 1.检查hyper-v相关的服务有没有开启 2.如果开启了服务,unbuntu仍然不能连网,则在ubtuntu中进行接下来的步骤: 2.1 设置网络连接为N ...
- Win 10 Rust Installtion in D Disk with VSCode
(只记录了必须要内容,日后完善!) 1. rust的安装与环境变量: 要提前把下面两个环境变量配置好,这样是为了指定安装路径.否则会默认安装在 C 盘下. CARGO_HOME: D:\Soft\La ...
- 【每日一题】1. tokitsukaze and Soldier (优先队列 + 排序)
题目链接:Here 思路:这道题很容易看出来是考察 优先队列(priority_queue) 和 sort . 对于容忍人数越高的人来说,团队人数低也更能做到: for i = 0 to n - 1: ...
- kafka集群四、权限增加ACL
系列导航 一.kafka搭建-单机版 二.kafka搭建-集群搭建 三.kafka集群增加密码验证 四.kafka集群权限增加ACL 五.kafka集群__consumer_offsets副本数修改 ...
- vue tabBar导航栏设计实现4-再次抽取MainTabBar
系列导航 一.vue tabBar导航栏设计实现1-初步设计 二.vue tabBar导航栏设计实现2-抽取tab-bar 三.vue tabBar导航栏设计实现3-进一步抽取tab-item 四.v ...
- vue3组件el-dialog提取
父组件: 1 <template> 2 <div class="auto-wrap"> 3 <div class="content-left ...
- 线性代数 · 矩阵 · Matlab | 满秩分解代码实现
背景 - 矩阵的满秩分解: 若 A 为 m×n 矩阵,rank(A) = r,则存在 F m×r.G r×n,使得 A = FG. 其中,F 列满秩,G 行满秩. 求满秩分解的方法: 得到 A 的行最 ...
- SV 数据类型-2
动态数组 数组定义的时候不用给定数组元素个数 动态数组实例 例1 队列