vscode 内存使用率高,代码9导致不断崩溃,

7gcisfzg  于 6个月前  发布在  Vscode
关注(0)|答案(6)|浏览(52)

类型:Bug
无法重现,请检查日志。它只是开始吃内存,然后冻结我的整个桌面,然后崩溃,代码为9。今天已经崩溃了四次。
VS Code版本:Code 1.86.2 ( 903b1e9 , 2024-02-13T19:41:37.860Z)
操作系统版本:Linux x64 5.15.0-94-generic
模式:
系统信息
| 项目 | 值 |
| ------------ | ------------ |
| CPUs | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (4 x 2700) |
| GPU状态 | 2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off |
| 平均负载 | 3, 2, 3 |
| 内存(系统) | 11.57GB (1.67GB free) |
| 进程参数 | . --crash-reporter-id c58b6a49-a4ed-4475-9157-e3a90d8d2a9b |
| 屏幕阅读器 | no |
| VM | 0% |
| DESKTOP_SESSION | xfce |
| XDG_CURRENT_DESKTOP | XFCE |
| XDG_SESSION_DESKTOP | xfce |
| XDG_SESSION_TYPE | x11 |扩展(16)
| 扩展名 | 作者(省略) | 版本 |
| ------------ | ------------ | ------------ |
| vscode-intelephense-client | bme | 1.10.2 |
| scratchpads | bue | 1.0.0 |
| aql | DIP | 0.9.1 |
| xml | Dot | 2.5.1 |
| comment-anchors | Exo | 1.10.4 |
| vscode-diff | fab | 1.4.2 |
| code-groovy | mar | 0.1.2 |
| rainbow-csv | mec | 3.11.0 |
| vscode-docker | ms- | 1.29.0 |
| openehr-adl-lsp | Ned | 0.6.1 |
| edi-x12-support | Sil | 1.1.0 |
| doki-theme | unt | 88.1.16 |
| php-debug | xde | 1.34.0 |
| php-pack | xde | 1.0.3 |
| vscode-fhir-tools | Yan

w9apscun

w9apscun1#

找到日志:

2024-02-20 03:57:15.792 [info] update#setState idle
2024-02-20 03:57:45.793 [info] update#setState checking for updates
2024-02-20 03:57:46.024 [info] update#setState idle
2024-02-20 04:57:45.808 [info] update#setState checking for updates
2024-02-20 04:57:46.877 [info] update#setState idle
2024-02-20 12:38:33.224 [info] update#setState checking for updates
2024-02-20 12:38:33.685 [info] update#setState idle
2024-02-20 13:38:33.227 [info] update#setState checking for updates
2024-02-20 13:38:33.587 [info] update#setState idle
2024-02-20 14:05:52.703 [info] Extension host with pid 51521 exited with code: 0, signal: unknown.
2024-02-20 14:24:20.014 [info] Extension host with pid 64997 exited with code: 0, signal: unknown.
2024-02-20 14:38:33.237 [info] update#setState checking for updates
2024-02-20 14:38:33.572 [info] update#setState idle
2024-02-20 15:38:33.243 [info] update#setState checking for updates
2024-02-20 15:38:33.575 [info] update#setState idle
**2024-02-20 16:32:56.845 [error] CodeWindow: renderer process gone (reason: killed, code: 9)**
2024-02-20 16:32:57.267 [info] Extension host with pid 49002 exited with code: 0, signal: unknown.
**2024-02-20 16:33:01.121 [error] [UtilityProcess id: 1, type: fileWatcher, pid: 49047]: crashed with code 139 and reason 'crashed'**
2024-02-20 16:38:33.246 [info] update#setState checking for updates
2024-02-20 16:38:33.549 [info] update#setState idle
2024-02-20 17:38:33.259 [info] update#setState checking for updates
2024-02-20 17:38:33.846 [info] update#setState idle
2024-02-20 20:27:08.585 [info] update#setState checking for updates
2024-02-20 20:27:08.961 [info] update#setState idle
2024-02-20 20:40:37.906 [warning] No ptyHost heartbeat after 6 seconds
2024-02-20 20:41:07.943 [warning] No ptyHost heartbeat after 6 seconds
**2024-02-20 20:41:10.733 [error] CodeWindow: renderer process gone (reason: killed, code: 9)**
2024-02-20 20:41:10.950 [info] Extension host with pid 72865 exited with code: 0, signal: unknown.
**2024-02-20 20:41:12.281 [error] [UtilityProcess id: 3, type: fileWatcher, pid: 72875]: crashed with code 139 and reason 'crashed'**
2024-02-20 21:12:48.113 [error] CodeWindow: renderer process gone (reason: killed, code: 9)
2024-02-20 21:12:48.972 [info] Extension host with pid 87606 exited with code: 0, signal: unknown.
2024-02-20 21:12:52.606 [error] [UtilityProcessWorker]: terminated unexpectedly with code 15, signal: unknown
2024-02-20 21:12:52.607 [error] [UtilityProcess id: 4, type: fileWatcher, pid: 87621]: crashed with code 15 and reason 'killed'
2024-02-20 21:14:01.036 [warning] No ptyHost heartbeat after 6 seconds
2024-02-20 21:28:25.160 [info] update#setState checking for updates
2024-02-20 21:28:25.261 [error] CodeWindow: detected unresponsive
2024-02-20 21:28:26.333 [info] update#setState idle
2024-02-20 21:28:44.060 [warning] No ptyHost heartbeat after 6 seconds
2024-02-20 21:28:57.193 [info] Extension host with pid 91040 exited with code: 0, signal: unknown.
nlejzf6q

nlejzf6q2#

请按照https://github.com/Microsoft/vscode/wiki/Native-Crash-Issues中的步骤获取有关崩溃的更多详细信息,并将结果附加在这里。谢谢!

zc0qhyus

zc0qhyus3#

处理Linux 6+上的相同问题。

pprl5pva

pprl5pva5#

请按照以下步骤操作:

  1. 打开终端(Terminal)。
  2. 输入以下命令以查找*.dmp文件:
sudo find / -name *.dmp
  1. 如果找到了*.dmp文件,请记下文件的完整路径。如果没有找到,请尝试重启计算机,然后再次运行上述命令。
72qzrwbm

72qzrwbm6#

看起来是扩展的问题,我禁用了所有扩展,发现VSCode运行良好,内存仅达到300 MB。然而,当我启用Tabnine时,VSCode使用了近3GB的内存。

相关问题