Skip to content

Application hangs on Ctrl-O or File->Open #146584

Closed

Description

@AngryCochinoPup

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

  1. AngryCochinoPup commented on Apr 1, 2022

    @AngryCochinoPup
    Author

    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.

  2. Z-star1 commented on Apr 2, 2022

    @Z-star1

    me too.it is the same problem.the vscode is really disgusting

  3. longbowlee commented on Apr 3, 2022

    @longbowlee

    yes, I ran into the same problem, vscode hangs when execute any open command, open folder or open a file

  4. yevhenkuznetsov commented on Apr 4, 2022

    @yevhenkuznetsov

    Same for me on my Ubuntu 18.04 :-(

    Installed via snap

    Version: 1.66.0
    Commit: e18005f
    Date: 2022-03-30T05:50:41.156Z
    Electron: 17.2.0
    Chromium: 98.0.4758.109
    Node.js: 16.13.0
    V8: 9.8.177.11-electron.0
    OS: Linux x64 5.4.0-107-generic snap

    tail 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>'
  5. dave992 commented on Apr 5, 2022

    @dave992

    Also happening here, is there any known workaround at the moment to still open a folder? (Also #146809 seems to be related)

  6. deepak1556 commented on Apr 5, 2022

    @deepak1556
    Collaborator

    #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

    * Launch the app with following command 
    
    snap run --strace="-o code_strace.log -DD -qq -e trace=file" code
    
    * Once the app opens, perform the open folder/file operations (Ctrl + O or Ctrl+k+O)
    
    * Quit the application once it freezes
    
    * code_strace.log will be generated in the current directory from where the snap command was run, please attach it to this issue
    
  7. added
    info-needed
    linux
    snap
    native-file-dialog
    electron-17-update
    on Apr 5, 2022
  8. yevhenkuznetsov commented on Apr 5, 2022

    @yevhenkuznetsov

    Thanks! Attached as requested above.
    code_strace.log

  9. deepak1556 commented on Apr 5, 2022

    @deepak1556
    Collaborator

    Is the log cut off ? I don't see most the library loads that are required for startup.

  10. yevhenkuznetsov commented on Apr 5, 2022

    @yevhenkuznetsov

    hmm, sorry, would strace -o code_strace.log -DD -qq -e trace=file code be 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 :-(

  11. 25 remaining items

  12. added
    candidate
    on Jun 4, 2022
  13. added
    unreleased
    on Jun 6, 2022
  14. added
    bug
    insiders-released
    and removed
    unreleased
    on Jun 6, 2022
  15. added
    author-verification-requested
    on Jun 7, 2022
  16. vscodenpa commented on Jun 7, 2022

    @vscodenpa

    This bug has been fixed in the latest release of VS Code Insiders!

    AngryCochinoPup, you can help us out by commenting /verified if 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: About in the command palette to check), and leave a comment letting us know what isn't working as expected.

    Happy Coding!

  17. deepak1556 commented on Jun 9, 2022

    @deepak1556
    Collaborator

    Verification Steps:

    • Install Ubuntu 18.04, images available from https://launchpad.net/ubuntu/+cdmirrors
    • Install gtk3 <= 3.22, sudo apt install libgtk-3-dev
    • Install stable vscode from snap, sudo snap install code --classic
    • Launch code and open the file explorer Ctrl + O
    • Verify application freezes
    • Install insiders from snap, sudo snap install code-insiders --classic
    • Launch code-insiders and open the file explorer Ctrl + O
    • Verify file explorer launches and application does not hang
  18. isidorn commented on Jun 9, 2022

    @isidorn

    EugeneKuznetsov can you help in verifying this since you have Ubuntu 18.04?

  19. yevhenkuznetsov commented on Jun 9, 2022

    @yevhenkuznetsov

    EugeneKuznetsov can you help in verifying this since you have Ubuntu 18.04?

    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.

  20. locked and limited conversation to collaborators on Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

author-verification-requestedbugcandidateconfirmedelectronelectron-17-updatefixed-in-electron-18insiders-releasedlinuxnative-file-dialogsnapupstreamverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions