Bug: Intermittent browser_browser_languages_subdialog.js | Uncaught exception in test - [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFile.moveTo]"  nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)"  <.>XPIInstall.jsm
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-03-27 11:34:41+00:00
Resolved: 2022-04-19 17:08:53+00:00

**Filed by:** imoraru [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=372484812&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/QbfLRMv3RG-d_Fo9h03jSw/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-03-27T10:03:59.373Z] 10:03:59     INFO - TEST-PASS | browser/components/preferences/tests/browser_browser_languages_subdialog.js | The locale changed with Hebrew first. - ["he","en-US","fr","de"] deepEqual ["he","en-US","fr","de"] - 
[task 2022-03-27T10:03:59.373Z] 10:03:59     INFO - Buffered messages finished
[task 2022-03-27T10:03:59.374Z] 10:03:59     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_browser_languages_subdialog.js | Uncaught exception in test - [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFile.moveTo]"  nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)"  location: "JS frame :: resource://gre/modules/addons/XPIInstall.jsm :: _installFile :: line 1141"  data: no]
[task 2022-03-27T10:03:59.374Z] 10:03:59     INFO - Stack trace:
[task 2022-03-27T10:03:59.374Z] 10:03:59     INFO - _installFile@resource://gre/modules/addons/XPIInstall.jsm:1141:17
[task 2022-03-27T10:03:59.374Z] 10:03:59     INFO - moveUnder@resource://gre/modules/addons/XPIInstall.jsm:1170:12
[task 2022-03-27T10:03:59.374Z] 10:03:59     INFO - uninstallAddon@resource://gre/modules/addons/XPIInstall.jsm:3387:21
[task 2022-03-27T10:03:59.374Z] 10:03:59     INFO - uninstall@resource://gre/modules/addons/XPIInstall.jsm:4689:37
[task 2022-03-27T10:03:59.375Z] 10:03:59     INFO - uninstallAddon@resource://gre/modules/addons/XPIInstall.jsm:4716:9
[task 2022-03-27T10:03:59.375Z] 10:03:59     INFO - Leaving test bound testLiveLanguageReloadingBidiOn
[task 2022-03-27T10:03:59.375Z] 10:03:59     INFO - GECKO(5192) | [2022-03-27T10:03:59Z WARN  l10nregistry_ffi::env] L10nRegistry error: Missing resource in locale he: branding/brand.ftl
[task 2022-03-27T10:03:59.376Z] 10:03:59     INFO - GECKO(5192) | [fluent-dom] While translating an element with fluent ID "default-font" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2022-03-27T10:03:59.377Z] 10:03:59     INFO - GECKO(5192) | [fluent-dom] While translating an element with fluent ID "default-font-size" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2022-03-27T10:03:59.377Z] 10:03:59     INFO - GECKO(5192) | [fluent-dom] While translating an element with fluent ID "preferences-default-zoom" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2022-03-27T10:03:59.378Z] 10:03:59     INFO - GECKO(5192) | [fluent-dom] While translating an element with fluent ID "performance-limit-content-process-option" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2022-03-27T10:03:59.378Z] 10:03:59     INFO - GECKO(5192) | [fluent-dom] While translating an element with fluent ID "history-remember-label" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type.
[task 2022-03-27T10:03:59.379Z] 10:03:59     INFO - GECKO(5192) | [2022-03-27T10:03:59Z WARN  l10nregistry_ffi::env] L10nRegistry error: Missing resource in locale he: browser/search.ftl
[task 2022-03-27T10:03:59.379Z] 10:03:59     INFO - GECKO(5192) | [2022-03-27T10:03:59Z WARN  l10nregistry_ffi::env] L10nRegistry error: Missing resource in locale he: branding/brand.ftl
[task 2022-03-27T10:03:59.380Z] 10:03:59     INFO - GECKO(5192) | [2022-03-27T10:03:59Z WARN  l10nregistry_ffi::env] L10nRegistry error: Missing resource in locale he: browser/search.ftl
[task 2022-03-27T10:03:59.380Z] 10:03:59     INFO - GECKO(5192) | #01: RustMozCrash(char const*, int, char const*) [mozglue/static/rust/wrappers.cpp:17]
[task 2022-03-27T10:03:59.381Z] 10:03:59     INFO - GECKO(5192) | #02: mozglue_static::panic_hook(core::panic::panic_info::PanicInfo*) [mozglue/static/rust/lib.rs:91]
[task 2022-03-27T10:03:59.381Z] 10:03:59     INFO - GECKO(5192) | #03: core::ops::function::Fn::call<void (*)(ref$<core::panic::panic_info::PanicInfo>),tuple$<ref$<core::panic::panic_info::PanicInfo> > >(void (**)(core::panic::panic_info::PanicInfo*), core::panic::panic_info::PanicInfo*) [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:70]
[task 2022-03-27T10:03:59.382Z] 10:03:59     INFO - GECKO(5192) | #04: std::panicking::rust_panic_with_hook() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/std/src/panicking.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:613]
[task 2022-03-27T10:03:59.382Z] 10:03:59     INFO - GECKO(5192) | #05: std::panicking::begin_panic_handler::closure$0() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/std/src/panicking.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:502]
[task 2022-03-27T10:03:59.383Z] 10:03:59     INFO - GECKO(5192) | #06: std::sys_common::backtrace::__rust_end_short_backtrace<std::panicking::begin_panic_handler::closure$0,never$>() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/std/src/sys_common/backtrace.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:139]
[task 2022-03-27T10:03:59.384Z] 10:03:59     INFO - GECKO(5192) | #07: std::panicking::begin_panic_handler() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/std/src/panicking.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:498]
[task 2022-03-27T10:03:59.384Z] 10:03:59     INFO - GECKO(5192) | #08: core::panicking::panic_fmt() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/core/src/panicking.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:116]
[task 2022-03-27T10:03:59.385Z] 10:03:59     INFO - GECKO(5192) | #09: core::panicking::panic_display<str>() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/core/src/panicking.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:72]
[task 2022-03-27T10:03:59.385Z] 10:03:59     INFO - GECKO(5192) | #10: core::panicking::panic_str() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/core/src/panicking.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:56]
[task 2022-03-27T10:03:59.386Z] 10:03:59     INFO - GECKO(5192) | #11: core::option::expect_failed() [git:github.com/rust-lang/rust:../9d1b2106e23b1abd32fce1f17267604a5102f57a//library/core/src/option.rs:9d1b2106e23b1abd32fce1f17267604a5102f57a:1817]
[task 2022-03-27T10:03:59.387Z] 10:03:59     INFO - GECKO(5192) | #12: futures_util::stream::stream::next::impl$3::poll<fluent_fallback::cache::AsyncCacheStream<l10nregistry::registry::asynchronous::GenerateBundles<l10nregistry_ffi::env::GeckoEnvironment,l10nregistry_ffi::registry::GeckoBundleAdapter>,alloc::rc::Rc<fluent_bundle::resource::FluentResource> > >(core::pin::Pin<ref_mut$<futures_util::stream::stream::next::Next<fluent_fallback::cache::AsyncCacheStream<l10nregistry::registry::asynchronous::GenerateBundles<l10nregistry_ffi::env::GeckoEnvironment,l10nregistry_ffi::registry::GeckoBundleAdapter>,alloc::rc::Rc<fluent_bundle::resource::FluentResource> > > > >, core::task::wake::Context*) [third_party/rust/futures-util/src/stream/stream/next.rs:33]
[task 2022-03-27T10:03:59.388Z] 10:03:59     INFO - GECKO(5192) | #13: async_task::raw::RawTask<async_task::runnable::spawn_local::Checked<core::future::from_generator::GenFuture<localization_ffi::impl$5::format_messages::generator$1> >,tuple$<>,moz_task::executor::impl$6::spawn_local::closure$0>::run<async_task::runnable::spawn_local::Checked<core::future::from_generator::GenFuture<localization_ffi::impl$5::format_messages::generator$1> >,tuple$<>,moz_task::executor::impl$6::spawn_local::closure$0>(<NoType>*) [third_party/rust/async-task/src/raw.rs:489]
[task 2022-03-27T10:03:59.388Z] 10:03:59     INFO - GECKO(5192) | #14: moz_task::dispatcher::impl$4::allocate::Run<moz_task::executor::schedule::closure$1>(xpcom::interfaces::idl::nsIRunnable*) [xpcom/rust/moz_task/src/dispatcher.rs:16]
[task 2022-03-27T10:03:59.388Z] 10:03:59     INFO - GECKO(5192) | #15: mozilla::RunnableTask::Run() [xpcom/threads/TaskController.cpp:468]
[task 2022-03-27T10:03:59.389Z] 10:03:59     INFO - GECKO(5192) | #16: mozilla::TaskController::DoExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex &> const&) [xpcom/threads/TaskController.cpp:778]
[task 2022-03-27T10:03:59.390Z] 10:03:59     INFO - GECKO(5192) | #17: mozilla::TaskController::ExecuteNextTaskOnlyMainThreadInternal(mozilla::detail::BaseAutoLock<mozilla::Mutex &> const&) [xpcom/threads/TaskController.cpp:612]
[task 2022-03-27T10:03:59.390Z] 10:03:59     INFO - GECKO(5192) | #18: mozilla::TaskController::ProcessPendingMTTask(bool) [xpcom/threads/TaskController.cpp:390]
[task 2022-03-27T10:03:59.391Z] 10:03:59     INFO - GECKO(5192) | #19: mozilla::detail::RunnableFunction<`lambda at /builds/worker/checkouts/gecko/xpcom/threads/TaskController.cpp:124:7'>::Run() [xpcom/threads/nsThreadUtils.h:532]
[task 2022-03-27T10:03:59.391Z] 10:03:59     INFO - GECKO(5192) | #20: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:1191]
[task 2022-03-27T10:03:59.391Z] 10:03:59     INFO - GECKO(5192) | #21: NS_ProcessNextEvent(nsIThread*, bool) [xpcom/threads/nsThreadUtils.cpp:465]
[task 2022-03-27T10:03:59.392Z] 10:03:59     INFO - GECKO(5192) | #22: mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:85]
[task 2022-03-27T10:03:59.392Z] 10:03:59     INFO - GECKO(5192) | #23: MessageLoop::RunHandler() [ipc/chromium/src/base/message_loop.cc:374]
[task 2022-03-27T10:03:59.393Z] 10:03:59     INFO - GECKO(5192) | #24: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:356]
[task 2022-03-27T10:03:59.393Z] 10:03:59     INFO - GECKO(5192) | #25: nsBaseAppShell::Run() [widget/nsBaseAppShell.cpp:139]
[task 2022-03-27T10:03:59.393Z] 10:03:59     INFO - GECKO(5192) | #26: nsAppShell::Run() [widget/windows/nsAppShell.cpp:614]
[task 2022-03-27T10:03:59.394Z] 10:03:59     INFO - GECKO(5192) | #27: XRE_RunAppShell() [toolkit/xre/nsEmbedFunctions.cpp:870]
[task 2022-03-27T10:03:59.394Z] 10:03:59     INFO - GECKO(5192) | #28: mozilla::ipc::MessagePumpForChildProcess::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:235]
[task 2022-03-27T10:03:59.395Z] 10:03:59     INFO - GECKO(5192) | #29: MessageLoop::RunHandler() [ipc/chromium/src/base/message_loop.cc:374]
[task 2022-03-27T10:03:59.395Z] 10:03:59     INFO - GECKO(5192) | #30: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:356]
[task 2022-03-27T10:03:59.395Z] 10:03:59     INFO - GECKO(5192) | #31: XRE_InitChildProcess(int, char**, XREChildData const*) [toolkit/xre/nsEmbedFunctions.cpp:733]
[task 2022-03-27T10:03:59.396Z] 10:03:59     INFO - GECKO(5192) | #32: NS_internal_main(int, char**, char**) [browser/app/nsBrowserApp.cpp:327]
[task 2022-03-27T10:03:59.396Z] 10:03:59     INFO - GECKO(5192) | #33: wmain(int, wchar_t**) [toolkit/xre/nsWindowsWMain.cpp:167]
[task 2022-03-27T10:03:59.396Z] 10:03:59     INFO - GECKO(5192) | #34: __scrt_common_main_seh() [/builds/worker/workspace/obj-build/browser/app/d:/agent/_work/1/s/src/vctools/crt/vcstartup/src/startup/exe_common.inl:288]
[task 2022-03-27T10:03:59.397Z] 10:03:59     INFO - GECKO(5192) | #35: BaseThreadInitThunk [C:\Windows\System32\KERNEL32.DLL + 0x17034]
[task 2022-03-27T10:03:59.397Z] 10:03:59     INFO - GECKO(5192) | #36: RtlUserThreadStart [C:\Windows\SYSTEM32\ntdll.dll + 0x52651]
[task 2022-03-27T10:03:59.398Z] 10:03:59     INFO - Console message: [JavaScript Warning: "Element.releaseCapture() is deprecated. Use Element.releasePointerCapture() instead. For more help https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture" {file: "chrome://global/content/elements/menupopup.js" line: 169}]
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - Console message: [JavaScript Error: "1648375439155	addons.xpi	ERROR	Failed to move file C:\Users\task_164836780665104\AppData\Local\Temp\tmpdy7flxaf.mozrunner\extensions\langpack-he@firefox.mozilla.org.xpi to C:\Users\task_164836780665104\AppData\Local\Temp\tmpdy7flxaf.mozrunner\extensions\trash: [Exception... "Component returned failure code: 0x8052000e (NS_ERROR_FILE_IS_LOCKED) [nsIFile.moveTo]"  nsresult: "0x8052000e (NS_ERROR_FILE_IS_LOCKED)"  location: "JS frame :: resource://gre/modules/addons/XPIInstall.jsm :: _installFile :: line 1141"  data: no] Stack trace: _installFile()@resource://gre/modules/addons/XPIInstall.jsm:1141
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - moveUnder()@resource://gre/modules/addons/XPIInstall.jsm:1170
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - uninstallAddon()@resource://gre/modules/addons/XPIInstall.jsm:3387
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - uninstall()@resource://gre/modules/addons/XPIInstall.jsm:4689
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - uninstallAddon()@resource://gre/modules/addons/XPIInstall.jsm:4716" {file: "resource://gre/modules/Log.jsm" line: 723}]
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - append@resource://gre/modules/Log.jsm:723:12
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - log@resource://gre/modules/Log.jsm:379:16
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - error@resource://gre/modules/Log.jsm:387:10
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - _installFile@resource://gre/modules/addons/XPIInstall.jsm:1144:14
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - moveUnder@resource://gre/modules/addons/XPIInstall.jsm:1170:12
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - uninstallAddon@resource://gre/modules/addons/XPIInstall.jsm:3387:21
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - uninstall@resource://gre/modules/addons/XPIInstall.jsm:4689:37
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - uninstallAddon@resource://gre/modules/addons/XPIInstall.jsm:4716:9
[task 2022-03-27T10:03:59.400Z] 10:03:59     INFO - 
[task 2022-03-27T10:03:59.401Z] 10:03:59     INFO - Console message: [JavaScript Warning: "Missing resource in locale he: branding/brand.ftl"]
[task 2022-03-27T10:03:59.401Z] 10:03:59     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "default-font" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "about:preferences#general" line: 0}]
[task 2022-03-27T10:03:59.402Z] 10:03:59     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "default-font-size" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "about:preferences#general" line: 0}]
[task 2022-03-27T10:03:59.402Z] 10:03:59     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "preferences-default-zoom" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "about:preferences#general" line: 0}]
[task 2022-03-27T10:03:59.403Z] 10:03:59     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "performance-limit-content-process-option" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "about:preferences#general" line: 0}]
[task 2022-03-27T10:03:59.404Z] 10:03:59     INFO - Console message: [JavaScript Warning: "[fluent-dom] While translating an element with fluent ID "history-remember-label" a child element of type "span" was removed. Either the fluent message does not contain markup, or it does not contain markup of this type." {file: "about:preferences#general" line: 0}]
[task 2022-03-27T10:03:59.404Z] 10:03:59     INFO - Console message: [JavaScript Warning: "Missing resource in locale he: browser/search.ftl"]
[task 2022-03-27T10:03:59.404Z] 10:03:59     INFO - Console message: [JavaScript Warning: "Missing resource in locale he: branding/brand.ftl"]
[task 2022-03-27T10:03:59.405Z] 10:03:59     INFO - Console message: [JavaScript Warning: "Missing resource in locale he: browser/search.ftl"]
[task 2022-03-27T10:03:59.405Z] 10:03:59     INFO - GECKO(5192) | console.error: "Could not find engine to update"
<...>
[task 2022-03-27T10:03:59.559Z] 10:03:59     INFO - GECKO(5192) | [Parent 5984, IPC I/O Parent] WARNING: [1.1]: Rejecting introduction request from 'A4FEF84E58365D94.4E2605BDED9CC49D' for unknown peer 'ED07C1AB059F43BE.A2D69DAB9021EA74': file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:667
[task 2022-03-27T10:03:59.559Z] 10:03:59     INFO - GECKO(5192) | [GPU 1724, IPC I/O Child] WARNING: [A4FEF84E58365D94.4E2605BDED9CC49D]: Could not be introduced to peer ED07C1AB059F43BE.A2D69DAB9021EA74: file /builds/worker/checkouts/gecko/ipc/glue/NodeController.cpp:596
[task 2022-03-27T10:03:59.575Z] 10:03:59     INFO - GECKO(5192) | ###!!! [Parent][PContentParent] Error: Send(msgname=PWindowGlobal::Msg_RawMessage) Channel error: cannot send/recv
<...>
[task 2022-03-27T10:03:59.637Z] 10:03:59     INFO - GECKO(5192) | ###!!! [Parent][PContentParent] Error: Send(msgname=PContent::Msg_PreferenceUpdate) Channel error: cannot send/recv
[task 2022-03-27T10:03:59.651Z] 10:03:59     INFO - GECKO(5192) | [Parent 5984, Main Thread] WARNING: IPC message 'PBrowser::Msg_UpdateNativeWindowHandle' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
[task 2022-03-27T10:03:59.658Z] 10:03:59     INFO - GECKO(5192) | [Parent 5984, Main Thread] WARNING: IPC message 'PBrowser::Msg_Destroy' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:506
[task 2022-03-27T10:03:59.658Z] 10:03:59     INFO - GECKO(5192) | [Parent 5984, Main Thread] WARNING: No build ID mismatch: file /builds/worker/checkouts/gecko/dom/base/nsFrameLoader.cpp:3819
[task 2022-03-27T10:03:59.659Z] 10:03:59     INFO - GECKO(5192) | ###!!! [Parent][PContentParent] Error: Send(msgname=PContent::Msg_FlushTabState) Channel error: cannot send/recv
[task 2022-03-27T10:03:59.659Z] 10:03:59     INFO - GECKO(5192) | ###!!! [Parent][PContentParent] Error: Send(msgname=PContent::Msg_DiscardBrowsingContext) Channel error: cannot send/recv
[task 2022-03-27T10:03:59.702Z] 10:03:59     INFO - Console message: 1648375439637	addons.xpi-utils	WARN	Add-on langpack-he@firefox.mozilla.org is not correctly signed.
[task 2022-03-27T10:03:59.728Z] 10:03:59     INFO - GECKO(5192) | MEMORY STAT | vsize 2112711MB | vsizeMaxContiguous 67395334MB | residentFast 501MB | heapAllocated 267MB
[task 2022-03-27T10:03:59.733Z] 10:03:59     INFO - TEST-OK | browser/components/preferences/tests/browser_browser_languages_subdialog.js | took 16879ms
```