ScenarioBackendException in Daml Studio error again

This error was discussed on this forum several times.

@cocreature suggested to set gRPC timeout to 60 seconds.

It doesn’t help, even if I set the limit to 120.

What else can cause the problem?

The project isn’t big.

Restarting VSCode helps - until I modify the code, then the error appears again.

1 Like

Hi @gyorgybalazsi, sorry to hear that you’re having issues. Which SDK version are you using? Would it be possible to share the project here on the forum?

Using the latest SDK.

No, sorry, this is a commercial project.

Reload window also helps for a while.

Latest as in 1.17.1 or the just (yesterday) released SDK 1.18.0? Can you reproduce it on both?

Latest as 1.18.0, will try going back to the previous version.

It seems that with 1.17.1 the error doesn’t come up, even if I delete the gRPC timeout specification.

It would be great if you could enable debug logging in the vscode extension settings and send us the output you get from View -> Output and then select Daml Language Server in the output.

2 Likes
Daml Language Server Output

2021-12-13 14:19:39.99 [INFO] [LanguageServer]
SDK version: 1.18.0

2021-12-13 14:19:39.99 [INFO] [LanguageServer]
Registering ide configuration: IdeConfiguration {workspaceFolders = fromList [NormalizedUri (-561958332302759828) “file:///Users/gyorgybalazsi/SE2/MVP/tests”]}

2021-12-13 14:19:40.00 [INFO] [LanguageServer]
Opened text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/Person/PersonTest.daml
[Error - 3:19:40 PM] lsp:no handler for: SInitialized

2021-12-13 14:19:40.26 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/Person/PersonTest.daml

2021-12-13 14:19:41.64 [INFO] [LanguageServer]
Hover request at position 6:14 in file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/Person/PersonTest.daml

2021-12-13 14:19:41.94 [INFO] [LanguageServer]
Hover request at position 6:13 in file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/Person/PersonTest.daml

2021-12-13 14:19:50.10 [INFO] [LanguageServer]
Opened text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/TestUtils/TestUtils.daml

2021-12-13 14:19:50.39 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/TestUtils/TestUtils.daml

2021-12-13 14:19:57.31 [INFO] [LanguageServer]
Opened text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/PolicyTest.daml

2021-12-13 14:19:59.95 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/PolicyTest.daml

2021-12-13 14:20:06.52 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/Person/PersonTest.daml

2021-12-13 14:20:14.99 [INFO] [LanguageServer]
Closed text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/Person/PersonTest.daml

2021-12-13 14:20:14.99 [INFO] [LanguageServer]
Opened text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:20:16.42 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:20:25.38 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:20:25.54 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:20:27.11 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:20:32.69 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/PolicyTest.daml

2021-12-13 14:20:45.79 [INFO] [LanguageServer]
Hover request at position 8:31 in file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Policy/PolicyTest.daml

2021-12-13 14:21:45.85 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:48.61 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:49.13 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:49.60 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:50.00 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:50.66 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:50.98 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:51.07 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:51.39 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:51.50 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:51.64 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:51.96 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:52.30 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:52.49 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:52.57 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:52.75 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:52.92 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:53.02 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:53.29 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:53.36 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:53.61 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:53.69 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:53.93 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:54.25 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:54.36 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:54.49 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:54.71 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:54.81 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:54.89 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:55.13 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:55.33 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:55.57 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:55.59 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:55.75 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:55.99 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:56.09 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:56.21 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:56.34 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:56.60 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:57.09 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:57.34 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:57.39 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:57.58 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:57.72 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:57.96 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:58.12 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:58.22 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:58.31 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:58.55 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:58.76 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:58.84 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:59.08 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:59.27 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:59.32 [INFO] [LanguageServer]
Modified text document: file:///Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:21:59.57 [INFO] [LanguageServer]
CodeLens request for file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:22:01.76 [INFO] [LanguageServer]
Hover request at position 1:25 in file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:23:24.26 [INFO] [LanguageServer]
Hover request at position 1:27 in file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

2021-12-13 14:23:24.42 [INFO] [LanguageServer]
Hover request at position 1:26 in file: /Users/gyorgybalazsi/SE2/MVP/tests/daml/Person/PersonTest.daml

This error persists even when I go back to SDK version 1.17.1

SDK 1.18.0 has been released!
See https://github.com/digital-asset/daml/releases/tag/v1.18.0 for details.

[Error - 3:26:31 PM] lsp:no handler for:  SInitialized

That’s a harmless warning, can you also reproduce the Failed to create scenario context error? If not, I might have some idea what is causing it.

If you mean by this if I can see such in error when using SDK 1.17.1, the answer is no.

I got this same bug attempting to follow this tutorial: Fix my bike: Use Daml to model a real life example | by KC Tam | Medium. All I did was install an empty-skeleton template and try to follow the directions.
I switched from SDK 1.18.0 to 1.17.1 and everything works just fine.

2 Likes

Hi, can you please edit .vscode/settings.json within your vscode workspace to contains this

{
   "daml-language-server.trace.server": "verbose"
}

and then send us the logs from View -> Output and select Daml Language Server in the drop down.

This will contain (parts of) your code so if you are worried about IP either replace that with placeholders or if you have a commercial support license submit it as a ticket in our support portal.

1 Like

Gist of entire log: daml.error · GitHub

I’m getting this error pretty consistently now on the latest snapshot and 1.dev
Gist with code and trace

2 Likes

@cocreature this is consistent with what I’m seeing: it happens with any arbitrarily small project…

Hi, just an update we’re still working on that and tracking this in [BUG] Script service timeout errors · Issue #12194 · digital-asset/daml · GitHub.

1 Like

We have a new snapshot Release 1.18.1-snapshot.20220106.8429.0.ea344666 · digital-asset/daml · GitHub which should fix this issue.

1 Like