Skip to content
Discussions/App Development/ScenarioBackendException in Daml Studio error againForum ↗

ScenarioBackendException in Daml Studio error again

App Development19 posts608 views10 likesLast activity Jan 2022
GY
gyorgybalazsiOP
Dec 2021

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.

CO
cocreature
Dec 2021

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?

GY
gyorgybalazsi
Dec 2021

Using the latest SDK.

No, sorry, this is a commercial project.

Reload window also helps for a while.

CO
cocreature
Dec 2021

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

GY
gyorgybalazsi
Dec 2021

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

GY
gyorgybalazsi
Dec 2021

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

CO
cocreature
Dec 2021

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.

GY
gyorgybalazsi
Dec 2021
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

GY
gyorgybalazsi
Dec 2021

GY
gyorgybalazsi
Dec 2021

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
CO
cocreature
Dec 2021

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.

GY
gyorgybalazsi
Dec 2021
cocreature:

reproduce the Failed to create scenario context error

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

JR
Jroussel13
Dec 2021

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.

CO
cocreature
Dec 2021

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.

JR
Jroussel13
Dec 2021

Gist of entire log: daml.error · GitHub

SH
Shaul
Dec 2021

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

FI
fil
Dec 2021

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

CO
cocreature
Jan 2022

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.

CO
cocreature
Jan 2022

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

← Back to Discussions