Autocomplete broken in Thunderbird 78.9.1 after downgrade from recent Thunderbird beta.
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr78+ fixed, thunderbird89 affected)
People
(Reporter: whimboo, Assigned: darktrojan)
References
Details
(Keywords: regression)
Attachments
(2 files)
129.33 KB,
image/png
|
Details | |
48 bytes,
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta-
wsmwk
:
approval-comm-esr78+
|
Details | Review |
Thunderbird 78.9.1 (64-bit) on MacOS 11.2.3
I recently tried to use Thunderbird beta with my daily profile but after a while I noticed that some addons don't work yet, and downgraded to 78 again.
Since this downgrade the address auto-completion does no longer work in the compose window. Also sometimes the contact sidebar shows no entries for local address books. But there doesn't seem to be any connection between those two issues given that auto-complete never works. This behavior makes it currently nearly impossible to use Thunderbird because manually searching and copying addresses is required.
By default all addresses are stored in my MacOS address book, and that one has been set as primary address book.
Comment 1•3 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #0)
Thunderbird 78.9.1 (64-bit) on MacOS 11.2.3
I recently tried to use Thunderbird beta with my daily profile but after a while I noticed that some addons don't work yet, and downgraded to 78 again.
I want to double check this statement - by "daily profile" you mean your production profile, but you're not saying use used this profile with a nightly build?
Reporter | ||
Comment 2•3 years ago
|
||
That's correct. I used it with 78 before, then beta, and back to 78. A nightly version was never in use.
Also running in safe mode didn't make a difference.
Comment 3•3 years ago
|
||
Comment 4•3 years ago
•
|
||
@Henrik
in Thunderbird open Address Book and in menu File verify if "Use Mac OS X Address Book" is checked.
Also open the macOS System Preferences > Security & Privacy > Privacy and verify if Thunderbird is authorized to access your "Contacts" (which corresponds to what Thunderbird calls the "Mac OS X Address Book").
Reporter | ||
Comment 5•3 years ago
|
||
The address book is just fine and lists my addresses. Only the compose window is affected, and it all started with the upgrade and downgrade. Before that moment everything was working fine. Checking all the items you mentioned seconds that all is properly setup.
Actually whenever I add a letter into the To field I can see the following failure in the DevTools console:
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.createStatement] AddrBookDirectory.jsm:222
get _cards resource:///modules/AddrBookDirectory.jsm:222
search resource:///modules/AddrBookDirectory.jsm:612
_searchCards resource:///modules/AbAutoCompleteSearch.jsm:208
_searchCards resource:///modules/AbAutoCompleteSearch.jsm:207
startSearch resource:///modules/AbAutoCompleteSearch.jsm:465
Comment 6•3 years ago
|
||
You can't downgrade from beta to 78 ESR without losing the address books, see bug 1701996 comment #8 and below.
Reporter | ||
Comment 7•3 years ago
|
||
Ok, so that is clear now. But restoring the old (backups) doesn't work. Also removing the Mac address book and adding it again the same failures persist. Maybe there are some preferences that also changed their values?
Comment 8•3 years ago
|
||
Hmm, when I run TB 78 on a beta profile I get exactly that:
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [mozIStorageConnection.createStatement]
The code in question, via the error console, is a "this._dbConnection.createStatement()". And that fails since the DB schema has changed. That should be fixed following bug 1701996 comment #10. You need to rename the .v2 files, not put the .bak files back. Prefs changed between TB 68 and TB 78 pointing to the new SQLite-based ABs, but not from 78 to later betas. The Mac AB is really unrelated, here your SQLite access to the local AB fails.
Reporter | ||
Comment 9•3 years ago
|
||
(In reply to José M. Muñoz from comment #8)
You need to rename the .v2 files, not put the .bak files back.
That's exactly what I did. Closing Thunderbird, removing the .sqlite files, and renaming the .v2 files.
The Mac AB is really unrelated, here your SQLite access to the local AB fails.
Why? Removing the address book will also remove the file from disk, or (I explicitly haven't checked that)? And re-connecting to the MacOS addressbook will create a new address book, and that should be in the correct sqlite schema version. But it's still failing.
Comment 10•3 years ago
|
||
Let's ask the developer. I thought the read-only(!) Mac AB is accessed on the fly with no local storage. Also, there will an issue when people will try to revert from the future 91 ESR to 78 ESR.
Assignee | ||
Comment 11•3 years ago
|
||
If you've put the v2 files back in place of the v3 files I don't see how that could be failing, but it looks like it is. There should be (but isn't) a try/catch around the search to prevent one failing directory from taking out the whole search. Does removing abook.sqlite and history.sqlite altogether make the problem go away?
Reporter | ||
Comment 12•3 years ago
|
||
Ah! I actually missed to restore both of these files. So after replacing them with the .v2 equivalents it clearly fixed my problem. Thanks!
Comment 13•3 years ago
|
||
still, autocomplete should not fail?
Comment 14•3 years ago
|
||
I mean, not totally fail, if at least one address book is available?
What about sidebar?
And are all the errors exposed in error console?
Comment 15•3 years ago
|
||
Autocomplete searches the ABs, including Mac AB and even Outlook AB of so configured. If the local AB is "incompatible", that search will fail. As Geoff said (quote): "There should be (but isn't) a try/catch around the search to prevent one failing directory from taking out the whole search". So maybe use the bug to add that try/catch. The consequence will be that it will silently fail, so maybe perhaps some error? "Can't access AB foo".
Assignee | ||
Comment 16•3 years ago
|
||
I'll make the change to catch and log the error.
Assignee | ||
Comment 17•3 years ago
|
||
A failure in one address book should no break the whole search. Catch the failure, report it, and move on.
Comment 18•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/9ea2210f7da1
Reinstate try/catch in address book autocomplete loop. r=mkmelin
Assignee | ||
Updated•3 years ago
|
Comment 19•3 years ago
|
||
I guess uplift?
Assignee | ||
Comment 20•3 years ago
|
||
Comment on attachment 9217678 [details]
Bug 1704161 - Reinstate try/catch in address book autocomplete loop. r?mkmelin
[Approval Request Comment]
Regression caused by (bug #): bug 1633620
User impact if declined: one broken address book breaks auto-complete for others
Testing completed (on c-c, etc.): on c-c for a month
Risk to taking this patch (and alternatives if risky): not risky
Comment 21•3 years ago
|
||
Comment on attachment 9217678 [details]
Bug 1704161 - Reinstate try/catch in address book autocomplete loop. r?mkmelin
[Triage Comment]
We don't have another beta for 89, so this will appear in beta 90.
Comment 22•3 years ago
•
|
||
Comment on attachment 9217678 [details]
Bug 1704161 - Reinstate try/catch in address book autocomplete loop. r?mkmelin
[Triage Comment]
simple patch, and been on nightly for long, so approving for esr78
Comment 23•3 years ago
|
||
bugherder uplift |
Thunderbird 78.11.0:
https://hg.mozilla.org/releases/comm-esr78/rev/7e7ce7e94ac5
Description
•