This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Description
So for quite some time we are seeing this error message in our logs and none of us are able to reproduce it locally. Does any one know how/why this case could occur?
message: macroTask 'setInterval': can not transition to 'running', expecting state 'scheduled', was 'notScheduled'.
stack: Error: macroTask 'setInterval': can not transition to 'running', expecting state 'scheduled', was 'notScheduled'.
at e.prototype._transitionTo (<url>/polyfills.77d3c168854bf6cfdbd7.js:1:10272)
at e.prototype.runTask (<url>/polyfills.77d3c168854bf6cfdbd7.js:1:3773)
at e.invokeTask (<url>/polyfills.77d3c168854bf6cfdbd7.js:1:9840)
at invoke (<url>/polyfills.77d3c168854bf6cfdbd7.js:1:9738)
at n.args[0] (<url>/polyfills.77d3c168854bf6cfdbd7.js:1:25135)
We are seeing it for setTimeout and for setInterval and it is happening only in IE 11. What is interesting is that right before this error I can see $digest in progress errors (we run Angular + angularjs hybrid) from 4 http requests which already tells me that something fairly weird is happening. E.g. seems like callback passed to browser.defer is called multiple times.
The only way I could get something similar is that if I modify setTimeout / setInterval and call the callback twice, but it gets triggered only few times and then stops.
The most annoying fact is that once this edge case is hit, that specific user will get an error every 0.5s (varies) until browser is refreshed. We have 200k events like this from 4 different users in last 7 days.