chromium / vs-chromium

A Visual Studio extension containing a collection of tools to help contributing code to the Chromium project.
BSD 3-Clause "New" or "Revised" License
311 stars 90 forks source link

"There was an issue starting the index server" message appears repeatedly. #80

Open RCL opened 3 years ago

RCL commented 3 years ago

Hi,

Vs-Chromium sometimes would refuse to start, stating "There was an issue starting the index server. You may need to restart Visual Studio. One or more errors occurred. Error starting debugger thread. Error creating process from file ".....long path to Extensions folder...\VsChromium.Host.exe": Access is denied".

Restarting Visual Studio does not help. This message can appear for a second Visual Studio instance while the first is still working fine. Once the message appeared, there's no way to go back - you need to reboot (possibly relogin would also help, but I didn't try).

VsChromium.errors is full of messages like

[2021-08-16 22:03:55.8300][VsChromium][234412-3][Warn ] Error accepting connection from server: socket has been disposed.
[2021-08-16 22:03:55.8300][VsChromium][234412-3][Warn ]  Exception Type: System.ObjectDisposedException
[2021-08-16 22:03:55.8300][VsChromium][234412-3][Warn ]  Exception Message: Cannot access a disposed object.\r\nObject name: 'System.Net.Sockets.Socket'.
[2021-08-16 22:03:55.8300][VsChromium][234412-3][Warn ]  +    at System.Net.Sockets.Socket.EndAccept(IAsyncResult asyncResult)
[2021-08-16 22:03:55.8300][VsChromium][234412-3][Warn ]  +    at System.Net.Sockets.TcpListener.EndAcceptTcpClient(IAsyncResult asyncResult)
[2021-08-16 22:03:55.8300][VsChromium][234412-3][Warn ]  +    at VsChromium.ServerProxy.ServerProcessProxy.ClientConnected(IAsyncResult result) in D:\src\projects\vs-chromium\src\VsChromium\ServerProxy\ServerProcessProxy.cs:line 200
[2021-08-16 22:11:13.1240][VsChromium][234668-2][Warn ] Error accepting connection from server: socket has been disposed.
[2021-08-16 22:11:13.1300][VsChromium][234668-2][Warn ]  Exception Type: System.ObjectDisposedException
[2021-08-16 22:11:13.1300][VsChromium][234668-2][Warn ]  Exception Message: Cannot access a disposed object.\r\nObject name: 'System.Net.Sockets.Socket'.
[2021-08-16 22:11:13.1300][VsChromium][234668-2][Warn ]  +    at System.Net.Sockets.Socket.EndAccept(IAsyncResult asyncResult)
[2021-08-16 22:11:13.1300][VsChromium][234668-2][Warn ]  +    at System.Net.Sockets.TcpListener.EndAcceptTcpClient(IAsyncResult asyncResult)
[2021-08-16 22:11:13.1300][VsChromium][234668-2][Warn ]  +    at VsChromium.ServerProxy.ServerProcessProxy.ClientConnected(IAsyncResult result) in D:\src\projects\vs-chromium\src\VsChromium\ServerProxy\ServerProcessProxy.cs:line 200

As for the log itself it has pretty much the same information as the window:

[2021-08-16 22:10:47.6239][VsChromium][248828-2][Info ] Opening TCP server socket for server process client connection.
[2021-08-16 22:10:47.6239][VsChromium][248828-2][Info ] TCP server started on port 64376.
[2021-08-16 22:10:47.6279][VsChromium][248828-5][Info ] Creating VsChromiumHost process.
[2021-08-16 22:10:47.6279][VsChromium][248828-5][Info ]   Path=C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W\VsChromium.Host.exe
[2021-08-16 22:10:47.6279][VsChromium][248828-5][Info ]   Server path=C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W\VsChromium.Server.exe
[2021-08-16 22:10:47.6279][VsChromium][248828-5][Info ]   Arguments="C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W\VsChromium.Server.exe" "64376" 
[2021-08-16 22:10:47.6279][VsChromium][248828-5][Info ] CreateProcess: C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W\VsChromium.Host.exe "C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W\VsChromium.Server.exe" "64376" 
[2021-08-16 22:10:47.6279][VsChromium][248828-6][Info ] CreateProcessWithStartInfo: Entry point.
[2021-08-16 22:10:47.6279][VsChromium][248828-6][Info ] CreateProcessWithStartInfo: command line is "C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W\VsChromium.Host.exe" "C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W\VsChromium.Server.exe" "64376" .
[2021-08-16 22:10:47.6279][VsChromium][248828-6][Info ] CreateProcessWithStartInfo: Creation flags.
[2021-08-16 22:10:47.6279][VsChromium][248828-6][Info ] CreateProcessWithStartInfo: Working directory: C:\USERS\USERNAME\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\16.0_884B1BFE\EXTENSIONS\HVV0I35D.B3W.
[2021-08-16 22:10:47.6279][VsChromium][248828-6][Info ] CreateProcessWithStartInfo: Setting DEBUG_PROCESS flag.
[2021-08-16 22:10:47.6279][VsChromium][248828-6][Info ] CreateProcessWithStartInfo: Calling Win32 CreateProcess.
[2021-08-16 22:10:47.6279][VsChromium][248828-6][Info ] CreateProcessWithStartInfo: CreateProcess result: Success=False-LastError=5.