Closed Bug 2015206 Opened 9 months ago Closed 9 months ago

20,200 instances of "Existing entry in StartupCache." emitted from startupcache/StartupCache.cpp

Categories

(Toolkit :: Startup and Profile System, defect)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr140 --- unaffected
firefox147 --- wontfix
firefox148 --- wontfix
firefox149 --- fixed

People

(Reporter: mccr8, Assigned: mconley)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 external file)

20222 WARNING: Existing entry in StartupCache.: file startupcache/StartupCache.cpp:473

This warning is new. It was not present in the top 10 on January 2 2026 when I last looked at frequent warnings.

This is the second most common warning on MacOS, third most common on Linux64 and Windows. The actual warning is very old, and the entire StartupCache.cpp file hasn't changed since December, so I'm not sure what caused this. It appears to be spread out across many tests.

This warning shows up in 34 test suites. A few of the most prevalent:

  2043 - test-linux2404-64/debug-mochitest-devtools-chrome-http3-2 dt2
  1838 - test-linux2404-64/debug-mochitest-devtools-chrome-1 dt1
  1476 - test-linux2404-64/debug-mochitest-browser-chrome-swr-8 bc8
  1443 - test-linux2404-64/debug-mochitest-devtools-chrome-10 dt10
  1378 - test-linux2404-64/debug-mochitest-browser-chrome-swr-3 bc3
  1330 - test-linux2404-64/debug-mochitest-devtools-chrome-http3-1 dt1
  1265 - test-linux2404-64/debug-mochitest-devtools-chrome-http3-14 dt14
  1155 - test-linux2404-64/debug-mochitest-browser-chrome-swr-4 bc4
   976 - test-linux2404-64/debug-mochitest-devtools-chrome-5 dt5
   873 - test-linux2404-64/debug-mochitest-devtools-chrome-http3-10 dt10

It shows up in 4055 tests. A few of the most prevalent:

   111 -        devtools/client/framework/test/browser_toolbox_many_toggles.js
    54 -        browser/components/preferences/tests/browser_privacy_dnsoverhttps.js
    50 -        browser/components/tabbrowser/test/browser/tabs/browser_tab_preview.js
    49 -        devtools/client/framework/test/browser_toolbox_hosts.js
    32 -        browser/components/preferences/tests/browser_search_firefoxSuggest.js
    28 -        devtools/client/debugger/test/mochitest/integration/browser_dbg-features-source-tree.js
    28 -        devtools/client/debugger/test/mochitest/integration/browser_dbg-integration-reloading-uncompressed-sourcemaps.js
    24 -        devtools/client/debugger/test/mochitest/integration/browser_dbg-features-source-text-content.js
    22 -        devtools/client/inspector/rules/test/browser_rules_keybindings.js
    22 -        devtools/client/debugger/test/mochitest/integration/browser_dbg-integration-reloading-compressed-sourcemaps.js

It looks like this is a regression from bug 2012009. Nika pointed me at the places that used the startup cache, and one of them was the place that changed in that bug. Then I confirmed it by looking at logs before and after that landed.

Nika suggested: "Maybe this stops requesting them from the cache, but didn't stop writing to the cache. So we end up writing to the cache over & over again every time it's loaded"

I'm not sure if this is a problem or not.

Severity: -- → S4
Type: task → defect
Keywords: regression
Regressed by: 2012009

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

:mconley, since you are the author of the regressor, bug 2012009, could you take a look?

For more information, please visit BugBot documentation.

(Morally, this is a "task" and not a "defect" as there's no user impact, but Bugzilla won't let you make a task a regression, I think.)

mozJSModuleLoader already seems to have a check to ensure that the script is allowed
to be read from the cache before it attempts to write it, but mozJSSubScriptLoader
does not.

Assignee: nobody → mconley
Status: NEW → ASSIGNED

Thanks for the quick fix!

No problem, sorry for the log spam. :)

Flags: needinfo?(mconley)
Flags: needinfo?(tcampbell)

r+ for the updated version. thanks

Flags: needinfo?(tcampbell)
Pushed by mconley@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d47b0c42211c https://hg.mozilla.org/integration/autoland/rev/642eb66b3a91 Don't cache things in mozJSSubScriptLoader if we don't plan on reading them out again. r=tcampbell
Status: ASSIGNED → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch

The patch landed in nightly and beta is affected.
:mconley, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mconley)
Flags: needinfo?(mconley)
QA Whiteboard: [qa-triage-done-c150/b149]

This is debug-build only logspam, I don't think it's really worthy of an uplift, tbh.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: