microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
161.79k stars 28.44k forks source link

VSCode become laggy after some time and then crash (reason: crashed, code: 132) #212911

Closed BungaaFACE closed 2 months ago

BungaaFACE commented 3 months ago

Type: Bug

With verbose mode i see many

potential listener LEAK detected, having XXX listeners already

REFUSES to accept new listeners because it exceeded its threshold by far

SLOW task detected (744ms) but renderer profiling is disabled via 'application.experimental.rendererProfiling'" vscode

And then got crash with: CodeWindow: renderer process gone (reason: crashed, code: 132)

Verbose log: vscode_log.txt

I think this is because one of extensions, because on other profile no such problems

VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:16:23.416Z) OS version: Linux x64 6.8.0-76060800daily20240311-generic Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 2600 Six-Core Processor (12 x 3834)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|2, 2, 1| |Memory (System)|23.40GB (16.96GB free)| |Process Argv|--crash-reporter-id b7df5783-d000-42d0-9761-a4d348c98d80| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|pop| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|pop| |XDG_SESSION_TYPE|x11|
Extensions (19) Extension|Author (truncated)|Version ---|---|--- aessoft-class-autocomplete|AES|0.1.0 vscode-django|bat|1.15.0 django-snippets|bib|1.1.1 django|big|1.0.2 file-shortcuts|bra|0.0.9 django-import-libraries|Dha|0.0.4 vscode-html-css|ecm|2.0.9 auto-rename-tag|for|0.1.10 vscode-drawio|hed|1.6.6 vscode-django-support|jun|1.0.32 document|min|2.2.1 vscode-html-format|moh|0.1.6 autopep8|ms-|2024.0.0 debugpy|ms-|2024.6.0 python|ms-|2024.6.0 remote-ssh|ms-|0.110.1 indent-rainbow|ode|8.3.1 django-intellisense|sha|0.0.2 python-auto-venv|Wol|1.3.2
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 chatpanelt:31048053 dsvsc021:30996838 f3je6385:31013174 pythoncenvpt:31049070 a69g1124:31046351 pythonprc:31047982 dwnewjupyter:31046869 26j00206:31048877 ```
BungaaFACE commented 3 months ago

So I tested some things, here what i got:

I dont know if extensions are conflicting each other or there is a problem in this particular extension

roblourens commented 3 months ago

Thanks for identifying that, can you file an issue against the extension too?

In case there is anything for us to look at, here's the stack that's producing the listener warnings:

at [`./base/common/event.ts:889:24`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./base/common/event.ts#L889)
    at [`./base/common/event.ts:1055:33`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./base/common/event.ts#L1055)
    at [`./editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.ts:41:37`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.ts#L41)
    at [`./editor/common/model/textModel.ts:327:38`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./editor/common/model/textModel.ts#L327)
    at [`./editor/common/services/modelService.ts:317:27`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./editor/common/services/modelService.ts#L317)
    at [`./editor/common/services/modelService.ts:452:20`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./editor/common/services/modelService.ts#L452)
    at [`./workbench/api/browser/mainThreadDocumentContentProviders.ts:49:32`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./workbench/api/browser/mainThreadDocumentContentProviders.ts#L49)
    at [`./workbench/services/textmodelResolver/common/textModelResolverService.ts:187:17`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./workbench/services/textmodelResolver/common/textModelResolverService.ts#L187)
    at [`./workbench/services/textmodelResolver/common/textModelResolverService.ts:78:3`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./workbench/services/textmodelResolver/common/textModelResolverService.ts#L78)
    at [`./base/common/lifecycle.ts:683:18`](https://github.com/Microsoft/vscode/blob/dc96b837cf6bb4af9cd736aa3af08cf8279f7685/src/vs/./base/common/lifecycle.ts#L683)
BungaaFACE commented 3 months ago

can you file an issue against the extension too?

I dont think this will work. last extension update was 5 years ago.

VSCodeTriageBot commented 2 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!