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 ...
随机推荐
- 无法停止服务、无法终止 PID 4100 的进程
服务中无法停止服务. 先查出服务对应的进程 Microsoft Windows [版本 10.0.19043.1348] (c) Microsoft Corporation.保留所有权利. C:\Us ...
- Swagger2 Unable to infer base url. This is common
http://localhost:8080/swagger-ui.html 弹出: 解决方法:除了SwaggerConfig 上要加@EnableSwagger2 ,启动类上也要加 重启再次访问如下
- 同步时间,为什么我选 Chrony 而不是 NTP ?
初识 chrony chrony 是网络时间协议(Network Time Protocol )的通用实现 它不但可以提供保持系统时间与 NTP 时钟服务器同步的服务,还能作为 NTP 服务器对其他服 ...
- 使用jasypt加密配置的时候,报错:DecryptionException: Unable to decrypt
前几天分享了一篇<Spring Boot 2.x基础教程:加密配置中的敏感信息> ,然后看到群里有小伙伴反应跟着这篇文章出现了这个异常com.ulisesbocchio.jasyptspr ...
- 遇到 Request header is too large,你是如何解决的?
看到群里有小伙伴问,这个异常要怎么解决: java.lang.IllegalArgumentException: Request header is too large 异常原因 根据Exceptio ...
- IDEA 2021.2 新建JavaWeb项目及Tomcat部署
前文:JSP 简单入门与 IDEA 开发环境配置 参考链接: https://zhuanlan.zhihu.com/p/68133583 https://www.cnblogs.com/javabg/ ...
- C#设计模式08——桥接模式的写法
什么是C#桥接模式?桥接模式是一种结构型设计模式,它可以将抽象部分与实现部分分离,使它们可以独立地变化.这种模式通过将实现细节从抽象类中分离出来,从而让它们可以根据需要独立变化. 为什么要使用C#桥接 ...
- 01_设计一个有getMin功能的栈
01_设计一个有getMin功能的栈 [题目] 实现一个特殊的栈,在实现栈的基本功能的基础上,再实现返回栈中最小元素的操作. [要求] pop.push.getMin操作的时间复杂度都是O(1) 设计 ...
- 08_N叉树的层序遍历
N叉树的层序遍历 给定一个 N 叉树,返回其节点值的层序遍历.(即从左到右,逐层遍历). 树的序列化输入是用层序遍历,每组子节点都由 null 值分隔(参见示例). 示例 1: 输入:root = [ ...
- 操作系统OS笔记2
操作系统OS笔记2 调度和死锁 调度简介 1. 调度的基本概念 2. 调度原则 调度算法 平均周转时间: 平均带权周转时间:周转时间/服务时间 1. 先来先服务调度算法(FCFS) 当在高级调度中采用 ...