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.

Source Control stalls 15 seconds or more

See original GitHub issue

Type: Performance Issue

Any time the repo updated or anything that related to git. It often stalls for 15 seconds or more. When using git through an external terminal, It suffer no issue, So It must be with Visual studio.

This issue is present with and without extension

VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:03:37.738Z) OS version: Windows_NT x64 10.0.22621 Modes: Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 5 4600H with Radeon Graphics (12 x 2994)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.37GB (5.37GB free)
Process Argv –crash-reporter-id 0480dfda-f8ba-4fe2-aabd-6c264ac50844
Screen Reader no
VM 40%
Process Info
CPU %	Mem MB	   PID	Process
    0	    95	  4668	code main
    0	   118	   972	   extensionHost
    0	   265	 15672	     c:\Users\Hafiz\.vscode\extensions\rust-lang.rust-analyzer-0.3.1229-win32-x64\server\rust-analyzer.exe
    0	    11	 11872	       console-window-host (Windows internal process)
    0	     4	 18256	       "C:\Users\Hafiz\.rustup\toolchains\stable-x86_64-pc-windows-msvc\libexec\rust-analyzer-proc-macro-srv.exe"
    0	   126	  1464	   gpu-process
    0	    28	  7460	   crashpad-handler
    0	   170	 10572	   window (main.rs - hello - Visual Studio Code)
    0	    89	 12324	   issue-reporter
    0	    40	 18296	   utility-network-service
    0	   113	 20376	   shared-process
    0	    77	  6048	     fileWatcher
    0	    73	 22572	     ptyHost
Workspace Info
|  Window (main.rs - hello - Visual Studio Code)
|    Folder (hello): 42 files
|      File types: bin(6) lock(3) json(3) timestamp(2) d(2) rmeta(2)
|                  gitignore(1) toml(1) rs(1) TAG(1)
|      Conf files:;
Extensions (31)
Extension Author (truncated) Version
language-x86-64-assembly 13x 3.0.0
vscode-intelephense-client bme 1.8.2
better-toml bun 0.3.2
doxdocgen csc 1.4.0
gdb-debug Dam 1.0.7
better-cpp-syntax jef 1.15.23
remote-containers ms- 0.251.0
remote-ssh ms- 0.84.0
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.66.3
cmake-tools ms- 1.12.27
cpptools ms- 1.12.4
cpptools-extension-pack ms- 1.3.0
fabric8-analytics red 0.3.6
java red 1.11.0
vscode-xml red 0.21.2022062916
LiveServer rit 5.7.9
rust-analyzer rus 0.3.1229
cmake twx 0.0.17
errorlens use 3.6.0
vscode-lldb vad 1.8.1
intellicode-api-usage-examples Vis 0.2.4
vscodeintellicode Vis 1.2.28
vscode-java-debug vsc 0.44.0
vscode-java-dependency vsc 0.21.0
vscode-java-pack vsc 0.25.3
vscode-java-test vsc 0.37.1
vscode-maven vsc 0.39.0
php-debug xde 1.28.0
php-pack xde 1.0.3
php-intellisense zob 1.0.11

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
2144e591:30553903
vscccc:30566498
pyindex848:30577860
fc301958:30573243

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lszomorucommented, Dec 6, 2022

The git for-each-ref that is being executed is not related to the “Tags” window but it is one of the git commands that is being executed to keep the data model up-to-date. In the upcoming release of VS Code we have made some changes so that some of the core operations in the Source Control view (ex: stage, un-stage, discard changes, commit) optimistically update the state of the view before the data model is updated. That is the first steps in our effort to make the Source Control view snappier with more improvements on the way.

0reactions
PixelDuckcommented, Dec 5, 2022

Same for me on a large project: 22s

2022-12-05 13:52:09.824 [info] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [22716ms]

If I run the command externally it is taking the same time to execute it but the project has more than 12k tags So if we can disable the tag window that I am not using, this will be great hiding the tag views is not solving the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome stalls request for 15 seconds - angular - Stack Overflow
In my case, it happens when the app hits an internal API, and the server-side logs are totally normal for stalled requests (i.e....
Read more >
Chrome stalls request for 15 seconds · Issue #21090 - GitHub
We have a angular 5 app that randomly stalls the request for 15 seconds. The problem is only in chrome. The request dosent...
Read more >
Car Intermittent Stalling Issues (Diagnosing) - Brake & Front End
COMMON CAUSES Common causes of intermittent stalling may include a bad idle speed control (ISC) system, low fuel pressure, loss of ignition, vacuum...
Read more >
SSD intermittent stall (100% busy for 15 seconds) - Super User
Disk access on my new computer (Windows 10) often freezes for ~15 seconds. It might happen more often when concatenating files on disk...
Read more >
12 Reasons Why Your Car Starts Then Dies (With Fixes)
12 Reasons Why My Car Starts Then Dies. Bad Idle Air Control Valve; Severe Vacuum leak; Anti-Theft Alarm System Issue; Dirty Or Faulty...
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