-
Notifications
You must be signed in to change notification settings - Fork 36
StackOverflowException during Edge compiling of c# using .Net Core #31
Comments
Oh, in contrast, using VS2015 and .Net 4.6.1 it works fine to call c# methods in an external library as depicted in bridge-external.js. |
Ping? Anyone monitoring these issues? |
After doing some digging around in a Debug compile of Edge, I can confirm that this is an Edge issue. See tjanczuk#526 (comment) @tjanczuk @kexplo Is it possible to move this issue to the Edge repo please? |
I have the same issue. I am receiving an error in the .NET code of an electron-edge call. Is there an available fix? I am on electron-edge 6.5.5, node 6.11.0 and electron 1.7.8. |
Try using |
I don't appear to get the StackOverflowException anymore but the application also doesn't return from the .NET dll if an exception is thrown from the dll. Shouldn't the exception be deserialized into the error object of the callback function? |
It should, do you know what exception you .NET code is throwing? |
you are correct it appears to be coming through now... Thanks... What is the difference from electron-edge and electron-edge-js? |
https://github.com/agracio/electron-edge-js the differences are in the readme, the main difference is that its based on https://github.com/agracio/edge-js that has some major bug fixes compared to original Edge.js repo with StackOverflowException being one of them. |
Trying to use Electron, Edge, and .Net Core.
I'm getting a
StackOverflowException
when trying to call a method in my own compiled .Net Core assembly.I followed the suggested additions to the .Net Core project setup etc as described here and here as per Edge documentation.
On Windows 10, using versions:
I set up a test project here to illustrate the problem: https://github.com/SeanSnyders/TestExamples/tree/master/Test-Electron-Edge-DotNetCore
To build and run, follow general instructions as per the project readme.md:
npm install
npm run rebuild
npm start
If I change this line
to use bridge-inline.js it works fine, but using bridge-external.js and calling the
TestMe
method in the .NET Core compiled assembly gives me aStackOverflowException
during the Edge JIT compiling of the c# code, as illustrated by the trace output when the environment variableCOREHOST_TRACE=1
is set:I've tried various things to fix this. Playing around with
EDGE_APP_ROOT
etc, but no solution just yet.Is there a problem with the environment, or can Edge not find my assembly? Would be odd giving a
StackoverflowException
though....Help appreciated!
The text was updated successfully, but these errors were encountered: