Error in Browser Console: BackgroundUpdate: maybeScheduleBackgroundUpdateTask: exiting after uncaught exception in maybeScheduleBackgroundUpdateTask! NS_ERROR_FILE_NOT_FOUND
Categories
(Toolkit :: Application Update, defect, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: mayankleoboy1, Assigned: erchen)
References
Details
(Whiteboard: [fidedi-ope])
Attachments
(6 files)
Start browser
Open Browser console
AR: Error in the console
BackgroundUpdate: maybeScheduleBackgroundUpdateTask: exiting after uncaught exception in maybeScheduleBackgroundUpdateTask! NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIWinTaskSchedulerService.deleteTask]
deleteTask resource://gre/modules/TaskSchedulerWinImpl.sys.mjs:50
deleteTask resource://gre/modules/TaskScheduler.sys.mjs:147
deleteTasksInRange resource://gre/modules/BackgroundUpdate.sys.mjs:99
maybeScheduleBackgroundUpdateTask resource://gre/modules/BackgroundUpdate.sys.mjs:586
Reporter | ||
Updated•5 months ago
|
Reporter | ||
Comment 1•5 months ago
|
||
Comment 2•5 months ago
|
||
Hi, thanks for the report. At this point I think there's some issue with how your tasks are configured. The best solution here might just be to put a try catch around the deleteTask call. Before that though, can you please tell me the value of the app.update.background.lastInstalledTaskVersion
pref and also open the Windows Task Scheduler, navigate to the Mozilla folder, and tell me the names of all Background Update tasks you have?
Reporter | ||
Comment 3•5 months ago
•
|
||
app.update.background.lastInstalledTaskVersion = 3
Putting screenshots in the attached pdf.
Happy to run any instrumented builds or share any log etc.
Reporter | ||
Comment 4•5 months ago
|
||
Reporter | ||
Updated•5 months ago
|
Reporter | ||
Comment 5•5 months ago
|
||
Reporter | ||
Comment 6•5 months ago
|
||
Reporter | ||
Comment 7•5 months ago
|
||
Comment 8•5 months ago
•
|
||
The pref should have been set to 4 once your background tasks were registered, all of which look to be in the updated format to me. I assume this didn't happen because the code in 1891521 couldn't delete multiple versions correctly, instead erroring out after one. I think it might still be worth adding a try catch to the relevant deletion code just so we have better logs of this though.
Updated•5 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Comment 10•5 months ago
|
||
Pushed by nshukla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d773b9cc57f9 Catch errors when deleting scheduled background update tasks r=nrishel,nshukla
Comment 11•5 months ago
|
||
bugherder |
Updated•4 months ago
|
Updated•4 months ago
|
Description
•