You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using node v10.12.0 on Windows 10 x64. After the expressjs server runs for a while, having handled a few thousands requests (the number varied for each run, the requests for each run are exactly the same, including both order and contents), the server simply crashed without error message. I have added these error handlers but none logged anything for me:
process.on('uncaughtException',function(exception){console.log(exception);});process.on('unhandledRejection',function(exception){console.log(exception);});process.on('exit',function(exception){console.log('exit');// even this line never gets printedconsole.log(exception);});app.use((err: any,req: Request,res: Response,next: NextFunction)=>{console.error(err.stack)res.status(500).send('Something broke!')// client never received 500 code});
The only thing I got the error code "-1073741819", using echo %ERRORLEVEL% on command line.
The way I use node-weak is to store a weak reference in a Queue from typescript-collections and check if it has desired member "timestamp":
After I switch weak(node) to node, crashing stopped happening. I am sorry for being unable to offer you full code to reproduce the bug (because it is proprietary) or more information (because I don't know more).
The text was updated successfully, but these errors were encountered:
felixhao28
changed the title
Expressjs the server silently crashes
the Expressjs server silently crashes
Nov 27, 2018
I am using node v10.12.0 on Windows 10 x64. After the expressjs server runs for a while, having handled a few thousands requests (the number varied for each run, the requests for each run are exactly the same, including both order and contents), the server simply crashed without error message. I have added these error handlers but none logged anything for me:
The only thing I got the error code "-1073741819", using
echo %ERRORLEVEL%
on command line.The way I use node-weak is to store a weak reference in a
Queue
from typescript-collections and check if it has desired member "timestamp":After I switch
weak(node)
tonode
, crashing stopped happening. I am sorry for being unable to offer you full code to reproduce the bug (because it is proprietary) or more information (because I don't know more).The text was updated successfully, but these errors were encountered: