My co-workers and I have written a node.js application. I was assigned to debug an issue this week. The issue is that the application crashes every few days with this error:
events.js:0
(function (exports, require, module, __filename, __dirname) { // Copyright Joy
^
RangeError: Maximum call stack size exceeded
Unfortunately it doesn't print anything else.
What node.js methods and tools could I use with node.js to debug this issue? Our application is really huge (it powers the entire campus document finder) so we don't know where this error is happening exactly (there are many files of source code).
event.js, as well. I hadprocess.on('uncaughtException', ...)set but the error was not caught there. I was able to reproduce the error, but it did not make any sense (to me at least). I thought it was somenode.jsexternal bug, so start using an older version (0.8.x instead of 0.10.2x). The error disappeared. After a couple of weeks and reboots I decided to try 0.10.2x again. There was no error any more -- though my code was exactly the same as before.