question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mouse flicking back and forth causing vscode to hang

See original GitHub issue

Does this issue occur when all extensions are disabled?: Unknown yes

  • VS Code Version:
Version: 1.66.0
Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5
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
  • OS Version: Ubuntu, XFCE

Steps to Reproduce:

Reproduction case: https://github.com/microsoft/vscode/issues/146993#issuecomment-1131470956

I have no idea how to reproduce, I was clicking around in the file explorer when my mouse started flickering, including an icon on the side. it completely locked up and I had to terminate the process. When terminating it didn’t respond to the kill signal, so I had to force it to close.

It seems there is a back-and-forth race condition for setting the pointer style somewhere.

Here is a GIF demonstrating the behaviour observed:

flickering_mouse

Note that the speed of the flickering was much faster, and it is due to my recording software that you cannot see it flicker fast regularly. I am in fact trying to click on different parts of the application, but as you can see no click is getting through.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:17
  • Comments:58 (4 by maintainers)

github_iconTop GitHub Comments

7reactions
MadaraUchihacommented, Aug 30, 2022

This bug makes vscode unusable on Linux, I have to killall -9 code every hour or so. Is there a status on this?

5reactions
morn-0commented, Aug 9, 2022

Thought I’d give an update on how to reproduce this bug. Turns out you don’t even need to click anywhere. Just do the following:

  • make sure the sidebar is extended
  • hover over an icon of the sidebar
  • start moving slowly to the tip of the hover hint
  • observe

vscode-flick.mp4 Things to note in my case:

  • I could not reproduce it on zoom level 0 or below. Zoom levels 1 and 2 reproduce this bug. Try to increase the zoom level to see if it happens.
  • From this first point, weirdly enough, staying on zoom level 0 seems to remove this issue, but then it’s annoying not being able to use other zoom levels without taking that risk of freezing.
  • Disabling hardware acceleration didn’t change anything.
  • I built (yarn) and ran (./scripts/code.sh) VSCode from source and couldn’t reproduce the bug. The pointer does flick back and forth, but only when it stays still; as soon as I move it a few pixels more it stops flicking. Also, the pointer flicking doesn’t block any shortcuts unlike in this demo.

After triggering the blinking taskbar right click vscode and then mouse mouse move to the right click option to move and keep the right click does not release about a few seconds will lift the blinking

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why my VS Code is laggy and mouse is flickering?
When I use VS Code to develop angular project(for work), the mouse is flickering and IDE is very stubborn. And I closed the...
Read more >
15.7.1 freezes when right clicking - Visual Studio Feedback
Freezing usually happens when right clicking on code while editing (NOT debugging or compiling). Must use Windows Task Manager to end Visual Studio...
Read more >
VS Code Extensions to Increase Developer Productivity
And if you see that, go ahead and install. And after you're done installing, you're going to want to reload your window for...
Read more >
Setting Up VS Code for Unreal Engine
VS Code uses the Microsoft Visual C++ compiler (MSVC) toolset on Windows. ... Click the Download button next to Build Tools for Visual...
Read more >
Getting Started with VS Code and PlatformIO IDE for ESP32 ...
Program the ESP32 and ESP8266 NodeMCU boards using VS Code (Visual Studio) with PlatformIO IDE extension. Install the software on Windows, Mac OS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found