Skip to content
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

Dragging files and other draggable items causes complete lock on linux #57766

Closed
chrisdruta opened this issue Sep 2, 2018 · 9 comments
Closed
Assignees
Labels
electron Issues and items related to Electron gpu Issues concerning GPU related items help wanted Issues identified as good community contribution opportunities upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream

Comments

@chrisdruta
Copy link

  • VSCode Version: 1.26.1, 493869e, x64
  • OS Version: Arch Linux (kernel: 4.18.5-arch1-1-ARCH)

I've been encountering quiet a weird bug for a couple of weeks now. As per the title, this bug occurs when I drag draggable items and let go of them. This could be me moving files, highlighting and moving text within a file, etc...

Steps to Reproduce:

  1. Open Code
  2. Open workspace file
  3. Move a file from the explorer to a subfolder in the same directory

The whole application is now frozen (at least visually) and behaves extremely strange with my window manager/ compositor (i3-gaps). I cannot force quit, and have to sigkill the process in htop or something.

Now time for the strange part - there are two binaries I get of vscode from this package: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=visual-studio-code-bin

One in /opt/visual-studio-code/code, and another in /opt/visual-studio-code/bin/code. The /opt/visual-studio-code/code has this bug. The one in /opt/visual-studio-code/bin/code does not. This is a problem because the default FreeDesktopOrg desktop file for code points to the first, which has the bug.

Note about the bug:
On the bug-free binary, when dragging the file, the whole destination sub-folder is highlighted before release, while on the bugged binary it doesn't highlight (and the tool tip breaks, and on release, everything breaks)

I have temporarily fixed the issue by pointing my desktop file for code to /usr/bin/code (which I think is the one in /opt/visual-studio-code/bin/) instead. If you guys think this is an issue more specific to my linux distribution/ package, I let the package maintainer know about this as well.

The fact that the process doesn't response (at least the frontend) and behaves strangely with my wm/compositor leads me to believe that the problem is more so on the rendering side. Some possibly related verbose log messages:

[17409:0901/193844.207598:ERROR:sandbox_linux.cc(344)] InitializeSandbox() called with multiple threads in process gpu-process.

[17409:0901/193856.377488:ERROR:buffer_manager.cc(453)] [.DisplayCompositor-0x231466a4a400]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added the install-update VS Code installation and upgrade system issues label Sep 2, 2018
@chrisdruta chrisdruta changed the title Dragging files and other draggable items causes complete lock on linux [bug] Dragging files and other draggable items causes complete lock on linux Sep 2, 2018
@chrisdruta chrisdruta changed the title [bug] Dragging files and other draggable items causes complete lock on linux Dragging files and other draggable items causes complete lock on linux Sep 2, 2018
@dbaeumer dbaeumer removed the install-update VS Code installation and upgrade system issues label Sep 3, 2018
@bpasero
Copy link
Member

bpasero commented Sep 3, 2018

We are building exploration builds that use a much newer version of Electron (our UI framework). I wonder if this issue reproduces with one of these builds, could you try? Download:

@bpasero bpasero added the info-needed Issue requires more information from poster label Sep 3, 2018
@chrisdruta
Copy link
Author

chrisdruta commented Sep 4, 2018

Nope, same exact bug, down to the different behavior between the binary in the root folder vs the bin folder. What exactly is the difference between the two? They both seem to be the same version (at least by commit)

@bpasero
Copy link
Member

bpasero commented Sep 5, 2018

Does it reproduce if you run code --disable-gpu from the command line?

@chrisdruta
Copy link
Author

Yes! That seems to have fixed it. Might be something with electron and the linux mesa display drivers. Thanks for the help :)

@bpasero bpasero added upstream Issue identified as 'upstream' component related (exists outside of VS Code) electron Issues and items related to Electron gpu Issues concerning GPU related items and removed info-needed Issue requires more information from poster labels Sep 5, 2018
@jgsqware
Copy link

Still experiencing the same currently on same version.

@bpasero bpasero added the help wanted Issues identified as good community contribution opportunities label Sep 18, 2018
@bpasero
Copy link
Member

bpasero commented Sep 18, 2018

If someone has ideas, help is welcome. I can also reproduce but I have no idea what could trigger this.

@bpasero
Copy link
Member

bpasero commented Sep 18, 2018

Actually this seems to be: electron/electron#12820

@valignatev
Copy link

It's definitely Electron-related. Slack had this issue as well, but in the most recent version, it's fixed.

@bpasero bpasero added the upstream-issue-linked This is an upstream issue that has been reported upstream label Oct 10, 2019
@bpasero bpasero removed their assignment Nov 4, 2020
@deepak1556
Copy link
Collaborator

Closing as it is resolved in upstream since Electron 11.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
electron Issues and items related to Electron gpu Issues concerning GPU related items help wanted Issues identified as good community contribution opportunities upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

6 participants