Open MiguelElGallo opened 8 months ago
@MiguelElGallo take a look at #10245.
My docker version says: Docker version 24.0.5, build ced0996 Is this good?
@anthony-c-martin I read #10245 : I do not use Docker Desktop, I use Rancher Desktop. I Rancher Desktop, if you go to Settings->Virtual Machine->Emulation there are 2 options:
It was in QEMU, now I changed to VZ. (They suggest something like that for Docker) Just as comment, is easily 5 times faster, but still, the moment I clicked a BICEP file , it crashed.
Any ideas? Cheers!
In the Process monitor now I see a process called "virtual machine Service for limactl.ventura" I mention this because in #10245 , lima is mentioned many times.
The log is:
2024-01-12T19:14:42.177Z info: Current log level: debug.
2024-01-12T19:14:42.185Z info: Acquiring dotnet runtime...
2024-01-12T19:15:48.497Z debug: Found dotnet command at '/home/vscode/.vscode-server/data/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/7.0.15~x64/dotnet'.
2024-01-12T19:15:48.498Z info: Launching Bicep language service...
2024-01-12T19:15:48.498Z debug: Found language server at '/home/vscode/.vscode-server/extensions/ms-azuretools.vscode-bicep-0.24.24/bicepLanguageServer/Bicep.LangServer.dll'.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Regex3_Scan(RegexRunner, ReadOnlySpan`1)
7:15:49 PM: Error: Connection closed
[Error - 7:15:49 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 7:15:49 PM] Connection to server got closed. Server will restart.
true
[Error - 7:15:49 PM] Bicep client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:49 PM] Server process exited with signal SIGABRT.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Regex3_Scan(RegexRunner, ReadOnlySpan`1)
7:15:50 PM: Error: Connection closed
[Error - 7:15:50 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 7:15:50 PM] Connection to server got closed. Server will restart.
true
[Error - 7:15:50 PM] Bicep client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
7:15:50 PM: Error: Pending response rejected since connection got disposed
[Error - 7:15:50 PM] Server process exited with signal SIGABRT.
2024-01-12T19:15:50.881Z error: Pending response rejected since connection got disposed
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Regex3_Scan(RegexRunner, ReadOnlySpan`1)
7:15:52 PM: Error: Connection closed
[Error - 7:15:52 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 7:15:52 PM] Connection to server got closed. Server will restart.
true
[Error - 7:15:52 PM] Bicep client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:52 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:52 PM] Server process exited with signal SIGABRT.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Regex3_Scan(RegexRunner, ReadOnlySpan`1)
7:15:53 PM: Error: Connection closed
[Error - 7:15:53 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Info - 7:15:53 PM] Connection to server got closed. Server will restart.
true
[Error - 7:15:53 PM] Bicep client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:53 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:53 PM] Server process exited with signal SIGABRT.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at Regex3_Scan(RegexRunner, ReadOnlySpan`1)
7:15:54 PM: Error: Connection closed
[Error - 7:15:54 PM] Server initialization failed.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:54 PM] The Bicep server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
[Error - 7:15:54 PM] Bicep client: couldn't create connection to server.
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:54 PM] Restarting server failed
Message: Pending response rejected since connection got disposed
Code: -32097
[Error - 7:15:54 PM] Server process exited with signal SIGABRT.
You could try the option recommended here: https://github.com/dotnet/runtime/issues/94909 (the DOTNET_EnableWriteXorExecute
env var).
Ultimately it's going to be hard for us to support emulated architectures, because we're limited by the emulation technologies and dotnet. I've raised #13096 for us to add a disclaimer about this.
Does this occur consistently? Repro steps:
I use the following devcontainter.json:
callback client.ts:270:17 callWithTelemetryAndErrorHandlingSync @microsoft/callWithTelemetryAndErrorHandling.js:68:16 Object.closed client.ts:264:7 LanguageClient.handleConnectionClosed vscode-languageclient/client.js:1164:72 LanguageClient.handleConnectionClosed vscode-languageclient/main.js:180:22 apply vscode-languageclient/client.js:1142:18 CallbackList.call [as invoke] vscode-jsonrpc/events.js:55:39 Emitter.fire vscode-jsonrpc/events.js:117:36 apply vscode-jsonrpc/connection.js:314:26 CallbackList.call [as invoke] vscode-jsonrpc/events.js:55:39 Emitter.fire vscode-jsonrpc/events.js:117:36 SocketMessageWriter.fireClose vscode-jsonrpc/messageWriter.js:42:27 Socket. vscode-jsonrpc/messageWriter.js:74:42