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 'System.OutOfMemoryException' was thrown. at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.DrainEventQueue()
 at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.RaiseEvents(String[] propertyNames)
 at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeUserSession.<ConnectAndInitializeSessionAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.<ConnectAsyncImpl>d__48.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.<ConnectAsync>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession.<PollConnectAsync>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: 'GitHub.VisualStudio' Description: Exception of type 'System.OutOfMemoryException' was thrown.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
 at GitHub.VisualStudio.GitContextPackage.<InitializeAsync>d__0.MoveNext()
 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
 at GitHub.VisualStudio.GitContextPackage.InitializeAsync(CancellationToken cancellationToken, IProgress`1 progress)
 at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__76.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)
 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>




Reply With Quote