agracio / edge-js

Run .NET and Node.js code in-process on Windows, macOS, and Linux
MIT License
643 stars 95 forks source link

AccessViolationException thrown in Azure Function App? #134

Closed brainded closed 7 months ago

brainded commented 3 years ago

I recently, as of May 7th, started getting failures in Azure Function apps. It happens intermittently and I actually didn't utilize this library so I am under the assumption that Microsoft is using this in their Function apps? Anyway, here is the stack trace of the issue encountered. I know it's not much to go on but I wanted to get it documented in case anyone else is experiencing this issue.

The process was terminated due to an unhandled exception. 
Exception Info: System.AccessViolationException at EdgeJs.Edge.NodeStartx86(Int32, System.String[]) 
at EdgeJs.Edge+<>c__DisplayClass2.<Func>b__1() 
at System.Threading.ThreadHelper.ThreadStart_Context(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) 
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object) 
at System.Threading.ThreadHelper.ThreadStart() 

I would be happy to provide anything else that can help here but as of right now this is all I have to go on. I enabled the app to collect a crash dump when it happens again, now I am just waiting for it.

brainded commented 3 years ago

Looks like this is a known issue from a while back. https://github.com/Azure/azure-functions-host/issues/2367

agracio commented 3 years ago

I was not aware that Azure is using Edge.Js, this is a known issue and was fixed in the latest Nuget package early this year https://github.com/agracio/edge-js/pull/119.