Closed Bug 1919725 Opened 1 year ago Closed 1 year ago

128.2.2esr cpu usage hog caused by status bar. OK with 128.2.3.

Categories

(Thunderbird :: Mail Window Front End, defect)

Thunderbird 128
defect

Tracking

(thunderbird_esr128 affected)

RESOLVED WORKSFORME
Tracking Status
thunderbird_esr128 --- affected

People

(Reporter: mbfdias, Unassigned)

Details

(Keywords: perf, regression, Whiteboard: [regression 128.2.1esr -> 128.2.2esr])

Steps to reproduce:

updated to 128.2.2esr

Actual results:

thunderbird 128.2.2esr started to use 50% cpu, hogging system resources, restart thunderbird results in a crash.
had to downgrade to 128.2.1esr and problem is gone

Expected results:

thunderbird 128.2.2esr should not have such a high cpu usage

Keywords: regression
Whiteboard: [regression 128.2.1esr -> 128.2.2esr]

And try Help | Troubleshoot mode. Is that better?

(In reply to Magnus Melin [:mkmelin] from comment #1)

Can you get a performance profile? https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance

I tried, my thunderbird ends in a 'Firefox Profiler

Couldn’t retrieve the profile from ⁨Firefox⁩.

Error: /from-browser only works in Firefox browsers

The full stack has been written to the Web Console.'

for some reason it's not finding my firefox profile, but I'm running firefox, have it installed and it works fine.

(In reply to Magnus Melin [:mkmelin] from comment #2)

And try Help | Troubleshoot mode. Is that better?

I tried suspending all add-ons but the problem still happened, so I re-enabled my add-ons and downgraded.

I followed these instructions I found on https://bugzilla.mozilla.org/show_bug.cgi?id=1631919

For a fully-featured workaround with all profiler data, you can do the following:

Run Thunderbird Daily for best results. (Release Thunderbird doesn't have full stacks on macOS.)
Open the error console, for example using Cmd+Shift+J.
Run the following command to start the profiler:

Services.profiler.StartProfiler(10000000, 1.0, ["stackwalk", "js", "cpu", "screenshots"], ["GeckoMain", "Compositor", "Renderer", "DOM Worker"])
// Parameters: buffer size in bytes, sampling interval in float milliseconds, profiler features, thread filter

Reproduce the slow interaction.
Save the recording to a file, by executing the following in the error console (adjust the path):

await Services.profiler.dumpProfileToFileAsync("/Users/mstange/Desktop/thunderbird-profile.json")
// (on Windows, make sure to escape any backslashes)

Stop the profiler:

Services.profiler.StopProfiler()

In Firefox, go to profiler.firefox.com and load the file into it (using drag and drop or using the file picker).

so I did:

Services.profiler.StartProfiler(10000000, 1.0, ["stackwalk", "js", "cpu", "screenshots"], ["GeckoMain", "Compositor", "Renderer", "DOM Worker"])
await Services.profiler.dumpProfileToFileAsync("/tmp/thunderbird-profile.json")
Services.profiler.StopProfiler()

and got a https://share.firefox.dev/3BbTUYN

(In reply to Magnus Melin [:mkmelin] from comment #1)

Can you get a performance profile? https://support.mozilla.org/en-US/kb/profiling-thunderbird-performance

I hope this helps https://share.firefox.dev/3BbTUYN

Component: Untriaged → General

The developer has a test build based on 128 code and would like feedback on whether it works or still fails. Linux, Mac and Windows:

You can install the test build and use your current Thunderbird data profile. In most cases you are likely using a profile named xxxxx.release-default. https://support.mozilla.org/en-US/kb/using-multiple-profiles for guidance on profiles

Flags: needinfo?(mbfdias)

Also, is performance better if you disable the status bar at View > Toolbars?

If test build doesn't fix the issue, please get the logs which you will find in Error Console - ctrl+shift+J on linux and Windows, command+shift+J on Mac.

The test build is based on version 128 - I have corrected the instructions in comment 7

(In reply to Wayne Mery (:wsmwk) from comment #8)

Also, is performance better if you disable the status bar at View > Toolbars?

performance is better in both this build and 128.2.2esr only with status bar disabled in view->toolbars

here is the log from 128.2.esr while enabling and disabling the status bar, the difference is staggering
https://share.firefox.dev/4djuCFk

and with the daily build https://share.firefox.dev/3BdBZks (with status bar disabled and enabled for a few seconds and back to disabled)

but (both still crash on exit)

Flags: needinfo?(mbfdias)

(In reply to Wayne Mery (:wsmwk) from comment #7)

The developer has a test build based on 128 code and would like feedback on whether it works or still fails. Linux, Mac and Windows:

You can install the test build and use your current Thunderbird data profile. In most cases you are likely using a profile named xxxxx.release-default. https://support.mozilla.org/en-US/kb/using-multiple-profiles for guidance on profiles

this build did not fix the problem, but disabling the status bar at View -> Toolbars did solve the problem cpu usage problem in this buuild and in 128.2.2esr (the crash on exit still happens in both )

(In reply to Wayne Mery (:wsmwk) from comment #9)

If test build doesn't fix the issue, please get the logs which you will find in Error Console - ctrl+shift+J on linux and Windows, command+shift+J on Mac.

1726830616417 addons.xpi WARN Checking /usr/lib/thunderbird/distribution/extensions for addons
1726830617453 addons.xpi WARN Addon with ID thunderbird-compact-light@mozilla.org already installed, older version will be disabled
1726830617453 addons.xpi WARN Addon with ID thunderbird-compact-dark@mozilla.org already installed, older version will be disabled
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. msgHdrView.js:4214:7
cachePrefs static.js:150:28
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help https://xhr.spec.whatwg.org/#sync-warning utils.js:45:7
This instance's UUID: {b4564e5c-e1b7-41bd-9513-388174e24df2} static.js:150:28
could not get managed options Error: Managed storage manifest not found AddonSettings.js:98:21
AddonSettings module loaded. AddonSettings.js:342:13
Send Later version 10.5.7 on Thunderbird 128.2.1 (20240912165517) [linux x86-64] UI locale en-US, Date Locale en-US static.js:150:28
The following defined default value of type object is not frozen. It is recommend that all default options are frozen.
Object { send: true, composeAction: true, link: false }
AddonSettings.js:46:17
Could not get option "settings". Using default.
Object { send: true, composeAction: true, link: false }
AddonSettings.js:267:13
The following defined default value of type object is not frozen. It is recommend that all default options are frozen.
Object { service: "https://send.vis.ee", downloads: 1, time: 1440, size: 2.5 }
AddonSettings.js:46:17
Could not get option "account". Using default.
Object { service: "https://send.vis.ee", downloads: 1, time: 1440, size: 2.5 }
AddonSettings.js:267:13

(In reply to Wayne Mery (:wsmwk) from comment #9)

If test build doesn't fix the issue, please get the logs which you will find in Error Console - ctrl+shift+J on linux and Windows, command+shift+J on Mac.

The previous copy paste was from the 128.2.1esr version

this is the copy paste from the console on the devel-build:

1726830934447 addons.xpi WARN Checking /usr/lib/thunderbird/distribution/extensions for addons
1726830934535 addons.webextension.{e2fda1a4-762b-4020-b5ad-a41df1933103} WARN Loading extension '{e2fda1a4-762b-4020-b5ad-a41df1933103}': Reading manifest: Warning processing legacy: An unexpected property was found in the WebExtension manifest.
1726830934566 addons.xpi-utils WARN Add-on {e2fda1a4-762b-4020-b5ad-a41df1933103} is not compatible with application version. 2
1726830934639 addons.xpi-utils WARN Add-on langpack-en-GB@thunderbird.mozilla.org is not compatible with application version. 2
1726830934649 addons.xpi-utils WARN Add-on langpack-en-CA@thunderbird.mozilla.org is not compatible with application version. 2
1726830935394 addons.xpi-utils WARN Add-on langpack-en-GB@thunderbird.mozilla.org is not compatible with application version.
1726830935394 addons.xpi-utils WARN Add-on langpack-en-CA@thunderbird.mozilla.org is not compatible with application version.
1726830935563 addons.webextension.box-cloudfile@darktrojan.net WARN Loading extension 'box-cloudfile@darktrojan.net': Reading manifest: Warning processing cloud_file.data_format: This property is deprecated
1726830935564 addons.webextension.box-cloudfile@darktrojan.net WARN Loading extension 'box-cloudfile@darktrojan.net': Reading manifest: Warning processing cloud_file.service_url: This property is deprecated
1726830935570 addons.webextension.dropbox-cloudfile@darktrojan.net WARN Loading extension 'dropbox-cloudfile@darktrojan.net': Reading manifest: Warning processing cloud_file.data_format: This property is deprecated
1726830935570 addons.webextension.dropbox-cloudfile@darktrojan.net WARN Loading extension 'dropbox-cloudfile@darktrojan.net': Reading manifest: Warning processing cloud_file.service_url: This property is deprecated
1726830935572 addons.webextension.plik@johannes-endres.de WARN Loading extension 'plik@johannes-endres.de': Reading manifest: Warning processing cloud_file.data_format: This property is deprecated
1726830935572 addons.webextension.plik@johannes-endres.de WARN Loading extension 'plik@johannes-endres.de': Reading manifest: Warning processing cloud_file.service_url: This property is deprecated
1726830935597 addons.xpi WARN Addon with ID thunderbird-compact-light@mozilla.org already installed, older version will be disabled
1726830935598 addons.xpi WARN Addon with ID thunderbird-compact-dark@mozilla.org already installed, older version will be disabled
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help https://xhr.spec.whatwg.org/#sync-warning utils.js:45:7
mailnews.oauth: Creating a new OAuth2 object for accounts.google.com OAuth2Module.sys.mjs:141:11
mailnews.oauth: Found existing OAuth2 object for accounts.google.com OAuth2Module.sys.mjs:135:13
mailnews.oauth: Creating a new OAuth2 object for accounts.google.com OAuth2Module.sys.mjs:141:11
mailnews.oauth: Found existing OAuth2 object for accounts.google.com 2 OAuth2Module.sys.mjs:135:13
mailnews.oauth: Creating a new OAuth2 object for accounts.google.com OAuth2Module.sys.mjs:141:11
mailnews.oauth: Found existing OAuth2 object for accounts.google.com OAuth2Module.sys.mjs:135:13
mailnews.oauth: Creating a new OAuth2 object for accounts.google.com OAuth2Module.sys.mjs:141:11
mailnews.oauth: Found existing OAuth2 object for accounts.google.com OAuth2Module.sys.mjs:135:13
mailnews.oauth: Creating a new OAuth2 object for login.microsoftonline.com OAuth2Module.sys.mjs:141:11
mailnews.oauth: Found existing OAuth2 object for login.microsoftonline.com OAuth2Module.sys.mjs:135:13
mailnews.oauth: Creating a new OAuth2 object for login.microsoftonline.com OAuth2Module.sys.mjs:141:11
mailnews.oauth: Found existing OAuth2 object for login.microsoftonline.com OAuth2Module.sys.mjs:135:13
mailnews.oauth: Creating a new OAuth2 object for login.microsoftonline.com OAuth2Module.sys.mjs:141:11
mailnews.oauth: Found existing OAuth2 object for login.microsoftonline.com OAuth2Module.sys.mjs:135:13
TypeError: tab.chromeBrowser.contentWindow.displayFolder is not a function
mailTabs.js:179:45
cachePrefs static.js:150:28
This instance's UUID: {b4564e5c-e1b7-41bd-9513-388174e24df2} static.js:150:28
Object { reason: "browser_update", temporary: false }
background.js:1061:10
Send Later version 10.5.7 on Thunderbird 128.2.2 (20240917161604) [linux x86-64] UI locale en-US, Date Locale en-US static.js:150:28
could not get managed options Error: Managed storage manifest not found AddonSettings.js:98:21
AddonSettings module loaded. AddonSettings.js:342:13
The following defined default value of type object is not frozen. It is recommend that all default options are frozen.
Object { send: true, composeAction: true, link: false }
AddonSettings.js:46:17
Could not get option "settings". Using default.
Object { send: true, composeAction: true, link: false }
AddonSettings.js:267:13
The following defined default value of type object is not frozen. It is recommend that all default options are frozen.
Object { service: "https://send.vis.ee", downloads: 1, time: 1440, size: 2.5 }
AddonSettings.js:46:17
Could not get option "account". Using default.
Object { service: "https://send.vis.ee", downloads: 1, time: 1440, size: 2.5 }
AddonSettings.js:267:13
mailnews.oauth: Making a refresh request to the token endpoint: https://login.microsoftonline.com/common/oauth2/v2.0/token OAuth2.sys.mjs:317:16
Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. msgHdrView.js:4214:7
mailnews.oauth: Successful response from the authorization server: {"token_type":"Bearer","scope":"https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send","expires_in":4653,"ext_expires_in":4653,"access_token":"eyJ0eXAiOiJKV1QiLCJub25jZSI6InZzYko3cWZyQ1d0dXF6TDg1NmIyRHZXZ2plLW9VQkRoalltNEF1N1ZYeTAiLCJhbGciOiJSUzI1NiIsIng1dCI6Ikg5bmo1QU9Tc3dNcGhnMVNGeDdqYVYtbEI5dyIsImtpZCI6Ikg5bmo1QU9Tc3dNcGhnMVNGeDdqYVYtbEI5dyJ9.eyJhdWQiOiJodHRwczovL291dGxvb2sub2ZmaWNlLmNvbSIsImlzcyI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0L2MzM2NiOGNkLTMwNjctNDg4OS04MzMzLTZmOWQyZjgzMDQwMi8iLCJpYXQiOjE3MjY4MzA2MzgsIm5iZiI6MTcyNjgzMDYzOCwiZXhwIjoxNzI2ODM1NTkyLCJhY2N0IjowLCJhY3IiOiIxIiwiYWlvIjoiQVRRQXkvOFhBQUFBNWRDSjZ0REdqQ3dKeWxqYWc0WXI1cUVLWDZBTVl4WlRHY21ycGZOU3FvNGlqQzQxbWpicmlIRDgyR2Jmc2Z0WiIsImFtciI6WyJwd2QiXSwiYXBwX2Rpc3BsYXluYW1lIjoiVGh1bmRlcmJpcmQiLCJhcHBpZCI6IjllNWY5NGJjLWU4YTQtNGU3My1iOGJlL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6-_ClMrWyUQpumcQBGBDLK0UbScQeRM8EnwhKhHrvL53tJAM5q8HeGaoZsSw8NkhzrsbJgehtwN42H94WAe4hwRM64uMHPnInx8VZJgUh9lMhWBZRcMUmitQpCZZ9a0NXor56xZTtocmWlBSxT1JVJbLPvp2dcAqxZM76iPnSpLvVFt0Ur6eNlRQ-oup2kX4OT_jwPRUhfqSoGIxzST6Dbg1RHPavJkVRH-By_1v_55V2zgHl0s5fHSJaSX8DgAY"} OAuth2.sys.mjs:372:18
mailnews.oauth: Found existing login for oauth://login.microsoftonline.com... OAuth2Module.sys.mjs:192:13
mailnews.oauth: ... changing password OAuth2Module.sys.mjs:197:15
mailnews.oauth: ... changing httpRealm from "https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access" to "https://outlook.office.com/IMAP.AccessAsUser.All https://outlook.office.com/POP.AccessAsUser.All https://outlook.office.com/SMTP.Send offline_access" OAuth2Module.sys.mjs:201:15
NS_ERROR_FAILURE: This login already exists. LoginHelper.sys.mjs:1847
NS_ERROR_FAILURE: This login already exists. LoginHelper.sys.mjs:1847
TypeError: messageBrowser is null
#getMessageBrowserWindow jar:file:///home/mbd/.thunderbird/5myqhtzp.default/extensions/dkim_verifier@pl.xpi!/experiments/dkimHeader.js:1216
onLoadWindow jar:file:///home/mbd/.thunderbird/5myqhtzp.default/extensions/dkim_verifier@pl.xpi!/experiments/dkimHeader.js:1228
checkAndRunExtensionCode resource:///modules/ExtensionSupport.sys.mjs:220
_checkAndRunMatchingExtensions resource:///modules/ExtensionSupport.sys.mjs:191
registerWindowListener resource:///modules/ExtensionSupport.sys.mjs:67
registerWindowListener resource:///modules/ExtensionSupport.sys.mjs:66
open jar:file:///home/mbd/.thunderbird/5myqhtzp.default/extensions/dkim_verifier@pl.xpi!/experiments/dkimHeader.js:1224
<anonymous> jar:file:///home/mbd/.thunderbird/5myqhtzp.default/extensions/dkim_verifier@pl.xpi!/experiments/dkimHeader.js:1181
asyncGetAPI resource://gre/modules/ExtensionCommon.sys.mjs:1722
ExtensionSupport.sys.mjs:230:17

Hi

128.2.3esr seems fine again

https://share.firefox.dev/4gz4EjT

Thanks for all the info.

So something in 128.2.2 caused the progress meter in the status bar to fire frequently/continously.

Component: General → Mail Window Front End
Summary: 128.2.2esr cpu usage hog → 128.2.2esr cpu usage hog caused by status bar. OK with 128.2.3.

Thanks for trying the test build. Can I get you to try it again in Troubleshoot Mode (i.e. with the add-ons disabled)? We're still trying to find the cause of 128.2.2's connection issues and add-ons are a potential suspect we've yet to rule out.

(In reply to Geoff Lankow (:darktrojan) from comment #17)

Thanks for trying the test build. Can I get you to try it again in Troubleshoot Mode (i.e. with the add-ons disabled)? We're still trying to find the cause of 128.2.2's connection issues and add-ons are a potential suspect we've yet to rule out.

I installed the test build again, running with -safe-mode, add-ons disabled, here's a profile window https://share.firefox.dev/3zrGQho

solved in 128.3.0esr

https://share.firefox.dev/4eM8ch1

(In reply to mbfdias@gmail.com from comment #19)

solved in 128.3.0esr

-> WFM then

Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.