microsoft / microsoft/node-api-dotnet
Cannot create multiple NodeJSEnvironment for one NodeJSPlatform
Offen
@vmoroz arbeitet bereits daran.
Seit 06.8.2024.
libnode
- Vorherrschende Sprache
- C#
- Sterne
- 783
- Forks
- 80
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
The docs suggest that multiple environments can exist concurrently for the sample platform.
I get an assertion failure from this simple console application:
using Microsoft.JavaScript.NodeApi.Runtime;
NodejsPlatform platform = new NodejsPlatform("libnode.dll");
NodejsEnvironment env1 = platform.CreateEnvironment();
NodejsEnvironment env2 = platform.CreateEnvironment();
C:\Users\me\Desktop\libnode\src\inspector_agent.cc:704: Assertion `(start_io_thread_async_initialized.exchange(true)) == (false)' failed.
1: 00007FF961841CAF v8_inspector::V8StackTrace::V8StackTrace+649598
...
libnode was built with the instructions and is using the suggested napi-libnode-v20.9.0 branch.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.