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.

Moving mouse over long lines in Javascript files uses 100% CPU for several seconds, and freezes

See original GitHub issue

Version: 1.50.0-insider Commit: cca20eba8974b1d6b6a9b71bf4e60a29c8f26648 Date: 2020-09-12T00:58:03.476Z Electron: 9.3.0 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Linux x64 5.4.0-47-generic snap

(reproduces on a friend’s Windows 10 version as well) This started happening on the main version of vscode ~3 days ago.

Sample: Needs to be renamed to .js foo.txt

Steps to Reproduce:

  1. Open a file with one long line. The file needs to have the JS extension (sample attached, but needs to have its extension changed to .js, as Github doesn’t allow .js to be attached).
  2. Click one spot in the file, and try to highlight a section.

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
roblourenscommented, Jul 2, 2021

I see this

image

Same stack, much faster than the original example but still slow. Is there anything else to be done or is that just as good as the browser can get?

1reaction
lramos15commented, Jul 1, 2021

@deepak1556 I’m not sure what level of performance we’re looking for here. On my mac it is super sluggish selecting and clicking the mouse to different sections of the line still freezes the editor

Read more comments on GitHub >

github_iconTop Results From Across the Web

High CPU usage due to the mouse hover e-mail message list ...
in the unified Inbox i am moving mouse up/down quickly through the list of e-mails and i can see that the line the...
Read more >
How to avoid freezing the browser when doing long-running ...
Here is a long-running JavaScript process that can be started by clicking a button. Once it runs, it freezes the browser.
Read more >
High CPU Usage while typing (<JIT Compiler> goes over 300%)
IntelliJ cpu usage is low when doing nothing in the editor but as soon as I move the cursor around or start type...
Read more >
How to Fix High CPU Usage - Intel
The central processing unit (CPU) is a PC's brain. All of the system's major components, like the graphics card and RAM, rely on...
Read more >
computer screen frozen but mouse moves - Il Vecchio Cortile
The mouse cursor will randomly stop moving for about 2-5 seconds. ... my temps on the computer for everything except my CPU never...
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