-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crashes on Node 14 or 16 #99
Comments
I'm trying to debug this more but I don't have any experience with C++ or NAPI. In Visual Studio when i attach to the process I can set breakpoints and they work but when I inspect the locals they are all in hex like Any suggestions on how to debug this further are appreciated. |
I can confirm this issue (NodeSSPI 0.2.9 with Node 16.13.2). Initially everything works fine, then after a few successful authentications the Node process crashes with the
to the log. I can't offer a solution, but node-expose-sspi seems to work fine as a replacement. |
@fknx Thanks for the reply. Glad to hear that node-expose-sspi works as an alternative at least. |
We are seeing this issue to. |
@ecke78 I can confirm that node-expose-sspi works well as a replacement (as @fknx suggested). No issues since switching to it. |
I've switched over to it today and it seems to be working great, thanks. |
We have been using node-sspi for years in an internal application. It was working great in Node 12 and earlier, however I was working on upgrading to Node 14 or 16 last week since the 12.X branch is now out of long-term support.
I am using the latest verion of NodeSSPI (0.2.9).
Again, this error does not occur in Node 12.22.12, but it does in both 14.19.1 and 16.15.0
The error seems to occur after refreshing the front-end page a couple of times.
Here is the truncated error message:
The line in myapp from the traceback is where
nodeSSPIObj.authenticate
is called:I am unable to even catch the error so not sure if something is happening in the native code which causes Node to crash.
Update 2022-05-19
I attached to the process from Visual Studio while my node app was running in order to debug the NodeSSPI native code. I was able to break on the exception:
Exception thrown at 0x00007FFD97504F69 in node.exe: Microsoft C++ exception: Napi::Error at memory location 0x00000044792FE980.
Here is the Call Stack at the point of the exception being thrown:
The text was updated successfully, but these errors were encountered: