Repository navigation
Description
System: Red Hat Enterprise Linux Workstation release 7.9 (Maipo)
OS: Linux myhost 3.10.0-1160.36.2.el7.x86_64 #1 SMP Thu Jul 8 02:53:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
This began as an occasional annoyance and has escalated into a 100% reproducible annoyance.
Using the latest snap install, during normal editing/debugging/etc. on local system. With increasing frequency, Ctrl-O/File->Open would completely freeze the UI with just a blinking cursor. Sometimes switching away and back would repaint part of the screen, increasingly not. Tried switching the output window to various things before attempting the file open (extension manager, main window, etc), but no output was observed before the freeze.
Once the UI is frozen, only kill/killall seems to be able to get rid of it. Not sure if it means anything, but de-maximize and maximize still resize the window frame, although the contents aren't redrawn. Can't remember if that requires app cooperation or it that is a pure WM thing.
Using snap installed code-insiders made no difference.
Uninstalling snap versions and downloading 1.65.0 from the MS repo so far seems to have restored functionality (1.66.0 requires a glibc version unavailable for RHEL7).
Haven't tried with (all) extensions disabled, but did disable everything I don't need constantly.
One change in workflow recently seems suspiciously coordinated with the start of the issues - began using VS Code on another machine (nfs-mounted home folder, so shared settings/etc.) to attach to running containers (as container-specific user, to specific folder inside container), debug processes inside container, etc.
Perhaps something got saved in the settings that is redirecting local File->Open to the remote-containers extension? Probably not, but the timing is mighty suspicious.
Activity
AngryCochinoPup commentedon Apr 1, 2022
Interesting. With 1.65.0 still running, snap installed the latest (1.66.0) again and ran it with:
snap run code --sync off --disable-extensions .Ctrl-O still hung the 1.66.0 app. Apparently it isn't an extension.
Z-star1 commentedon Apr 2, 2022
me too.it is the same problem.the vscode is really disgusting
longbowlee commentedon Apr 3, 2022
yes, I ran into the same problem, vscode hangs when execute any open command, open folder or open a file
yevhenkuznetsov commentedon Apr 4, 2022
Same for me on my Ubuntu 18.04 :-(
Installed via
snaptail of
vscode . --verbose:[main 2022-04-04T16:59:49.813Z] menubar#runActionInRenderer { type: 'commandId', commandId: 'workbench.action.files.openFolder' } [23250:0404/185949.816566:INFO:CONSOLE(610)] "%cTRACE color: #888 CommandService#executeCommand workbench.action.files.openFolder", source: vscode-file://vscode-app/snap/code/92/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js (610) [main 2022-04-04T16:59:49.818Z] [DialogMainService]: request to acquire file dialog lock { title: 'Open Folder', buttonLabel: undefined, filters: undefined, defaultPath: '/home/eugene/Playground', properties: [ 'multiSelections', 'openDirectory', 'createDirectory' ] } [main 2022-04-04T16:59:49.818Z] [DialogMainService]: new file dialog lock created { title: 'Open Folder', buttonLabel: undefined, filters: undefined, defaultPath: '/home/eugene/Playground', properties: [ 'multiSelections', 'openDirectory', 'createDirectory' ] } [23250:0404/185949.821170:WARNING:browser_main_loop.cc(269)] GLib-GObject: cannot register existing type 'GtkWidget' [23250:0404/185949.821201:WARNING:browser_main_loop.cc(269)] GLib-GObject: cannot add class private field to invalid type '<invalid>' [23250:0404/185949.821209:WARNING:browser_main_loop.cc(269)] GLib-GObject: cannot add private field to invalid (non-instantiatable) type '<invalid>' [23250:0404/185949.821220:ERROR:browser_main_loop.cc(267)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed [23250:0404/185949.821230:WARNING:browser_main_loop.cc(269)] GLib-GObject: cannot register existing type 'GtkBuildable' [23250:0404/185949.821235:ERROR:browser_main_loop.cc(267)] GLib-GObject: g_type_interface_add_prerequisite: assertion 'G_TYPE_IS_INTERFACE (interface_type)' failed [23250:0404/185949.821241:ERROR:browser_main_loop.cc(267)] GLib: g_once_init_leave: assertion 'result != 0' failed [23250:0404/185949.821246:ERROR:browser_main_loop.cc(267)] GLib-GObject: g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed [23250:0404/185949.821251:ERROR:browser_main_loop.cc(267)] GLib-GObject: g_type_register_static: assertion 'parent_type > 0' failed [23250:0404/185949.821257:WARNING:browser_main_loop.cc(269)] GLib-GObject: cannot add private field to invalid (non-instantiatable) type '<invalid>'dave992 commentedon Apr 5, 2022
Also happening here, is there any known workaround at the moment to still open a folder? (Also #146809 seems to be related)
deepak1556 commentedon Apr 5, 2022
#146584 (comment) points to mismatched gtk library version loaded in the app process
EugeneKuznetsov or others facing the issue, can you please follow the steps below and attach the generated profile
yevhenkuznetsov commentedon Apr 5, 2022
Thanks! Attached as requested above.
code_strace.log
deepak1556 commentedon Apr 5, 2022
Is the log cut off ? I don't see most the library loads that are required for startup.
yevhenkuznetsov commentedon Apr 5, 2022
hmm, sorry, would
strace -o code_strace.log -DD -qq -e trace=file codebe sufficient ? Because that is an only single output which I've got after execution.p.s. I am using managed PC and don't have permissions for
sudo snap:-(25 remaining items
vscodenpa commentedon Jun 7, 2022
This bug has been fixed in the latest release of VS Code Insiders!
AngryCochinoPup, you can help us out by commenting
/verifiedif things are now working as expected.If things still don't seem right, please ensure you're on version 87630a9 of Insiders (today's or later - you can use
Help: Aboutin the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
deepak1556 commentedon Jun 9, 2022
Verification Steps:
sudo apt install libgtk-3-devsudo snap install code --classicCtrl + Osudo snap install code-insiders --classicCtrl + Oisidorn commentedon Jun 9, 2022
EugeneKuznetsov can you help in verifying this since you have Ubuntu 18.04?
yevhenkuznetsov commentedon Jun 9, 2022
Hey Isidor Nikolic (@isidorn) , I can confirm that I get a dialog with the same setup and
code-insiders.Thanks!
p.s. nevertheless, the strange behavior of dialog appearing in background remains the same as for previous solution using
apt- but that is fine for now.