Multiple NodeJsEnvironments
@vmoroz y travaille déjà.
Depuis le 14/3/2025.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
We had a project that was performing interop from .NET to JS using version 0.8.20 but were getting a couple of intermittent errors when trying to run outside of our development environment.
The two errors we are getting are:
- Already initialized. The
initializefunction can be used only once. - The JS reference cannot be accessed from the current thread.
We tried to resolve this by updating to the latest nuget packages but it looks like there have been some breaking changes and the docs are no longer up-to-date.
We are using DI and used to store NodeJsPlatform as a singleton and register NodeJsEnvironment as scoped and pass this into another scoped service that executes some JavaScript to render a PDF report.
We have now replaced this with NodeEmbeddingPlatform as a singleton which is passed into the scoped report generation service which then creates a NodeEmbeddingThreadRuntime via platform.CreateThreadRuntime(); and executes await threadRuntime.Run(async () =>...
With the latest code when trying to create the NodeEmbeddingPlatform we get the following error:
"System.EntryPointNotFoundException : Unable to find an entry point named 'node_embedding_platform_create' in DLL."
Could someone please give us some hints as to how to get the latest version working and any pointers as to what our initial issues may be related to?
- Langage dominant
- C#
- Étoiles
- 787
- Forks
- 80
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoft/node-api-dotnet
-
Difficulté 1/5 1-3 heures Accessibilité débutants 88/100
microsoft/node-api-dotnet#484 ·
-
Embedding args occasionally get trailing garbage on .NET (missing null terminator on a pooled buffer)Peut-être pris @tolmachev-pravo l’a pris il y a 94 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
microsoft/node-api-dotnet#481 ·
-
JSError.ThrowError(Exception) aborts the process when a Worker terminates during a .NET callPeut-être pris @GalaxiasKyklos l’a pris il y a 3 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 18/100
microsoft/node-api-dotnet#505 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 70/100
microsoft/node-api-dotnet#504 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 82/100
microsoft/node-api-dotnet#502 ·
Toutes les issues de microsoft/node-api-dotnet
Issues similaires
-
ASP.NET Core container quickstart: `docker-run: debug` task sample is missing its closing braceOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100
microsoft/vscode-docs#10499 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
python triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
microsoft/semantic-kernel#14615 ·
Les mainteneurs répondent en général sous 3 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
vzeol/DeployCraft#125 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
apache/arrow-adbc#4915 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour