Results 1 to 4 of 4

Thread: Memeory Leak Visual Studio or Git pack

  1. #1

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Memeory Leak Visual Studio or Git pack

    Please move accordingly if needed.

    As this is happening more and more and as I saw it might have to do with visual studio, I'm opening this. Also note I have all the update packs. VS 2019 Community 16.11.42

    I quote:
    "When I turn the visual studio, sometimes it give 3 lines of error on the upper corner and then complains about a low memory thing and the screen turns black!
    After that I connect and disconnect the HDMI cable and the screen turns back on and after that the PC is semi responsive. P.e. I cannot do a copy paste of close the visual studio properly."

    I got the log here:

    Code:
     <record>1112</record>
        <time>2024/12/19 08:41:50.770</time>
        <type>Error</type>
        <source>UserConnection</source>
        <description>Unexpected exception Exception of type &apos;System.OutOfMemoryException&apos; was thrown.    at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.DrainEventQueue()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.RaiseEvents(String[] propertyNames)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserSession.&lt;ConnectAndInitializeSessionAsync&gt;d__31.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.&lt;ConnectAsyncImpl&gt;d__48.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.&lt;ConnectAsync&gt;d__37.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.&lt;PollConnectAsync&gt;d__49.MoveNext() for IdeUser</description>
      </entry>
      <entry>
        <record>1113</record>
        <time>2024/12/19 08:41:50.857</time>
        <type>Information</type>
        <source>VisualStudio</source>
        <description>Begin package load [GitContextPackage]</description>
        <guid>{565515AD-F4C1-4D59-BC14-AE77396DDDD7}</guid>
      </entry>
      <entry>
        <record>1114</record>
        <time>2024/12/19 08:41:50.872</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>SetSite failed for package [GitContextPackage]Source: &apos;GitHub.VisualStudio&apos; Description: Exception of type &apos;System.OutOfMemoryException&apos; was thrown.&#x000D;&#x000A;System.OutOfMemoryException: Exception of type &apos;System.OutOfMemoryException&apos; was thrown.&#x000D;&#x000A;   at GitHub.VisualStudio.GitContextPackage.&lt;InitializeAsync&gt;d__0.MoveNext()&#x000D;&#x000A;   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine&amp; stateMachine)&#x000D;&#x000A;   at GitHub.VisualStudio.GitContextPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass16_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.&lt;JoinAsync&gt;d__76.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()</description>
        <guid>{565515AD-F4C1-4D59-BC14-AE77396DDDD7}</guid>
        <hr>8007000e - E_OUTOFMEMORY</hr>
        <errorinfo></errorinfo>
      </entry>
      <entry>
        <record>1115</record>
        <time>2024/12/19 08:41:50.876</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>End package load [GitContextPackage]</description>
        <guid>{565515AD-F4C1-4D59-BC14-AE77396DDDD7}</guid>
        <hr>8007000e - E_OUTOFMEMORY</hr>
        <errorinfo></errorinfo>
      </entry>
    </activity>
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  2. #2

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Memeory Leak Visual Studio or Git pack

    OK I saw on the logs that I have various SQL servers consuming memory so I disabled some to see what will go on...
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: Memeory Leak Visual Studio or Git pack

    How many SQL Servers? I don't think they take up a whole lot when they aren't doing much. I may have three different versions installed on a system with unimpressive amounts of memory, and they don't seem to cause any trouble. Only one is truly active.
    My usual boring signature: Nothing

  4. #4

    Thread Starter
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Memeory Leak Visual Studio or Git pack

    You talk the talk but do you walk the walk?

    I'm not talking about SSMS I'm talking about the actual SQL server on the PC.
    Here is a file log from the PC showing the top 3 memory consumptions and SQL is in the first rack

    " Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: devenv.exe (32432) consumed 564305920 bytes, sqlservr.exe (7804) consumed 563318784 bytes, and devenv.exe (16828) consumed 551432192 bytes. "

    That is close to x3 SQL's so close to 2GB. So if I'm able to get rid of 2gb just standing there I'm doing it.

    Of course seen that devenv (aka VS) has 2 on the top 3 I'm assuming that it's "killing" the PC slowly so it raises more on my list the leaked VS component theory.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width