vscode: Hang/blank window after reload window with running terminal processes
Testing #127195 On OS X Version 11.4
- open vscode folder
- open a terminal
- in the terminal execute the following script
sh
while true
do
date
sleep 1
done
- execute
Reload window
The command hangs, you see a blank window and cannot open the developer tools (sry for the unhelpful screenshot)
Closing the blank window and opening the vscode folder in a new window reconnects to the running process.
Repro behaviour:
- I can reproduce this behaviour about every 2-10 times in the above setup with open vscode folder after waiting a couple of seconds.
- I was not able to reproduce the behaviour when I have a simple test folder containing a couple files open.
- I’ve failed to reproduce the reload hang when there is no open terminal.
- I’ve failed to reproduce the reload hang in a remote setup using Remote Containers.
@bpasero any suggestion for how to collect more diagnostic information when in this state?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 15 (15 by maintainers)
Commits related to this issue
- bootstrap - log an error when window config cannot be loaded in 10s (#127421) — committed to microsoft/vscode by bpasero 3 years ago
- mitigate hang on reload due to loading workspace storage before loading (#127421) — committed to microsoft/vscode by bpasero 3 years ago
- storage - do not warm up sqlite on load of another workspace (#127421) — committed to microsoft/vscode by bpasero 3 years ago
- storage - init workspace storage again on reload/load of window (#127421) — committed to microsoft/vscode by bpasero 3 years ago
@deepak1556 please take a look at https://github.com/microsoft/vscode/commit/b67f4ccbbb8631210d4258a07b5b3f901c783305. This should cover the reload scenario at least. Arguably I think it could happen as well when changing workspaces on an existing window but since no user complained so far, I suggest we do the real fix in Electron in July if possible.
Oh yeah for the endgame, sqlite change sounds good.
code-insiders --verbose --open-devtools