Closed Bug 1963348 Opened 1 year ago Closed 1 year ago

High frequency msix dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | single tracking bug

Categories

(Core :: DOM: Geolocation, defect, P5)

Unspecified
Windows 11
defect

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox138 --- unaffected
firefox139 --- unaffected
firefox140 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: saschanaz)

References

(Regression)

Details

(Keywords: intermittent-failure, intermittent-testcase, regression)

Attachments

(1 file, 1 obsolete file)

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


[task 2025-04-29T12:58:44.410Z] 12:58:44     INFO -  TEST-START | dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js
[task 2025-04-29T13:03:44.415Z] 13:03:44  WARNING -  TEST-UNEXPECTED-TIMEOUT | dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | Test timed out
[task 2025-04-29T13:03:44.416Z] 13:03:44     INFO -  TEST-INFO took 300005ms
[task 2025-04-29T13:03:44.416Z] 13:03:44     INFO -  >>>>>>>
[task 2025-04-29T13:03:44.416Z] 13:03:44     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2025-04-29T13:03:44.416Z] 13:03:44     INFO -  (xpcshell/head.js) | test run in child pending (2)
[task 2025-04-29T13:03:44.416Z] 13:03:44     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2025-04-29T13:03:44.417Z] 13:03:44     INFO -  running event loop
[task 2025-04-29T13:03:44.417Z] 13:03:44     INFO -  CHILD-TEST-STARTED
[task 2025-04-29T13:03:44.417Z] 13:03:44     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2025-04-29T13:03:44.417Z] 13:03:44     INFO -  (xpcshell/head.js) | test pending (2)
[task 2025-04-29T13:03:44.418Z] 13:03:44     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2025-04-29T13:03:44.418Z] 13:03:44     INFO -  running event loop
[task 2025-04-29T13:03:44.418Z] 13:03:44     INFO -  "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "D:/task_174592979787938/build/tests/xpcshell/head.js" line: 371}]"
[task 2025-04-29T13:03:44.419Z] 13:03:44     INFO -  "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "D:/task_174592979787938/build/tests/xpcshell/head.js" line: 371}]"
[task 2025-04-29T13:03:44.419Z] 13:03:44     INFO -  PID 5336 | console.error: (new TypeError("UrlNotUsedHere is not a valid URL.", "resource://gre/modules/NetworkGeolocationProvider.sys.mjs", 496))
[task 2025-04-29T13:03:44.419Z] 13:03:44     INFO -  TEST-PASS | dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | errorCallback - [errorCallback : 8] 2 == 2
[task 2025-04-29T13:03:44.419Z] 13:03:44     INFO -  TEST-PASS | dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | errorCallback - [errorCallback : 9] 2 == 2
[task 2025-04-29T13:03:44.420Z] 13:03:44     INFO -  (xpcshell/head.js) | test finished (1)
[task 2025-04-29T13:03:44.420Z] 13:03:44     INFO -  exiting test
[task 2025-04-29T13:03:44.420Z] 13:03:44     INFO -  CHILD-TEST-COMPLETED
[task 2025-04-29T13:03:44.420Z] 13:03:44     INFO -  (xpcshell/head.js) | test finished (1)
[task 2025-04-29T13:03:44.420Z] 13:03:44     INFO -  exiting test
[task 2025-04-29T13:03:44.420Z] 13:03:44     INFO -  PID 5336 | Exiting due to channel error.
[task 2025-04-29T13:03:44.421Z] 13:03:44     INFO -  <<<<<<<
[task 2025-04-29T13:03:44.421Z] 13:03:44     INFO -  xpcshell return code: None
[task 2025-04-29T13:20:24.431Z] 13:20:24     INFO - Automation Error: mozharness timed out after 1000 seconds running ['D:\\task_174592979787938\\build\\venv\\Scripts\\python', '-u', 'D:\\task_174592979787938\\build\\tests\\xpcshell\\runxpcshelltests.py', 'browser/components/aboutwelcome/tests/xpcshell/xpcshell.toml', 'browser/components/customizableui/test/unit/xpcshell.toml', 'browser/components/genai/tests/xpcshell/xpcshell.toml', 'browser/components/pagedata/tests/unit/xpcshell.toml', 'browser/components/sessionstore/test/unit/xpcshell.toml', 'browser/components/shell/test/unit/xpcshell.toml', 'browser/components/tests/unit/xpcshell.toml', 'browser/extensions/formautofill/test/unit/xpcshell.toml', 'browser/installer/windows/nsis/test/xpcshell/xpcshell.toml', 'caps/tests/unit/xpcshell.toml', 'devtools/client/application/test/xpcshell/xpcshell.toml', 'devtools/client/inspector/compatibility/test/xpcshell/xpcshell.toml', 'devtools/client/performance-new/test/xpcshell/xpcshell.toml', 'devtools/client/shared/remote-debugging/test/xpcshell/xpcshell.toml', 'devtools/server/actors/compatibility/lib/test/xpcshell/xpcshell.toml', 'devtools/shared/heapsnapshot/tests/xpcshell/xpcshell.toml', 'devtools/shared/security/tests/xpcshell/xpcshell.toml', 'devtools/shared/webconsole/test/xpcshell/xpcshell.toml', 'docshell/test/unit_ipc/xpcshell.toml', 'dom/base/test/unit/xpcshell.toml', 'dom/encoding/test/unit/xpcshell.toml', 'dom/geolocation/test/unit/xpcshell.toml', 'dom/localstorage/test/unit/xpcshell.toml', 'dom/privateattribution/tests/xpcshell/xpcshell.toml', 'dom/quota/test/xpcshell/telemetry/xpcshell.toml', 'dom/simpledb/test/xpcshell/xpcshell.toml', 'dom/webtransport/test/xpcshell/xpcshell.toml', 'extensions/permissions/test/unit/xpcshell.toml', 'extensions/pref/autoconfig/test/unit/xpcshell.toml', 'extensions/pref/autoconfig/test/unit/xpcshell_snap.toml', 'intl/l10n/test/xpcshell.toml', 'ipc/testshell/tests/xpcshell.toml', 'mobile/shared/components/extensions/test/xpcshell/xpcshell.toml', 'mobile/shared/modules/geckoview/test/xpcshell/xpcshell.toml', 'modules/libjar/test/unit/xpcshell.toml', 'modules/libmar/tests/unit/xpcshell.toml', 'netwerk/cookie/test/unit/xpcshell.toml', 'netwerk/test/unit/xpcshell.toml', 'remote/marionette/test/xpcshell/xpcshell.toml', 'remote/webdriver-bidi/test/xpcshell/xpcshell.toml', 'services/crypto/tests/unit/xpcshell.toml', 'storage/test/unit/xpcshell.toml', 'testing/xpcshell/test/unit/xpcshell.toml', 'toolkit/components/antitracking/test/xpcshell/xpcshell.toml', 'toolkit/components/backgroundhangmonitor/tests/xpcshell.toml', 'toolkit/components/captivedetect/test/unit/xpcshell.toml', 'toolkit/components/commandlines/test/unit_unix/xpcshell.toml', 'toolkit/components/contextualidentity/tests/unit/xpcshell.toml', 'toolkit/components/credentialmanagement/tests/xpcshell/xpcshell.toml', 'toolkit/components/enterprisepolicies/tests/xpcshell/xpcshell.toml', 'toolkit/components/extensions/test/xpcshell/xpcshell-legacy-ep.toml', 'toolkit/components/forgetaboutsite/test/unit/xpcshell.toml', 'toolkit/components/messaging-system/targeting/test/unit/xpcshell.toml', 'toolkit/components/passwordmgr/test/unit/xpcshell.toml', 'toolkit/components/places/tests/history/xpcshell.toml', 'toolkit/components/places/tests/queries/xpcshell.toml', 'toolkit/components/promiseworker/tests/xpcshell/xpcshell.toml', 'toolkit/components/resistfingerprinting/tests/xpcshell/xpcshell.toml', 'toolkit/components/search/tests/xpcshell/searchconfigs/xpcshell.toml', 'toolkit/components/taskscheduler/tests/xpcshell/xpcshell.toml', 'toolkit/components/thumbnails/test/xpcshell.toml', 'toolkit/components/url-classifier/tests/unit/xpcshell.toml', 'toolkit/components/xulstore/tests/xpcshell/xpcshell.toml', 'toolkit/crashreporter/test/unit/xpcshell-phc.toml', 'toolkit/crashreporter/test/unit/xpcshell.toml', 'toolkit/modules/subprocess/test/xpcshell/xpcshell.toml', 'toolkit/mozapps/extensions/test/xpcshell/rs-blocklist/xpcshell.toml', 'toolkit/mozapps/update/tests/unit_aus_update/xpcshell.toml', 'toolkit/mozapps/update/tests/unit_background_update/xpcshell.toml', 'toolkit/mozapps/update/tests/unit_update_binary/xpcshell_base.toml', 'toolkit/mozapps/update/tests/unit_update_binary/xpcshell_service.toml', 'toolkit/xre/test/xpcshell.toml', 'widget/headless/tests/xpcshell.toml', '--variant=msix', '--setpref=layout.css.stylo-threads=4', '--setpref=media.peerconnection.mtransport_process=false', '--setpref=network.process.enabled=false', '--setpref=layers.d3d11.enable-blacklist=false', '--self-test', '--symbols-path=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/RV6WZMXBTZaLEVyJIATGAg/artifacts/public/build/target.crashreporter-symbols.zip', '--log-errorsummary=D:\\task_174592979787938\\build\\blobber_upload_dir\\xpcshell_errorsummary.log', '--utility-path=tests/bin', '--manifest=tests/xpcshell/tests/xpcshell.toml', '--xpcshell=C:\\Program Files\\WindowsApps\\Mozilla.MozillaFirefoxNightly_140.2504.2911.0_x64__5x4grbbqzn2q4\\VFS\\ProgramFiles\\MozillaFirefoxNightly Package Root/xpcshell.exe', '--msix-app-binary=C:\\Program Files\\WindowsApps\\Mozilla.MozillaFirefoxNightly_140.2504.2911.0_x64__5x4grbbqzn2q4\\VFS\\ProgramFiles\\MozillaFirefoxNightly Package Root\\firefox.exe', '--msix-app-path=C:\\Program Files\\WindowsApps\\Mozilla.MozillaFirefoxNightly_140.2504.2911.0_x64__5x4grbbqzn2q4\\VFS\\ProgramFiles\\MozillaFirefoxNightly Package Root', '--msix-xre-path=C:\\Program Files\\WindowsApps\\Mozilla.MozillaFirefoxNightly_140.2504.2911.0_x64__5x4grbbqzn2q4\\VFS\\ProgramFiles\\MozillaFirefoxNightly Package Root']
[task 2025-04-29T13:20:24.432Z] 13:20:24     INFO - Return code: 1
[task 2025-04-29T13:20:24.433Z] 13:20:24    ERROR - No tests run or test summary not found
[task 2025-04-29T13:20:24.433Z] 13:20:24     INFO - TinderboxPrint: xpcshell-xpcshell<br/><em class="testfail">T-FAIL</em>
[task 2025-04-29T13:20:24.433Z] 13:20:24  WARNING - setting return code to 2

Kagami, I wonder if this might be related to your work on bug 1960651 which landed at the same day when those failures started to happen.

Flags: needinfo?(krosylight)

Almost all of them are xpcshell-msix-1 ? πŸ€”

It's also weird because per the log everything went as expected, why the error?

Based on that comment in the test IndexDB seems to be required for geolocation? If yes, look those failures around this component:

https://treeherder.mozilla.org/logviewer?job_id=507346164&repo=autoland&lineNumber=4615-4618

[task 2025-05-09T07:28:45.027Z] 07:28:45     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB UnknownErr: ActorsParent.cpp:581"]"
[task 2025-05-09T07:28:45.027Z] 07:28:45     INFO -  PID 6300 | console.error: services.settings:
[task 2025-05-09T07:28:45.028Z] 07:28:45     INFO -  PID 6300 |   Message: UnknownError: IndexedDB: main/mfcdm-origins-list getLastModified() IndexedDB:   The operation failed for reasons unrelated to the database itself and not covered by any other error code.

Maybe the database is corrupt?

OS: Unspecified → Windows 11
Summary: Intermittent dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | single tracking bug → Intermittent msix dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | single tracking bug
Summary: Intermittent msix dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | single tracking bug → High frequency msix dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | single tracking bug

Backfills confirmed that Bug 1960651 is the regressor

Keywords: regression
Regressed by: 1960651

Set release status flags based on info from the regressing bug 1960651

(In reply to Henrik Skupin [:whimboo][⌚️UTC+2] from comment #5)

Based on that comment in the test IndexDB seems to be required for geolocation? If yes, look those failures around this component:

https://treeherder.mozilla.org/logviewer?job_id=507346164&repo=autoland&lineNumber=4615-4618

[task 2025-05-09T07:28:45.027Z] 07:28:45     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB UnknownErr: ActorsParent.cpp:581"]"
[task 2025-05-09T07:28:45.027Z] 07:28:45     INFO -  PID 6300 | console.error: services.settings:
[task 2025-05-09T07:28:45.028Z] 07:28:45     INFO -  PID 6300 |   Message: UnknownError: IndexedDB: main/mfcdm-origins-list getLastModified() IndexedDB:   The operation failed for reasons unrelated to the database itself and not covered by any other error code.

Maybe the database is corrupt?

Yeah, but even then the test passes and then exits with a "channel error"?

[task 2025-05-09T07:28:45.027Z] 07:28:45     INFO -  "CONSOLE_MESSAGE: (error) [JavaScript Error: "IndexedDB UnknownErr: ActorsParent.cpp:581"]"
[task 2025-05-09T07:28:45.027Z] 07:28:45     INFO -  PID 6300 | console.error: services.settings:
[task 2025-05-09T07:28:45.028Z] 07:28:45     INFO -  PID 6300 |   Message: UnknownError: IndexedDB: main/mfcdm-origins-list getLastModified() IndexedDB:   The operation failed for reasons unrelated to the database itself and not covered by any other error code.
[task 2025-05-09T07:28:45.029Z] 07:28:45     INFO -  CHILD-TEST-STARTED
[task 2025-05-09T07:28:45.029Z] 07:28:45     INFO -  (xpcshell/head.js) | test MAIN run_test pending (1)
[task 2025-05-09T07:28:45.029Z] 07:28:45     INFO -  (xpcshell/head.js) | test pending (2)
[task 2025-05-09T07:28:45.029Z] 07:28:45     INFO -  (xpcshell/head.js) | test MAIN run_test finished (2)
[task 2025-05-09T07:28:45.030Z] 07:28:45     INFO -  running event loop
[task 2025-05-09T07:28:45.030Z] 07:28:45     INFO -  "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "D:/task_174677401460361/build/tests/xpcshell/head.js" line: 371}]"
[task 2025-05-09T07:28:45.031Z] 07:28:45     INFO -  "CONSOLE_MESSAGE: (warn) [JavaScript Warning: "Use of nsIFile in content process is deprecated." {file: "D:/task_174677401460361/build/tests/xpcshell/head.js" line: 371}]"
[task 2025-05-09T07:28:45.031Z] 07:28:45     INFO -  PID 6300 | console.error: (new TypeError("UrlNotUsedHere is not a valid URL.", "resource://gre/modules/NetworkGeolocationProvider.sys.mjs", 393))
[task 2025-05-09T07:28:45.031Z] 07:28:45     INFO -  TEST-PASS | dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | errorCallback - [errorCallback : 8] 2 == 2
[task 2025-05-09T07:28:45.032Z] 07:28:45     INFO -  TEST-PASS | dom/geolocation/test/unit/test_geolocation_position_unavailable_wrap.js | errorCallback - [errorCallback : 9] 2 == 2
[task 2025-05-09T07:28:45.032Z] 07:28:45     INFO -  (xpcshell/head.js) | test finished (1)
[task 2025-05-09T07:28:45.032Z] 07:28:45     INFO -  exiting test
[task 2025-05-09T07:28:45.032Z] 07:28:45     INFO -  CHILD-TEST-COMPLETED
[task 2025-05-09T07:28:45.033Z] 07:28:45     INFO -  (xpcshell/head.js) | test finished (1)
[task 2025-05-09T07:28:45.033Z] 07:28:45     INFO -  exiting test
[task 2025-05-09T07:28:45.033Z] 07:28:45     INFO -  PID 6300 | Exiting due to channel error.

Hi Nick, given this is MSIX specific, have you seen this kind of error on MSIX?

Flags: needinfo?(krosylight) → needinfo?(nalexander)

Hi Nick, given this is MSIX specific, have you seen this kind of error on MSIX?

Sorry, no. I could imagine many things here: issues with IndexedDB specific to MSIX; issues with geolocation under MSIX; basic races. It's quite challenging to iterate on this locally, but we may have instructions written down somewhere.

Max: does this ring any bells for you? I think you worked on some MSIX tests, could you direct to testing docs if they exist? Thanks!

Flags: needinfo?(nalexander) → needinfo?(mpohle)

Skipping do_get_profile still allows the test to pass, I wonder we can just skip it and proceed?

@sstanca: You wrote:

// XPCShell does not get a profile by default. The geolocation service
// depends on the settings service which uses IndexedDB and IndexedDB
// needs a place where it can store databases.
do_get_profile();

in https://searchfox.org/mozilla-central/rev/b7b6aa5e8ffc27bc70d4c129c95adc5921766b93/dom/geolocation/test/unit/test_geolocation_position_unavailable.js#17-21

Do you have an overview of this situation that would allow you to know if that is required here, too?

Assignee: nobody → mpohle
Status: NEW → ASSIGNED

I am also not aware that I have seen something similar, but the other error about UrlNotUsedHere could be a copy and paste error:

test_geolocation_position_unavailable.js has UrlNotUsedHere: (with a colon) and

test_geolocation_position_unavailable_wrap.js (=this test) has UrlNotUsedHere (without colon)

Flags: needinfo?(mpohle)
Assignee: mpohle → nobody
Status: ASSIGNED → NEW

I think either UrlNotUsedHere is intentional, the test simulates a broken server URL and either way it's broken as expected.

No failures happened today after bug 1966151 landed (per the graph), so I'm cautiously closing this. Please reopen if failures happen again. And sorry for the big noise.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Assignee: nobody → krosylight
Target Milestone: --- → 140 Branch
Attachment #9487784 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: