Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE11 win7, over CPU usage #59

Closed
pranaydutta89 opened this issue Mar 27, 2015 · 5 comments
Closed

IE11 win7, over CPU usage #59

pranaydutta89 opened this issue Mar 27, 2015 · 5 comments
Assignees
Labels

Comments

@pranaydutta89
Copy link

There is 100% cpu utilization in case of IE11 and win7 combination. On applying profilers i narrowed down and found that

 var wrap = function(event) {
                 if (event.key === 'ngIdle.expiry') svc.interrupt();
                };

this line is taking all the cpu

this is happening when i upgraded to the latest version 1.0.0

@pranaydutta89
Copy link
Author

its going on a infinite loop on that function

@rolandocc
Copy link

The same is happening with Windows 7 + IE 10.
This event is supposed to be fired only when the user is active, however it is infinite as @pranaydutta89 pointed out.

image

Everything works fine with Firefox and Chrome so this is probably an IE's issue only.

@moribvndvs
Copy link
Owner

Once again, Microsoft can't read or plainly implement a *&#$@%&ed spec. The storage event is not supposed to fire on the same window that caused the storage change, but they do, which is causing the infinite loop.

@moribvndvs moribvndvs added the bug label Mar 28, 2015
@moribvndvs moribvndvs self-assigned this Mar 28, 2015
moribvndvs added a commit that referenced this issue Mar 28, 2015
Prevent storage event in same window from causing endless interrupt loop.
@rolandocc
Copy link

Thank you!

@pranaydutta89
Copy link
Author

thanks a ton

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants