Closed Bug 1734111 Opened 3 years ago Closed 2 years ago

Using 35gb of memory and not responding after power nap, only with calendar(s) enabled - "the computer has run out of memory available for applications"

Categories

(Calendar :: General, defect)

Thunderbird 91
Unspecified
macOS
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: sfroyers, Unassigned)

Details

(Keywords: hang, memory-leak)

Attachments

(12 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Steps to reproduce:

Thunderbird 91.1.2
MacOSX 11.6 (latest)
Disk with free space greater than 130Gb
Start thunderbird.
I abandon the computer that goes into power nap.

Actual results:

On my return I find thunderbird frozen and a warning indicating "the computer has run out of memory available for applications".
Only solution, kill the application and reopen it.

Expected results:

I should just find the active application.

Type: enhancement → defect

Emanuele,
Does it reproduce after doing Help > Troubleshoot mode?

Flags: needinfo?(sfroyers)

I put thunderbird in troubleshoot mode and leave it on for a few days so I can do a reliable verification.
I'll let you know in the next few days.
Sorry if the times are long but the problem does not reappear immediately ...

Flags: needinfo?(sfroyers)

Hello
Yesterday, as I told you I let the mac go into powernap leaving thunderbird (IN TROUBLESHOOTING MODE, ALL ADDITIONAL COMPONENTS DISABLED.) Minimized, but running.
This morning I wake up the mac, I click on the TB icon and it doesn't re-expand. (This has already happened too. Seems to be a result of the same problem).
I open activity monitoring to see how much memory had occupied and surprised!
Thunderbird had occupied about 35Gb ... and is not responding.
I notice that as the seconds pass, the memory drops. I had never noticed this. So I recorded a small video where this behavior is noted. The sudden reduction of memory occupied until the reopening of thunderbird is clearly visible.
Note: 35Gb only because it has been in powernap for about ten hours. It seems that the thing is linear. The more hours pass in stand-by, the more thunderbird increases the value of memory used up to absurd values.
The time to write this mail with thunderbird open in the background and the memory value dropped to 790Mb.

Flags: needinfo?(vseerror)
Attached video Reduced busy memory.mov

No idea from anyone on the whole planet?

(In reply to Emanuele Repetto from comment #5)

No idea from anyone on the whole planet?

Better after updating to 91.2.1?
Do you use Mac addressbook, or language packs in Thunderbird?

Component: Untriaged → General
Flags: needinfo?(vseerror) → needinfo?(sfroyers)
OS: Unspecified → macOS
Summary: MacOS out of memory available for applications → Thunderbird in troubleshoot mode using 35gb of memory and not responding after power nap. Also MacOS ""the computer has run out of memory available for applications"
Whiteboard: [closeme 2021-11-01]

Sorry I'm late, but the test takes time. I have to spend several hours to understand.
Unfortunately not, or rather in part.
With the new version, it only takes longer for the problem to arise, but it does show up anyway.
Use Mac addressbook.
No language pack.
No extensions.
And the application is clean.
I haven't made any changes since the last reinstall.
Not even the button bar.
See new photo posted.

Flags: needinfo?(sfroyers) → needinfo?(vseerror)
Attached image first
Attached image second
Attached image third

Upon awakening, first, second and after few minutes, third photo.
In third condition, thunderbird works fine again.....but with about 2 minutes of waiting....

Hi, I am observing similar behaviour on Windows 2012r2 with Thunderbird 91.2.1. I'd guess it started with 91.2 and with 91.2.1 it seems to take longer until it happens. So far my observations:

  • it only happens if Thunderbird is minimised
  • at a certain point, RAM usage (working set) steadily goes up until all available RAM is occupied
  • at that point, some programs (firefox, pale moon or Thunderbird itselve) start to crash due to the low available RAM
  • as soon as Thunderbird GUI is visible, RAM usage goes down to 'normal'
    I have not yet performed the troubleshooting mode test.
    And yes, I am using Thunderbird in en_GB with additional de_DE language pack installed.
    I have 8 mail accounts attached and various message filters which delete or move messages between folders and accounts.

Correction: This morning, after leaving the desktop idle for 30', the memory was used up, again, and it dropped the seconds after resume working, even without expanding the Thunderbird GUI. So, it was still minimised while the situation cleared up. But other apps already crashed due to that RAM shortage (see SystemInformation.png).

Attached image SystemInformation.png

(In reply to kr from comment #12)

And yes, I am using Thunderbird in en_GB with additional de_DE language pack installed.

Try removing the language pack.

Flags: needinfo?(vseerror)

I'm still testing without language pack - but because the bug sometimes does not occur for hours, it will need a bit more of observation. So far, no RAM issues since removing the language pack.

Is there a known issue with the language packs? It's a pretty nice feature and intensively used in our multi-user environment (de_DE & en_GB).

Hello all & @kr.
It is worth running all the tests you talked about especially because we work on two different environments (windows and mac).
To keep track of the activities carried out, know that I have already done tests without any language pack, any extension, any customization.
After that, I radically deleted the application and performed a clean reinstall. Left as it is and tested for days.
After that, I kept Thunderbird in troubleshooting mode for days.
In all the cases described above, no results.
... but the behavior is identical. If the application is minimized or closed but left running, thunderbird fills the memory until it is saturated causing the application to freeze.
(Mac users know what I'm talking about. With mac an application can be minimized, closed but left active in idle, or terminated.)
No difference between application in idle or minimized.
I confirm that the misbehavior I started noticing since version 91.2.

With 91.3.0 any improvement.
The problem persists.

Flags: needinfo?(vseerror)

After 3 days of testing without the language pack and no occurencies of that bug, I switched back to the original config (with de-DE language pack installed) and no occurencies since then, either... pretty strange...
I'm still on 91.2.1, haven't done anything else than using thunderbird, stopping/starting Desktop/Thunderbird/System once in a while that would be relevant to thunderbird itself. Also, last Windows patches have been applied before my 1st reports of that issue.
I'm baffled...

Be patient ... I need clarification.
When you talk about language packs, I assume you are talking about additional languages.
I err?
In any case I guess you have downloaded the native version of thunderbird in your language. I err?
Could you be more precise in describing your setup?

Sorry if I insist, but with the new version, the first day, no strange behavior.
I'm back today after a night out. Freezed.
... and it's not a machine problem. GUARANTEED.
I would like to understand something more ...
........but frankly I have not found great participation from the staff as in the past ...........

Flags: needinfo?(koni)

Please do help > more troubleshooting info > copy text to clipboard.
Put that into a text file, and please attach it to the bug report using "Attach a file" just above comment 0

Flags: needinfo?(vseerror) → needinfo?(sfroyers)

@er: I'm using the en-GB installer for Thunderbird and am adding the "Deutsch (DE) Language Pack", which allows to switch the thunderbird GUI to german. That language pack is copied to the /distribution/extensions directory in the program directory to automatically add it to each thunderbird profile.
@wm: you want mine, too (even though it currently does not pop up, anymore)?

Flags: needinfo?(koni)

(In reply to kr from comment #22)

@wm: you want mine, too (even though it currently does not pop up, anymore)?

no

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

Please do help > more troubleshooting info > copy text to clipboard.
Put that into a text file, and please attach it to the bug report using "Attach a file" just above comment 0

Please forgive me for my tone.
Obviously there is nothing personal.
Unfortunately, the arrival of version 91 has started to cause annoyance for me.
Almost systematically, I arrive in front of the mac at home and have to kill the thunderbird process and restart it to be able to use it.
Keep in mind that on my part there is maximum availability for any test.

Attached required file.

Flags: needinfo?(sfroyers)

As the days go by, the situation only gets worse.
Look at new photos attached.

Flags: needinfo?(vseerror)

Hello, I just wanted to confirm that I am experiencing a very similar problem with Thunderbird 91.3.0 running on macOS Big Sur (Version 11.5.2).

Thanks
Felix

Going back 8+ months with version 78, there were several problems with Big Sur. Address book, performance, etc. Some of the big ones

  • (Fixed) Bug 1659453 - Accelerate font fallback searches using family character map
  • (fixed) Bug 1655685 - OS X address book initialisation broken. Launching/updating Thunderbird on Mac can hang.
  • Bug 1662759 - [Mac] When updating from 68.12.0 to 78.2.1, thunderbird hangs high memory about 2 seconds after start-up while reading from the Mac system address-book

For the last two above, does the workaround from https://bugzilla.mozilla.org/show_bug.cgi?id=1662759#c28 help you?

Workarounds for Thunderbird-macOS AB initialization/interaction:

  • Changing ldap_2.servers.osx.dirType from 3 to -3, this "disables" the Mac OS X Address Book in Thunderbird, preventing it from displaying and also prevents Thunderbird-macOS AB initialization
  • Changing Contacts privacy settings in macOS preferences (listed below) prevents Thunderbird-macOS AB initialization and is an effective workaround
  • Unchecking "Local Address Books" in Thunderbird preferences, BUT that only affects the use non-ldap address books for compose compose and does not prevent Thunderbird-macOS AB initialization

macOS preferences workaround:

  1. open macOS System preferences
  2. type "privacy"
  3. click privacy settings
  4. click contacts
  5. at the bottom click the lock and provide your password
  6. uncheck the box for thunderbird
  7. restart thunderbird
Flags: needinfo?(vseerror) → needinfo?(sfroyers)
Summary: Thunderbird in troubleshoot mode using 35gb of memory and not responding after power nap. Also MacOS ""the computer has run out of memory available for applications" → Thunderbird in troubleshoot mode using 35gb of memory and not responding after power nap. Also MacOS 11.6 (Big Sur) "the computer has run out of memory available for applications"
Whiteboard: [closeme 2021-11-01]

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

Hi, thanks for getting back! I just tried the workaround you mentioned, changing my macOS privacy settings. That did not seem to work. But I guess it is ok for now. I also have a Linux machine I can use. And Thunderbird is running well there.

Thanks,
Felix

I have performed all the suggested tests with no apparent result.
Now I have switched to 91.3.1 and let's see if anything changes.
Will update.

Situation before update in photo below:

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

Going back 8+ months with version 78, there were several problems with Big Sur. Address book, performance, etc. Some of the big ones

  • (Fixed) Bug 1659453 - Accelerate font fallback searches using family character map
  • (fixed) Bug 1655685 - OS X address book initialisation broken. Launching/updating Thunderbird on Mac can hang.
  • Bug 1662759 - [Mac] When updating from 68.12.0 to 78.2.1, thunderbird hangs high memory about 2 seconds after start-up while reading from the Mac system address-book

For the last two above, does the workaround from https://bugzilla.mozilla.org/show_bug.cgi?id=1662759#c28 help you?

Workarounds for Thunderbird-macOS AB initialization/interaction:

  • Changing ldap_2.servers.osx.dirType from 3 to -3, this "disables" the Mac OS X Address Book in Thunderbird, preventing it from displaying and also prevents Thunderbird-macOS AB initialization
  • Changing Contacts privacy settings in macOS preferences (listed below) prevents Thunderbird-macOS AB initialization and is an effective workaround
  • Unchecking "Local Address Books" in Thunderbird preferences, BUT that only affects the use non-ldap address books for compose compose and does not prevent Thunderbird-macOS AB initialization

macOS preferences workaround:

  1. open macOS System preferences
  2. type "privacy"
  3. click privacy settings
  4. click contacts
  5. at the bottom click the lock and provide your password
  6. uncheck the box for thunderbird
  7. restart thunderbird
Flags: needinfo?(sfroyers)

(In reply to Emanuele Repetto from comment #32)

I have performed all the suggested tests with no apparent result.
Now I have switched to 91.3.1 and let's see if anything changes.
Will update.

How did it go?
91.4.0 comes out this week

Flags: needinfo?(sfroyers)

Hey Wayne...
it seems that it is not available here yet ... as soon as it is released I try it immediately ... also because with 91.3.2 the problem keeps recurring.

Flags: needinfo?(sfroyers)

Installed as RC. I update you next days....
Lele

Flags: needinfo?(vseerror)

Report after two days testing in photo below:

How is 91.4.0?

Flags: needinfo?(vseerror) → needinfo?(sfroyers)

The last photo refers to 91.4.0.
Unfortunately the situation is unchanged.

Flags: needinfo?(sfroyers) → needinfo?(vseerror)

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

How is 91.4.0?

Actually, in my case everything works with Thunderbird 91.4.0. I am using a MacBook Pro with Big Sur (11.5.2).

(In reply to Emanuele Repetto from comment #40)

The last photo refers to 91.4.0.
Unfortunately the situation is unchanged.

I don't currently have anything to offer beyond comment 30 and the bugs in https://mzl.la/3JjDs8j and https://mzl.la/3eoRerQ (bug 1740319 in that query should only happen when using beta)

Flags: needinfo?(vseerror)

I absolutely do not want to make controversy.
It is not my intention.
But getting to the point of not being able to keep Thunderbird open in the background I find it absurd.
Several versions have gone by since the problem arose.
With the latest update, the situation remains this.

We are at the point I think, where we just approach the problem by eliminiating possible problems. I suggest first Try disabling all your calendars.

(I just had similar huge memory growth happen in Firefox, twice ,but not after power nap. Seemingly random, so maybe memory corruption,

Flags: needinfo?(vseerror)

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

We are at the point I think, where we just approach the problem by eliminiating possible problems. I suggest first Try disabling all your calendars.

(I just had similar huge memory growth happen in Firefox, twice ,but not after power nap. Seemingly random, so maybe memory corruption,

Hi Wayne.
It seems to have succeeded in isolating the problem.
I reinstalled thunderbird completely excluding the calendar management.
Since that day I have never encountered the problem again. Until now I have left the mac in random powernap and once specifically for over 48 hours. No problem.
I monitor the behavior on my macs and possibly post some updates.
Thanks Wayne.

Emanuele, Thanks for the update!
So we're looking at a calendar issue.

Flags: needinfo?(vseerror)
Keywords: hang, memory-leak
Product: Thunderbird → Calendar

At yout disposal @wayne mery.

Emanuele, are you still seeing this with version 102, and calendars enabled?

Flags: needinfo?(sfroyers)
Summary: Thunderbird in troubleshoot mode using 35gb of memory and not responding after power nap. Also MacOS 11.6 (Big Sur) "the computer has run out of memory available for applications" → Using 35gb of memory and not responding after power nap, only with calendar(s) enabled - "the computer has run out of memory available for applications"
Whiteboard: [closeme 2023-01-30]

Resolved per whiteboard

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(sfroyers)
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2023-01-30]

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

Emanuele, are you still seeing this with version 102, and calendars enabled?

Scuse me for delay.
I must have missed the email alerting me to this post of yours.
Please, forgive me.

Yes, at today i'm using 102.8.0 and all work's fine for me.

Nothing against declaring the problem solved.

Thank you to all....for your time and your patience.

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

Attachment

General

Created:
Updated:
Size: