This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Timers broken in 0.10.34 #8897
Closed
Description
After updating to 0.10.34 my app keeps throwing this error:
timers.js:432
timeSinceLastActive = now - cur._monotonicStartTime;
^
TypeError: Cannot read property '_monotonicStartTime' of null
at Timer.unrefTimeout [as ontimeout] (timers.js:432:36)
well, I looked into your source code here:
https://github.com/joyent/node/blob/v0.10.34-release/lib/timers.js#L430
and it seems that something is going wrong there, right?
var cur = unrefList._idlePrev;
while (cur != unrefList) {
timeSinceLastActive = now - cur._monotonicStartTime;
if (timeSinceLastActive < cur._idleTimeout) {
Well I think you forgot to make unrefList
a Timer
object here:
https://github.com/joyent/node/blob/v0.10.34-release/lib/timers.js#L508
it's just a guess based on the fact that _idlePrev
is only initialized in the Timer
constructor.