Closed Bug 1735799 Opened 4 years ago Closed 4 years ago

Thunderbird crashes when a background script is used and the startup cache is invalidated

Categories

(Thunderbird :: Add-Ons: General, defect)

Thunderbird 94
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1736039

People

(Reporter: myaddons, Unassigned)

Details

(Whiteboard: https://bugzilla.mozilla.org/show_bug.cgi?id=1718481#c8)

Attachments

(1 file)

899 bytes, application/x-xpinstall
Details
Attached file test.xpi

While I was testing my own add-on Mail Merge on Beta 94.0a1 I discovered, that I could reliably crash Thunderbird when opening the message compose window after my add-on had been deactivated (manually).

I traced it down to an unholy interaction between using a background script and calling "startupcache-invalidate" within the function onShutdown() in the experiment API.

I have attached a test add-on, in which the necessary code to reproduce the problem is stripped down to its bare minimum.

Steps to reproduce:

  1. Start Thunderbird and install the add-on
  2. Restart Thunderbird
  3. Deactivate the add-on
  4. Open a new message compose window or another main window -> CRASH!

If you delete the "background" code from the manifest.json, Thunderbird does not crash!

"background": {
"scripts": ["background.js"]
},

If you delete the "startup-invalide" code from the implmenetation.json, Thunderbird does not crash!

Services.obs.notifyObservers(null, "startupcache-invalidate", null);

The problem can be reproduced on Beta 94.0a1 and Nightly 95.0a1. Thunderbird 91 is not(!) affected. Add-ons like Mail Merge and Quicktext can trigger this bug as well.

I was able to reproduce this in Daily 94 once. But since then it upgraded to Daily 95 and I can no longer reproduce. Also Beta 94.0b2 does not seem to be affected.

Are you able to confirm these findings? It looks like this was a bug introduced in Daily 94 in mozilla-central, then fixed.

Edit: On another System it still occurs.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: https://bugzilla.mozilla.org/show_bug.cgi?id=1718481#c8

-> WFM then?

Oh I see. Being worked on in bug 1736039.

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

Attachment

General

Created:
Updated:
Size: