-
Notifications
You must be signed in to change notification settings - Fork 523
Get NullReferenceException when running kestrel for a while #115
Comments
I have actually gotten a similar issue during perf test, most of the time I get the NRE as above but sometimes I get this instead Unhandled Exception: System.InvalidCastException: Unable to cast object of type 'ThisWriteReq' to type 'Microsoft.AspNet.Server.Kestrel.Networking.UvShutdownReq'. |
/cc @davidfowl do you guys have someone fixing this already. This is quite a bad blocking issue. @shhsu Do you have a potential fix for this? |
It sounds like the period of time that the async shutdown is "active" needs to be guarded by a gchandle as well. Same as the uvwritereq - handle created when operation begins and freed in the callback. |
The reproduction of this problem is simple.
Note: I seem to be getting similar trouble with Kestrel on coreclr on Windows as well. After hitting HelloMvc on Kestrel on Windows the dnx process would become unresponsive. I will be debugging it. |
The text was updated successfully, but these errors were encountered: