Menu On Top (SuperMenu Avatar) crashes Daily @ nsComponentManagerImpl::AddBootstrappedManifestLocation
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | --- | fixed |
People
(Reporter: WoofGrrrr, Assigned: darktrojan)
Details
(Keywords: crash)
Crash Data
Attachments
(2 files, 2 obsolete files)
416.28 KB,
application/x-xpinstall
|
Details | |
1.62 KB,
patch
|
darktrojan
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
Launch it
I tried using both the automatic update from the previous version of Daily itself and the latest build from https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central/
NOTE that the latest Daily build was 2019-02-11 and it's now 2019-02-16
Actual results:
Crashed, even after restart from crash dialog
Expected results:
It shouldn't crash
Reporter | ||
Comment 1•6 years ago
|
||
I uninstalled this build, downloaded and installed two previous builds (2019-02-10 and 2910-02-09) and NEITHER of them will start. They report some unknown element in XUL or something like that. I'm not a TBird developer (I don't program in the language TBird is written in) so I give up.
I have reported many times before the problem that DAILY builds just stop happening, and I'm just not doing it any more. That last build was FIVE days ago.
No more DAILY for me.
Comment 2•6 years ago
|
||
(In reply to Mark Barnes from comment #1)
No more DAILY for me.
Daily channel is by definition both potentially unpredictable in various ways and unstable, even though normally on most days it is pretty decent. And yes, sometimes it doesn't update daily - things break. I hope no one told you to expect otherwise. If you are looking for something more current than a normal release but still stable, consider using beta https://www.thunderbird.net/en-US/channel/ And if you don't want to be risking your data at all, you shouldn't even be using beta.
Are these yours?
bp-97174a20-b781-459b-841d-350d50190216 This has been going on for DAYS!!! This is the latest (11-Feb-2019) build from: https://archive.mozilla.org/pub/thunderbird/nightly/latest-comm-central/
bp-79cf0e86-0027-4db6-917d-140cd0190216 Daily won't even start up!!!
bp-97174a20-b781-459b-841d-350d50190216
0 xul.dll nsComponentManagerImpl::AddBootstrappedManifestLocation(nsIFile*) xpcom/components/nsComponentManager.cpp:1966
1 xul.dll XPTC__InvokebyIndex
Comment 3•6 years ago
|
||
Daily of 11th Feb 2019 should have been OK, see:
https://treeherder.mozilla.org/#/jobs?repo=comm-central&revision=5fa6fd01e5553af4b5057829ee4de26eec271ae7
After that, Dailies have been suspended.
Richard, the Daily from that date works, no? Geoff, what is nsComponentManagerImpl::AddBootstrappedManifestLocation
?
Comment 4•6 years ago
|
||
Yes, I'm using Daily from 11. without crash.
Assignee | ||
Comment 5•6 years ago
|
||
That's what registers the chrome.manifest
in a bootstrapped extension. That crash report has a bootstrapped extension. I wonder if having a packed extension causes this. Will look in to it.
Assignee | ||
Comment 6•6 years ago
|
||
Yeah, I installed the extension, and it crashed. I think that's good evidence.
Assignee | ||
Comment 7•6 years ago
•
|
||
Also, that extension calls Components.manager.addBootstrappedManifestLocation(data.installPath)
in the install
method itself. Why?
Assignee | ||
Comment 8•6 years ago
•
|
||
Okay, I'm now certain this is called caused by the extension's install
method. data.installPath
is undefined these days, so that is what's crashing.
Assignee | ||
Comment 9•6 years ago
|
||
For good measure, I'll prevent the crash too.
Comment 10•6 years ago
|
||
Do we have a crash ID and/or crash signature?
Comment 11•6 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #7)
Also, that extension calls
Components.manager.addBootstrappedManifestLocation(data.installPath)
in theinstall
method itself. Why?
Most likely I copied this of another bootstrapped / example extension. All my other extensions are "classic" and need restarting, so I am not an export with restartless Add-ons at all. Is there an updated skeleton Add-on I could look at on how it is done correctly?
Comment 12•6 years ago
|
||
(In reply to Axel Grude from comment #11)
(In reply to Geoff Lankow (:darktrojan) from comment #7)
Also, that extension calls
Components.manager.addBootstrappedManifestLocation(data.installPath)
in theinstall
method itself. Why?Most likely I copied this of another bootstrapped / example extension. All my other extensions are "classic" and need restarting, so I am not an export with restartless Add-ons at all. Is there an updated skeleton Add-on I could look at on how it is done correctly?
Looking at this reference here:
https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIComponentManager#addBootstrappedManifestLocation()
I most likely included it because my Add-on contains XUL overlays (and a XUL dialog for configuration). I didn't want to shoehorn in a content tab and all the complication of communication with that layer from the chrome / privileged layer, and xul is still the easiest way to build a nice, functional, non-modal configuration dialog.
Is it possible to debug the line with Developer tools? I could just wrap it in a try..catch if it doesn't do anything on modern XUL platforms.
Comment 13•6 years ago
|
||
Here is a quick fix only running the line if data.installPath is set and also logs the exception on install if there is a problem. works for me with Thunderbird 64.0b1 (32-bit) in Windows 7
Updated•6 years ago
|
Comment 14•6 years ago
|
||
I fixed a few compatibility issues (including the toolbar button and the remove functionality on advanced / bookmarks)
Only known issue is that my groupbox XUL elements are not visible now, so we are missing a bit of context for some of the options in the preferences dialog. Not sure whether groupbox was deprecated or I neeed some additional rule. Apart from that it seems to behave well in Tb 60.0b1
Will update the official version at ATN soon, just want to do some testing on Waterfox first.
Assignee | ||
Comment 15•6 years ago
|
||
I don't think you're still supporting Firefox 9, so you don't need to call that function at all. :-)
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
Not sure this is really Toolkit::Add-Ons Manager, but it won't be seen for check-in if it remains in Thunderbird.
Assignee | ||
Updated•6 years ago
|
Comment 19•6 years ago
|
||
Pushed by ccoroiu@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/810c452f755a
Return failure code instead of crashing in Add/RemoveBootstrappedManifestLocation; r=kmag
Comment 20•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Description
•