Closed
Bug 1420349
Opened 7 years ago
Closed 7 years ago
this.scheduler is undefined forcing sync very early after startup
Categories
(Firefox :: Sync, defect, P1)
Firefox
Sync
Tracking
()
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: markh, Assigned: tcsc)
References
Details
Attachments
(1 file)
Immediately after starting up I hit "sync now" and saw in the log:
> 1511503477891 Sync.Service DEBUG Exception calling anonymous function: TypeError: this.scheduler is undefined (resource://services-sync/service.js:1047:12) JS Stack trace: _shouldLogin@service.js:1047:12 < sync/<@service.js:1091:11 < async*WrappedCatch@util.js:99:22 < async*sync@service.js:1089:12 < async*syncAndReportErrors/<@policies.js:821:7
this.scheduler is setup in onStartup, which is async. I suspect something that should be awaiting that isn't. I'm out of time to dig further but thought I'd get this on file anyway...
Reporter | ||
Comment 1•7 years ago
|
||
oops - and I meant to add - the next sync worked fine.
Updated•7 years ago
|
Priority: -- → P1
Updated•7 years ago
|
Assignee: nobody → eoger
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•7 years ago
|
||
Taking since this is the cause of bug 1421044, I have a patch for it, and eoger said he hasn't started on it yet.
Assignee: eoger → tchiovoloni
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8932539 [details] Bug 1420349 - Instantiate the sync scheduler in the service's constructor, instead of in onStartup. https://reviewboard.mozilla.org/r/203588/#review209094 Thank you! As I discussed with Thom on IRC, the big underlying issue is that we are not awaiting on Weave.Service.promiseInitialized in a bunch of places. This patch will fix the this.scheduler issue, but we might/will have more issues. We should fix this once and for all in a follow-up by removing the Service getter from Weave. (or make it throw), and surface an async getService method that does the initializing for us.
Attachment #8932539 -
Flags: review?(eoger) → review+
Pushed by tchiovoloni@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7a96b2b10be3 Instantiate the sync scheduler in the service's constructor, instead of in onStartup. r=eoger
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7a96b2b10be3
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in
before you can comment on or make changes to this bug.
Description
•