-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Ember.run.later sometimes does not execute callback on time #10479
Comments
ouch, something seems funky. I suspect this may be an issue with https://github.com/ebryn/backburner.js |
I confirm this issue, we use multiple Pollers which makes use of Changing |
Can confirm as well. We use |
Is this cross platform or just a specific browser? If there is a repro it'll be easier to debug. Otherwise someone needs to audit back burners timers |
@stefanpenner well, I provided those jsbins? |
oops didn't notice, added to my queue for later this week. |
Just ran into this too. |
I can consistently reproduce it in a friend's app, will have a chance to take a look wednesday |
Here is a JSBin that can consistently reproduce the issue: |
Looks like there is an issue open upstream for this now. I'm not sure anyone has time to dig in though... |
with Ember.run.next(this,functionName) callbacks are inconsistent |
@reemasaluja - Not sure that is related to this issue. |
@reemasaluja @rwjblue FWIW I think |
Thanks |
This was fixed in BackburnerJS/backburner.js#151. |
Hi,
I'm seeing something that looks like a race condition to me that sometimes stops run.later from working.
More concretely:
It looks like runs get stuck in the runloop, they aren't executed after the specified time but only when something else starts a new runloop, for example if I click on something and the DOM changes or even more interesting, it's even enough to put another
Ember.run.later
into the JS console: then it looks like a runloop is started again and the scheduled runs are processed.This is the minimal example I could reproduce this with:
http://emberjs.jsbin.com/siboromaho/1/edit
I need to run it up to 80 times to trigger the behaviour ... :-
When you see that
some foo
isn't printed to the console you can press the "start runloop" button and it will get printed to the console immediately.The next example is closer to what I'm doing in my app but it is also slightly more complicated, you don't need to include the SomeView but if you do, it's triggered way more often.
http://emberjs.jsbin.com/xulibakupe/1/edit
The examples look a bit artificial but it's what happens in my app through setting properties and observers. AFAICT I need the Promise in there and also the new
Èmber.run.later
in the then function, without it I can't reproduce in my app even - or it just reduces the probability so far that if you remove it you hardly ever trigger it.FWIW I'm on Chromium 39
Best regards,
Domme
The text was updated successfully, but these errors were encountered: