ember.js: Safari browser: "You attempted to schedule an action in a queue (undefined) that doesn't exist"

We are using Ember 1.11.3 and DS 1.0.0-beta.18.

In production we are seeing sporadic errors "You attempted to schedule an action in a queue (undefined) that doesn't exist" in our app on Safari 10.x (Mac OSX) and Mobile Safari 9 (iOS) browsers only.

It’s not clear where these are originating–they seem to happen randomly and we cannot reproduce them. We are inserting into the run loop always via the standard API (Ember.run.schedule, etc.) and not through any custom hacks, so it’s unclear how the queue could be undefined.

Any help/pointers to better understand the source of the error would be appreciated.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 28 (27 by maintainers)

Most upvoted comments

Seeing this error on Microsoft Edge 13.10586 on Windows 10 from one of our users. Cannot reproduce it myself though.

Just some more info, the root cause seems to be a JIT compilation bug in Safari–essentially it wasn’t evaluating arguments. The change in emberjs/ember.js#10634 inadvertently fixed it. The aggravating thing about this bug is that if you open the Safari debugger, the JIT compilation changes so that the bug doesn’t occur!