Giter Site home page Giter Site logo

electron-edge-js-quick-start's People

Contributors

agracio avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electron-edge-js-quick-start's Issues

Issue while running electron-edge-js-quick-start in Mac

We are trying to run electron edge js quick start sample in .Net 6/.Net3/.Net2/.Net1 environment in Mac.

Steps we followed

  • Installed above versions of .NET Run time installer
  • Extracted and tried running source.
  • We ran npm install and npm start
  • We're getting the below error.

Error we faced.

image

node version mismatch

I'm getting this when running either electron-edge-js or electron-edge-js-quick-start on Ubuntu 17.10:

Uncaught Error: The module '/home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/build/Release/edge_coreclr.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).

node version is 6.12.3. What could be the issue?

The edge module has not been pre-compiled for node.js version

Hi, I've a VSCode extension that uses electron-edge-js. It worked fine until last week. Then I started getting the following error - The edge module has not been pre-compiled for node.js version v12.18.3. You must build a custom version of edge.node.
I had to manually update the electron-edge-js version in package.json to 12.18.5 to resolve this issue and release a new version of the extension. Is there a way to automate this?

TypeError: edge.initializeClrFunc is not a function

This seems to be a popular one with edge.js. Running Ubuntu 17.10, node 8.11.1, and using dotnet build to get the dlls.

Error log in Electron:

Uncaught TypeError: edge.initializeClrFunc is not a function
    at Object.exports.func (/home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/lib/edge.js:181:17)
    at Object.<anonymous> (/home/vadi/Programs/electron-edge-js-quick-start/renderer.js:10:34)
    at Object.<anonymous> (/home/vadi/Programs/electron-edge-js-quick-start/renderer.js:59:3)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)

Error in the console:

CoreClrEmbedding::Initialize - Failed to initialize CoreCLR, HRESULT: 0x80070057

Build log:

vadi@volga:~/Programs$ git clone https://github.com/agracio/electron-edge-js-quick-start.git
Cloning into 'electron-edge-js-quick-start'...
remote: Counting objects: 40, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 40 (delta 3), reused 8 (delta 2), pack-reused 28
Unpacking objects: 100% (40/40), done.
vadi@volga:~/Programs$ cd electron-edge-js-quick-start/
vadi@volga:~/Programs/electron-edge-js-quick-start$ npm install

> [email protected] install /home/vadi/Programs/electron-edge-js-quick-start/node_modules/edge-cs
> node tools/install.js

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.
Microsoft (R) Build Engine version 15.7.145.53551 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.

> [email protected] install /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js
> node tools/install.js

make: Entering directory '/home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/build'
  TOUCH Release/obj.target/edge_nativeclr.stamp
  CXX(target) Release/obj.target/edge_coreclr/src/common/v8synchronizationcontext.o
  CXX(target) Release/obj.target/edge_coreclr/src/common/callbackhelper.o
  CXX(target) Release/obj.target/edge_coreclr/src/common/edge.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrembedding.o
../src/CoreCLREmbedding/coreclrembedding.cpp: In static member function ‘static HRESULT CoreClrEmbedding::Initialize(BOOL)’:
../src/CoreCLREmbedding/coreclrembedding.cpp:581:7: warning: variable ‘foundEdgeJs’ set but not used [-Wunused-but-set-variable]
  bool foundEdgeJs = false;
       ^~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-unused-private-field’
cc1plus: warning: unrecognized command line option ‘-Wno-redundant-move’
cc1plus: warning: unrecognized command line option ‘-Wno-mismatched-tags’
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrfunc.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrnodejsfunc.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrfuncinvokecontext.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/coreclrnodejsfuncinvokecontext.o
  CXX(target) Release/obj.target/edge_coreclr/src/common/utils.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/pal/pal_utils.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/pal/trace.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/fxr/fx_ver.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/fxr/fx_muxer.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/json/casablanca/src/json/json.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/json/casablanca/src/json/json_parsing.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/json/casablanca/src/json/json_serialization.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/json/casablanca/src/utilities/asyncrt_utils.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/deps/deps_format.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/deps/deps_entry.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/deps/deps_resolver.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/host/args.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/host/coreclr.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/host/libhost.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/host/runtime_config.o
  CXX(target) Release/obj.target/edge_coreclr/src/CoreCLREmbedding/pal/pal.unix.o
  SOLINK_MODULE(target) Release/obj.target/edge_coreclr.node
  COPY Release/edge_coreclr.node
  ACTION binding_gyp_build_managed_target_restore_bootstrap_packages lib/bootstrap/project.lock.json
  Restoring packages for /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/src/double/Edge.js/Edge.js.csproj...
  Restoring packages for /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/lib/bootstrap/bootstrap.csproj...
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/lib/bootstrap/obj/bootstrap.csproj.nuget.g.props.
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/lib/bootstrap/obj/bootstrap.csproj.nuget.g.targets.
  Restore completed in 447.42 ms for /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/lib/bootstrap/bootstrap.csproj.
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/src/double/Edge.js/obj/Edge.js.csproj.nuget.g.props.
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/src/double/Edge.js/obj/Edge.js.csproj.nuget.g.targets.
  Restore completed in 503.34 ms for /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/src/double/Edge.js/Edge.js.csproj.
  ACTION binding_gyp_build_managed_target_compile_bootstrap lib/bootstrap/bin/Release/netcoreapp1.1/bootstrap.dll
Microsoft (R) Build Engine version 15.7.145.53551 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 49.4 ms for /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/lib/bootstrap/bootstrap.csproj.
  Restore completed in 46.29 ms for /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/src/double/Edge.js/Edge.js.csproj.
  You are working with a preview version of the .NET Core SDK. You can define the SDK version via a global.json file in the current project. More at https://go.microsoft.com/fwlink/?linkid=869452
  Edge.js -> /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/src/double/Edge.js/bin/Release/netcoreapp1.1/EdgeJs.dll
  bootstrap -> /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/lib/bootstrap/bin/Release/netcoreapp1.1/bootstrap.dll

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.79
  TOUCH Release/obj.target/build_managed.stamp
make: Leaving directory '/home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron-edge-js/build'

> [email protected] postinstall /home/vadi/Programs/electron-edge-js-quick-start/node_modules/electron
> node install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
added 156 packages in 11.453s
vadi@volga:~/Programs/electron-edge-js-quick-start$ cd src/
vadi@volga:~/Programs/electron-edge-js-quick-start/src$ dotnet build
Microsoft (R) Build Engine version 15.7.145.53551 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restoring packages for /home/vadi/Programs/electron-edge-js-quick-start/src/ExternalLibrary/ExternalLibrary.csproj...
  Restoring packages for /home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj...
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/src/ExternalLibrary/obj/ExternalLibrary.csproj.nuget.g.props.
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/src/ExternalLibrary/obj/ExternalLibrary.csproj.nuget.g.targets.
  Restore completed in 151.48 ms for /home/vadi/Programs/electron-edge-js-quick-start/src/ExternalLibrary/ExternalLibrary.csproj.
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/obj/QuickStart.Core.csproj.nuget.g.props.
  Generating MSBuild file /home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/obj/QuickStart.Core.csproj.nuget.g.targets.
  Restore completed in 274.48 ms for /home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj.
  You are working with a preview version of the .NET Core SDK. You can define the SDK version via a global.json file in the current project. More at https://go.microsoft.com/fwlink/?linkid=869452
  You are working with a preview version of the .NET Core SDK. You can define the SDK version via a global.json file in the current project. More at https://go.microsoft.com/fwlink/?linkid=869452
  ExternalLibrary -> /home/vadi/Programs/electron-edge-js-quick-start/src/ExternalLibrary/bin/Debug/netcoreapp2.0/ExternalLibrary.dll
LocalMethods.cs(10,35): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj]
LocalMethods.cs(45,35): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj]
LocalMethods.cs(50,35): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj]
  QuickStart.Core -> /home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/bin/Debug/netcoreapp2.0/QuickStart.Core.dll

Build succeeded.

LocalMethods.cs(10,35): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj]
LocalMethods.cs(45,35): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj]
LocalMethods.cs(50,35): warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. [/home/vadi/Programs/electron-edge-js-quick-start/src/QuickStart.Core/QuickStart.Core.csproj]
    3 Warning(s)
    0 Error(s)

Time Elapsed 00:00:02.04
vadi@volga:~/Programs/electron-edge-js-quick-start/src$ npm start

> [email protected] start /home/vadi/Programs/electron-edge-js-quick-start
> electron .

CoreClrEmbedding::Initialize - Failed to initialize CoreCLR, HRESULT: 0x80070057

Loading external .Net library

Dear agracio,

I want to load in an external library but I can't get it to work.
The library that I want to load in is the DocX .Net library: DocX

The library is built with Visual Studio 2017

This is the code that I use:
image

And this is the error that I get:

Error at Objects.exports.func. It seems to come from line 8.

Can you explain me how to do this the right way?

Yours Sincerely,

DionDavid

Ubuntu Error

Hi,
I compiled all in .net core 5.0 and when I run npm start I have this error in Electron app:

Uncaught ErrorData: {}HResult: -2146233081HelpLink: nullInnerException: nullMessage: "Cannot set initonly static field '_defaultContext' after type 'Microsoft.Extensions.DependencyModel.DependencyContext' is initialized."Name: "System.FieldAccessException"Source: "System.Private.CoreLib"StackTrace: " at System.RuntimeFieldHandle.SetValue(RtFieldInfo field, Object obj, Object value, RuntimeType fieldType, FieldAttributes fieldAttr, RuntimeType declaringType, Boolean& domainInitialized)↵ at System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)↵ at System.Reflection.FieldInfo.SetValue(Object obj, Object value)↵ at CoreCLREmbedding.EdgeAssemblyResolver.LoadDependencyManifest(String dependencyManifestFile) in /home/roberto/Documents/develop/electron-edge-js-quick-start-master/node_modules/electron-edge-js/src/double/Edge.js/dotnetcore/coreclrembedding.cs:line 247↵ at CoreCLREmbedding.Initialize(IntPtr context, IntPtr exception) in /home/roberto/Documents/develop/electron-edge-js-quick-start-master/node_modules/electron-edge-js/src/double/Edge.js/dotnetcore/coreclrembedding.cs:line 517"TargetSite: {Name: "", DeclaringType: "", ReflectedType: "", MemberType: "", MetadataToken: "", …}message: "Cannot set initonly static field '_defaultContext' after type 'Microsoft.Extensions.DependencyModel.DependencyContext' is initialized."name: "System.FieldAccessException"proto: Error: Cannot set initonly static field '_defaultContext' after type 'Microsoft.Extensions.DependencyModel.DependencyContext' is initialized.
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
at Object.Module._extensions..node (module.js:671:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20)
at Module.load (module.js:561:32)
at tryModuleLoad (module.js:504:12)
at Function.Module._load (module.js:496:3)
at Module.require (module.js:586:17)
at require (internal/module.js:11:18)
at Object. (/home/roberto/Documents/develop/electron-edge-js-quick-start-master/node_modules/electron-edge-js/lib/edge.js:57:10)
at Object. (/home/roberto/Documents/develop/electron-edge-js-quick-start-master/node_modules/electron-edge-js/lib/edge.js:186:3)
/home/roberto/Documents/develop/electron-edge-js-quick-start-master/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:188 Electron Security Warning (Insecure Content-Security-Policy)

standalone application and we are unable to locate the .NET Core SDK

Dear agracio,
I downloaded the electron-edge-js-quick-start project, and after running it, the console will get the following error, indicating that.net is not installed, but it has been installed locally:
Error: This is not a published, standalone application and we are unable to locate the .NET Core SDK. Please make sure that it is installed; see http://microsoft.com/net/core for more details. at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812) at Object.Module._extensions..node (internal/modules/cjs/loader.js:1203:18) at Object.func [as .node] (electron/js2c/asar_bundle.js:5:1812) at Module.load (internal/modules/cjs/loader.js:992:32) at Module._load (internal/modules/cjs/loader.js:885:14) at Function.f._load (electron/js2c/asar_bundle.js:5:12633) at Module.require (internal/modules/cjs/loader.js:1032:19) at require (internal/modules/cjs/helpers.js:72:18) at Object.<anonymous> (D:\work\project\project_code_study\electron-edge-js-quick-start\node_modules\electron-edge-js\lib\edge.js:66:10) at Object.<anonymous> (D:\work\project\project_code_study\electron-edge-js-quick-start\node_modules\electron-edge-js\lib\edge.js:195:3)

图片
图片

System.TypeInitializationException error

Hello,
I really hope if you could help me out with this.

I've used the "Quick start for electron-edge-js module using .NET Core" to get started and it works fine, so I've added Couchbase Lite 2.0.0-db021 (which is a no-sql offline db), and everything runs fine in the library when executed via Unit Test or console app. However, when I attempt to call it from electron-edge-js app I get an exception (see below).

Steps to replicate: Add nuget package for "Couchbase Lite" and "Couchbase.Lite.Support.NetDesktop" (http://mobile.nuget.couchbase.com/nuget/Developer/) "pre-release" to "QuickStart.Core" sample project.

under LocalMethods

public async Task GetAppDomainDirectory(dynamic input)
{
Couchbase.Lite.Support.NetDesktop.Activate();
Couchbase.Lite.Logging.Log.Disabled = true; // throws exception here

      return AppDomain.CurrentDomain.BaseDirectory;
  }

Message
:
"An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)"
Name
:
"System.BadImageFormatException"
Source
:
"System.Private.CoreLib"
StackTrace
:
" at System.Runtime.Loader.AssemblyLoadContext.InternalLoadUnmanagedDllFromPath(String unmanagedDllPath)
↵ at System.Runtime.Loader.AssemblyLoadContext.ResolveUnmanagedDll(String unmanagedDllName, IntPtr gchManagedAssemblyLoadContext)
↵ at LiteCore.Interop.Native.c4log_getDomain(String name, Boolean create)
↵ at Couchbase.Lite.Logging.Log..cctor() in C:\jenkins\workspace\couchbase-lite-net\couchbase-lite-net\src\Couchbase.Lite\Log\Log.cs:line 48"

Electron Edge JS Quickstart not runs in .Net 6 environment

We are trying to run electron edge js quick start sample in .Net 6 environment.

Steps we followed

  1. Installed .NET 6 Run time installer

  2. Extracted and tried running source we get an error. If we uninstall .Net 6 run time installer source runs without any issue.

Can you please confirm electron edge js is compatible with .NET 6 environment?

Error we faced.

Uncaught TypeError: edge.initializeClrFunc is not a function at Object.exports.func (C:\Users\demo\Downloads\electron-edge-js-quick-start-master (/C:/Users/demo/Downloads/electron-edge-js-quick-start-master%20(2)/electron-edge-js-quick-start-master/2)\electron-edge-js-quick-start-master\node_modules\electron-edge-js\lib\edge.js:192:17) at Object.<anonymous> (C:\Users\demo\Downloads\electron-edge-js-quick-start-master (/C:/Users/demo/Downloads/electron-edge-js-quick-start-master%20(2)/electron-edge-js-quick-start-master/2)\electron-edge-js-quick-start-master\renderer.js:19:34) at Object.<anonymous> (C:\Users\demo\Downloads\electron-edge-js-quick-start-master (/C:/Users/demo/Downloads/electron-edge-js-quick-start-master%20(2)/electron-edge-js-quick-start-master/2)\electron-edge-js-quick-start-master\renderer.js:68:3) at Module._compile (internal/modules/cjs/loader.js:1152) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1173) at Module.load (internal/modules/cjs/loader.js:992) at Module._load (internal/modules/cjs/loader.js:885) at Function.f._load (electron/js2c/asar_bundle.js:5) at Module.require (internal/modules/cjs/loader.js:1032) at require (internal/modules/cjs/helpers.js:72)

How do I package electron-edge-js-quick-start using electron-forge make?

I've been tinkering with the electron-edge-js-quick-start since yesterday, but I'm unable to create a package. This is what I do:

  1. I clone this repository (electron-edge-js-quick-start)
  2. npm install
  3. dotnet build src/QuickStart.sln
  4. npm start (and It works)
    electronedge

My next step is to package the application. I followed the instructions on electron js website.
https://www.electronjs.org/docs/latest/tutorial/tutorial-packaging

  1. npm install --save-dev @electron-forge/cli
  2. npx electron-forge import
  3. npm run make

It doesn't work and it stops without error log. It always stop on preparing native dependencies.
make e

windows 10
dotnet version: 7.0.408
node version: 20.12.2
npm version: 8.12.1

Any help is appreciated. Thank you so much.

Consistently reproducible C++ Runtime error on reloading Electron window: g_coreclr == nullptr

Hello!

It seems I am having a consistent assertion failure on reloading the electron app with this quick start repo.

Steps to reproduce:

  1. Clone the repo git clone https://github.com/agracio/electron-edge-js-quick-start.git
  2. Install NPM dependencies npm install
  3. Build .NET project dotnet build src/QuickStart.sln
  4. Run the electron app npm start
  5. Notice that the calls to C# function perfectly!
  6. Reload with Ctrl+R or View->Reload
  7. Microsoft Visual C++ Runtime Library window pops up with "Assertion failed! coreclr.cpp Line 49 Expression: g_coreclr == nullptr" as pictured:
    image
  8. To see what happens, click Ignore
  9. Notice that there are no results in the window anymore as pictured:
    image

I am running in Windows. I have VS2022 installed. I wonder if this affects anything. I also experience this issue after upgrading to .NET 6 and 7 in ExternalLibrary and QuickStart.Core.

Do you have any ideas or suggestions for me to try? Or if I should move this to the edge-js repo or the electron-edge-js repo, let me know. Thank you very much for your time!

Thank you also for your hard work on electron-edge-js. It is quite a unique and powerful solution to bridging Node and .NET.

Update: I installed VS2017 and tried again. When building, I receive an error that says, "The current .NET SDK does not support targeting .NET Core 3.1. Either target .NET Core 1.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.1." I tried enabling previews of the .NET Core SDK, but that did not remove the error. It seems it may be a limitation of VS2017 because it does not use MSBuild 16. I also tried changing the .NET Core version to 1.1, fixing the AppDomain error, building (successfully!), and running the electron app. I got the same blank tables as in my second screenshot above. Reloading the page yielded the same runtime error as discussed above. I imagine this error is not related to the VS version or the .NET version but to edge-js or some aspect of this quick-start project. Let me know what you think. Thank you!

Windows 10 Error

Hi,
all script are installed without error but in execution I receive this errore in electron app:
Error
proto
:
Error: Call to coreclr_create_delegate() for G failed with a return code of 0x80070002. at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20) at Object.Module._extensions..node (module.js:671:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20) at Module.load (module.js:561:32) at tryModuleLoad (module.js:504:12) at Function.Module._load (module.js:496:3) at Module.require (module.js:586:17) at require (internal/module.js:11:18) at Object. (C:\Users\r.federiconi\Documents\Develop\Electron-Edge\electron-edge-js-quick-start-master\node_modules\electron-edge-js\lib\edge.js:57:10) at Object. (C:\Users\r.federiconi\Documents\Develop\Electron-Edge\electron-edge-js-quick-start-master\node_modules\electron-edge-js\lib\edge.js:186:3)
message
:
"Call to coreclr_create_delegate() for G failed with a return code of 0x80070002."
stack
:
"Error: Call to coreclr_create_delegate() for G failed with a return code of 0x80070002.↵ at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)↵ at Object.Module._extensions..node (module.js:671:18)↵ at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20)↵ at Module.load (module.js:561:32)↵ at tryModuleLoad (module.js:504:12)↵ at Function.Module._load (module.js:496:3)↵ at Module.require (module.js:586:17)↵ at require (internal/module.js:11:18)↵ at Object. (C:\Users\r.federiconi\Documents\Develop\Electron-Edge\electron-edge-js-quick-start-master\node_modules\electron-edge-js\lib\edge.js:57:10)↵ at Object. (C:\Users\r.federiconi\Documents\Develop\Electron-Edge\electron-edge-js-quick-start-master\node_modules\electron-edge-js\lib\edge.js:186:3)"
proto
:
Object
2021-01-21_165551

Error when running after win64 build.

I tried to execute an example.
And we proceeded with win64 build, and when we run exe file afterwards, an error occurs.

Attach the error image.

What is the problem?

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.