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

Repeatedly typing space in extension search box causes hang #55426

Closed
mjbvz opened this issue Jul 31, 2018 · 6 comments · Fixed by #55611
Closed

Repeatedly typing space in extension search box causes hang #55426

mjbvz opened this issue Jul 31, 2018 · 6 comments · Fixed by #55611
Labels
bug Issue identified by VS Code Team member as probable bug macos Issues with VS Code on MAC/OS X verified Verification succeeded
Milestone

Comments

@mjbvz
Copy link
Collaborator

mjbvz commented Jul 31, 2018

Testing #55386

Issue Type: Bug

  1. Open extension search box.
  2. Repeatedly type space every half second or so (make sure the progress bar is showing when you type the next space)

Bug
After five or more spaces, the entire VS Code UI starts hanging for a few seconds

VS Code version: Code - Insiders 1.26.0-insider (0707dd4, 2018-07-31T05:12:08.688Z)
OS version: Darwin x64 17.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (8 x 2200)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 5
Memory (System) 16.00GB (0.14GB free)
Process Argv /Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron -psn_0_9410809
Screen Reader no
VM 17%
@vscodebot vscodebot bot added the insiders label Jul 31, 2018
@JacksonKearl JacksonKearl added the macos Issues with VS Code on MAC/OS X label Jul 31, 2018
@JacksonKearl
Copy link
Contributor

Are you able to reproduce this reliably? I've never gotten it on Windows but I did manage once on macOS, even then it only stalled the extensions viewlet UI, rest was fine. Its just pressing space as the search triggers right?

@ramya-rao-a
Copy link
Contributor

@JacksonKearl Can we not skip the search if newValue.trim() === oldValue.trim() ?

@ramya-rao-a ramya-rao-a added this to the July 2018 milestone Aug 1, 2018
@JacksonKearl
Copy link
Contributor

We can do that. But what if they hit 'a' a bunch? @mjbvz can you repro this in stable?

@mjbvz
Copy link
Collaborator Author

mjbvz commented Aug 1, 2018

No, I didn’t see this in stable when typing spaces. I also don’t remember being able to reproduce this with other characters, such as typing “a” many times

@JacksonKearl
Copy link
Contributor

Then we can probably get away with just debouncing the trimmed value

@ramya-rao-a
Copy link
Contributor

@JacksonKearl Let's do that to begin with

@ramya-rao-a ramya-rao-a added the bug Issue identified by VS Code Team member as probable bug label Aug 2, 2018
@mjbvz mjbvz added the verified Verification succeeded label Aug 3, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug macos Issues with VS Code on MAC/OS X verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants