-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension host crashes every time I open this large file #84940
Comments
I have also tried on Windows, but I cannot reproduce the OOM crash. I have instead took a heap snapshot and noticed that we cache After removing that big memory hog, the largest objects retained come from the TS extension: In blue, there is a memory leak which ends up referencing In red, there is some sort of cache for the |
I have disabled the caching done by The next kind of large memory leak appears to be in |
@dbaeumer maybe the same code pattern of |
FWIW I had the exact same problem and wrote vscode/src/vs/base/parts/ipc/common/ipc.net.ts Lines 29 to 120 in 515a0cb
|
Thanks for the investigation and fix @alexandrudima. I've opened #85565 to track addressing the the buffer usage issue. I can no longer repo the original crash so I'm closing this issue for verification |
I can still reproduce the issue with that same file -- it takes about 30+ seconds for the EH to crash. |
Marking as windows only since it doesn't happen for me on macos. @eamodio Does this happen with --disable-extension too? |
Yes |
So I've dug into this more and found that it is the |
@eamodio If you are still interesting in investigating this, I suspect it's not that setting itself that causes problems but the fact that it causes a very large number of diagnostics to be generated |
happens to me also in my mac |
I looked into this this iteration but still can't repo a crash it on MacOS. There are definitely some slow downs however, specifically it seems around document symbols (partially because we keep reallocating the buffer when first getting the massive response json back) |
Closing since we have not seen many other reports of this issue |
Issue Type: Bug
extension-prod.zip
This happens even with starting vscode with all extensions disabled.
Each time I open this file in vscode the extension host will crash after a bit and this will be in the console:
Related to: #84939
VS Code version: Code - Insiders 1.41.0-insider (bf7d03b, 2019-11-15T05:40:12.201Z)
OS version: Windows_NT x64 10.0.19023
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: