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

onnxruntime causing high CPU while typing in Visual Studio 17.8.4 #19132

Open
Shashank231190 opened this issue Jan 13, 2024 · 2 comments
Open
Labels
core runtime issues related to core runtime platform:windows issues related to the Windows platform stale issues that have not been addressed in a while; categorized by a bot

Comments

@Shashank231190
Copy link

Shashank231190 commented Jan 13, 2024

Describe the issue

Whenever I am typing in visual studio version 17.8.4 its starts consuming high CPU.
Is there any way I can stop it ?

Its loaded in process
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\ServiceHub\Hosts\ServiceHub.Host.netfx.x64\ServiceHub.IntellicodeModelService.exe

I have collected the dump by using procdump by using command -

procdump -n 3 -s 2 -c 10 4776

0:007> !runaway
User Mode Time
Thread Time
5:2150 0 days 0:00:19.703
6:858 0 days 0:00:15.015
7:298c 0 days 0:00:14.109

Stack for high CPU.

Call Site

00 ntdll!ZwWaitForAlertByThreadId
01 ntdll!RtlSleepConditionVariableSRW
02 KERNELBASE!SleepConditionVariableSRW
03 onnxruntime!OrtSessionOptionsAppendExecutionProvider_CPU
04 onnxruntime!OrtSessionOptionsAppendExecutionProvider_CPU
05 onnxruntime!OrtSessionOptionsAppendExecutionProvider_CPU
06 ucrtbase!thread_start<unsigned int (__cdecl*)(void *),1>
07 kernel32!BaseThreadInitThunk
08 ntdll!RtlUserThreadStart`

To reproduce

  1. Start visual studio.
  2. Start a new C# project, Console application [.NET Framework]
  3. Start typing in visual studio it will automatically start consuming CPU.

Urgency

I am not able to code anything on visual studio

Platform

Windows

OS Version

Windows 10

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.14.23.224

ONNX Runtime API

C#

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

@github-actions github-actions bot added the platform:windows issues related to the Windows platform label Jan 13, 2024
@Shashank231190
Copy link
Author

I disabled features in Intellicode section in visual studio Tools -> options -> Intellicode -> general and it stopped spiking the CPU.
However now, ServiceHub.RoslynCodeAnalysisService.exe has started spiking now.

Followed this link : https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-performance-tips-and-tricks?view=vs-2022#managed-language-service-roslyn

Found I don't have CodeLens feature enabled.

@snnn snnn added the core runtime issues related to core runtime label Jan 14, 2024
Copy link
Contributor

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.

@github-actions github-actions bot added the stale issues that have not been addressed in a while; categorized by a bot label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core runtime issues related to core runtime platform:windows issues related to the Windows platform stale issues that have not been addressed in a while; categorized by a bot
Projects
None yet
Development

No branches or pull requests

2 participants