-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Continual CPU usage from typingsInstaller process #36950
Comments
Can you share the output of Also, does this reproduce in the latest VS Code insiders build? |
Version: Code 1.42.1 (c47d83b293181d9be64f27ff093689e8e7aed054, 2020-02-11T14:50:36.977Z) OS Version: Linux x64 4.15.0-88-generic CPUs: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (4 x 2770) Memory (System): 7.71GB (2.04GB free) Load (avg): 3, 2, 1 VM: 0% Screen Reader: no Process Argv: --disable-gpu --unity-launch GPU Status: 2d_canvas: unavailable_software flash_3d: disabled_software flash_stage3d: disabled_software flash_stage3d_baseline: disabled_software gpu_compositing: disabled_software metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: disabled_off rasterization: disabled_software skia_renderer: disabled_off surface_control: disabled_off surface_synchronization: enabled_on video_decode: disabled_software viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off webgl: unavailable_software webgl2: unavailable_software CPU % Mem MB PID Process 0 134 9036 code main 0 32 9040 zygote 0 8 9042 zygote 0 79 9066 gpu-process 0 8 9074 broker 0 110 9148 shared-process 0 0 9372 /bin/sh -c /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 9373 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 205 9206 window (Form.js - world-countries - Visual Studio Code) 0 79 9227 extensionHost 0 229 9257 electron_node tsserver.js 16 79 9269 electron_node typingsInstaller.js typesMap.js 0 55 9243 watcherService Workspace Stats: | Window (Form.js - world-countries - Visual Studio Code) | Folder (world-countries): 55 files | File types: js(12) scss(10) json(6) map(5) html(2) txt(2) css(2) | gitignore(1) md(1) LICENSE(1) | Conf files: package.json(1) settings.json(1)
I didn't try that before, I'll try now and get back to you asap. |
I tried it and it is slightly better but the same problem remains. Moreover I think my OS become sluggish as soon as I launched VSCode Insider. [11154:0220/134910.675787:ERROR:sandbox_linux.cc(369)] InitializeSandbox() called with multiple threads in process gpu-process. [main 2020-02-20T11:49:10.699Z] [File Watcher (node.js)] Failed to watch /home/rogue/.config/Code - Insiders/User for changes using fs.watch() (Error: ENOSPC: System limit for number of file watchers reached, watch '/home/rogue/.config/Code - Insiders/User') Version: Code - Insiders 1.43.0-insider (9c341b3d8f2f41277be6dd59e7f4e847e6b594ac, 2020-02-20T05:39:45.923Z) OS Version: Linux x64 4.15.0-88-generic CPUs: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (4 x 2890) Memory (System): 7.71GB (1.13GB free) Load (avg): 2, 1, 1 VM: 0% Screen Reader: no Process Argv: --no-sandbox --unity-launch GPU Status: 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: disabled_software skia_renderer: disabled_off_ok video_decode: unavailable_off viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled CPU % Mem MB PID Process 0 118 10202 code-insiders main 0 32 10205 zygote 0 95 10226 gpu-process 0 47 10242 utility 0 103 10317 shared-process 0 0 11177 /bin/sh -c /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 11178 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 245 10575 window (● WorldCountriesPage.js - world-countries - Visual Studio Code - Insiders) 0 95 10597 extensionHost 0 87 10674 electron_node tsserver.js 0 331 10675 electron_node tsserver.js 7 126 10693 electron_node typingsInstaller.js typesMap.js 0 63 10611 watcherService Workspace Stats: | Window (● WorldCountriesPage.js - world-countries - Visual Studio Code - Insiders) | Folder (world-countries): 55 files | File types: js(12) scss(10) json(6) map(5) html(2) txt(2) css(2) | gitignore(1) md(1) LICENSE(1) | Conf files: package.json(1) settings.json(1) |
@MohamedWagih96 Is it the Also, does high cpu usage remains even when you stop doing anything in the editor for a minute? Some cpu usage is expected while editing files but it should die down once editing stops |
@mjbvz Yes it is always high even while i'm not doing any coding. Matter of fact the results I posted were when I just opened the laptop and nothing else was running except VSCode. |
Is it always the |
Yes |
Moving upstream. A TS team member should be able to help you investigate why the typings installer process cpu usage never dies down |
Hello, Are there any updates on this issue? |
Ok, So this problem now only occurs with ReactJS projects no matter how small or big the project is. |
Ok so it seems this answer solves the problem completely. |
Duplicate of #25104 You can upload logs by following these steps:
|
@sheetalkamat How exactly am I supposed to share these log files? Is there any conventional way of doing it? Because |
You can upload logs by following these steps:
|
Hello, Are there any updates on this issue? |
The answer here helped me, but is there any better solution without compromising with the features available yet? |
Hei, I just want to let you know that the stackoverflow answer mentioned by @dixitanmol97 above worked for me without breaking the autocomplete feature. So in my case, I had a:
I had the same problem as mentioned above with vscode takes up constant cpu usage around 30%. I search around, then found that somehow VSCode built-in typescript extension watches node_modules folder outside the project (according to this comment ) . I also add some setting mentioned in this comment . Summary I add these commands to my vscode workspace settings:
|
Steps to Reproduce:
Does this issue occur when all extensions are disabled?:
No, As a matter of fact I disabled all the built-in extensions except Typescript and Javascript language features extension and the problem remains untacked but if I disabled it no more loud fans nor overheat.
Also, I tried the
code --status
command mentioned here and I found that extensionHost is listed in the output and as they statedFinally, I monitored the CPU usage % while running VSCode with and without the mentioned extension I found the following:
This issue overheats my laptop and I think that was not intended I mean why only this extension is causing me issues while the others are not? and no I can't just disable it and move on because I need it. The whole point of me using VSCode is this feature.
*P.S: I tried clean install and disabled gpu acceleration nothing worked.
The text was updated successfully, but these errors were encountered: