Closed Bug 1834040 Opened 3 years ago Closed 2 years ago

high background CPU usage with external display plugged in and laptop lid closed on macOS. Also in Troubleshoot Mode

Categories

(Thunderbird :: General, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr115 affected)

RESOLVED WORKSFORME
Tracking Status
thunderbird_esr115 --- affected

People

(Reporter: robertliu042, Unassigned)

Details

(Keywords: perf, perf:resource-use)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

On macOS (13.3.1(a)), plug in the power, plug in an external monitor, and close the lid.

Now launch Thunderbird (latest stable release 102.11.0 64-bit), and close the main window of it, making it in the background.

Also, I referred to another post here (bug 794401) and set mail.db.idle_limit = 30000000 in the config editor; however, it doesn't seem to fix the issue that I'm reporting below.

Actual results:

After about half an hour, the fans of my MacBook Pro are obviously horning.
If I check Activity Monitor.app, the CPU usage of Thunderbird is over 100% (sometimes approximating 200%).

Only if I quit Thunderbird or make the main window of it to the foreground, will it cool down, with its CPU usage dropping down to about several percentages.

Expected results:

Thunderbird seems to remain cool in the background with the lid open, even with an external display plugged in -- at least during my another half-an-hour test it does.

The behavior of Thunderbird should be the same (cool) when the main window is closed with the lid closed and an external display plugged in.

Additional information:

I tried leaving the main window unclosed just now for ~30mins, with the lid closed and an external display plugged in. This time the window is neither closed nor on the top of the screen -- just behind many other windows, and the CPU usage seems to be normal (up to ~2%).

Hopefully this message is useful.

Keywords: perf

Can you reproduce this after restarting Thunderbird or the Mac?

Flags: needinfo?(robertliu042)

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

Can you reproduce this after restarting Thunderbird or the Mac?

Yes, I tried a few times restarting the app and the machine before reporting it.

Flags: needinfo?(robertliu042)

Does this also reproduce when using version 115 started in Help > Troubleshoot Mode?
If it does, and you have not already done so, please list complete steps to reproduce.

Whiteboard: [closeme 2023-10-01]

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

Does this also reproduce when using version 115 started in Help > Troubleshoot Mode?
If it does, and you have not already done so, please list complete steps to reproduce.

I tried just now and for the past 30 minutes the issue didn't reproduce in Troubleshoot Mode. Yet this issue still remains in the normal mode, so what do I need to do?

Seems you have some broken plugins

Whiteboard: [closeme 2023-10-01]

(In reply to Phoenix from comment #6)

Seems you have some broken plugins

Hello,

Just now I found that the original issue still remained even in Troubleshoot Mode. Somehow it didn’t appear in my 30-minute test before (maybe it was because that test was too short?), but this time I did a longer-term test, in which I launched it and found my fans whirring and its CPU usage above 120% about 5 hrs later (during which period I wasn’t around). It’s CPU usage sharply dropped the second I clicked on the Thunderbird icon and opened the main window again.

Also I must mention I haven’t installed any plugin yet. I just made some tool bar customizations before. And also some code in chrome.css which was also merely for look change (the font size somewhere in this app is really, really too small, by the way).

Does this reproduce with a new profile?
https://support.mozilla.org/en-US/kb/using-multiple-profiles

Component: Untriaged → General
Flags: needinfo?(robertliu042)
Summary: Thunderbird high CPU usage in the background with external display plugged in and laptop lid closed on macOS → high background CPU usage with external display plugged in and laptop lid closed on macOS. Also in Troubleshoot Mode

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

Does this reproduce with a new profile?
https://support.mozilla.org/en-US/kb/using-multiple-profiles

I just took another several-hour test with a total new profile, several of my email accounts logged in. This time the CPU usage issue didn't reproduce. Looks like it's solved.

Flags: needinfo?(robertliu042)

Thanks for the update.

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