vscode: Leaking notifications make VS Code freeze
- VSCode Version: 1.29.0 Insiders
- OS Version: Windows
Several hangs in a row. Attached are the log files from two of the hangs which contain the error [error] [VS Code]: detected unresponsive
.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 14
- Comments: 67 (26 by maintainers)
Commits related to this issue
- log telemetry event when we report unresponsiveness and crash, aftermath for #62970 and #62829 — committed to microsoft/vscode by jrieken 6 years ago
why hide my comment 😹
When you fix that ?
I have created https://github.com/Microsoft/vscode/pull/63136 to fix this.
How to revert to previous version?
Hi, I am also experiencing hang. VS Code version Version 1.29.0, macOS 10.13.6 (17G3025)
But unfortunately, because the window was unresponsive, I cannot get developer tool to launch, so I did not get any CPU profiling. But I do have control over other VS Code windows running separately to the window that frozen. Will profiling other windows produce useful information? Also, during the hang, Code Helper spiked to 100%.
Was having same issue, latest insiders seems to have fixed it, thanks for working on that.
I can reliably reproduce this. In above gif I have added a message that prints whenever a new listener is added, I have also tweaked the purge timeout to make things happen faster.
Eventually everything is cleaned-up (once the toast hides) but with an unlucky sequence of focus changes and because this leak grows exponential things get messy quickly. I have reached states with 500000+ listeners easily which means game over.
Vscode is Nice this frozen completly my mac hahahah
@bsendras Yeah, we already know that. We work full steam towards 1.29.1. In the meantime you can use insiders: http://code.visualstudio.com/insiders/ which already has the fix for this.
I’ve been using today’s build all day and haven’t encountered the problem so far🤞 Version 1.30.0-insider (6ef7e81ec086ced5fb20e904ea405075be474023)
Appreciate all your help @jrieken @roblourens
Everyone that is affected by this: Clearing your notifications should help to workaround this.
I was seeing this while editing a file for which I did not have the suggested extension, which triggered a popup that I didn’t bother clearing.
Hi folks,
It sees VS Code will reproduce this hang whenever it is not being worked on. Although strangely if your workspace only contains
markdown
orHTML
this issue would not occur. Since I did not experience hang in separate VS Code windows where I was editing.md
or.html
files.The window I got hang was the one I was editing
.tex
files withlatex-workshop
plugin.@jrieken Johannes, I finally got the CPU profile. This time I profiled for 5 sec, after waiting for about 5 min I was able saved it.
My extensions are listed below.
CPU profile with
.txt
extension added CPU-20181114T084129.cpuprofile.txtFreeze quite frequently to me as well. I have attached the cpu profile which is in
.txt
extension since Github not allow to upload.cpuprofile
profile.txt
VSCode Version: 1.29.0 OS Version: MacOS 10.13.6
Code Extensions:
@VishwaRajGit @tecosaur please help us profile this.
F1 > Developer Tools
Thanks for your help.
I’m getting this severely too. Is there any way I can roll back to the previous version?
@sgyzetrov @joseph1125 @tomaxsas Only CPU profiling will help us understand this. If the hang is very bad, then restart VS Code, start dev tools and keep them in the background, and profile when the editor is unresponsive.
What were you doing before the hangs?
I don’t think the logs have any useful info besides this error which shows up many times after the hang message in one instance
@jrieken is there any way to tie this to issues we’ve looked at lately?