Closed Bug 1510309 Opened 6 years ago Closed 6 years ago

datastore.js, line 1533: TypeError: this.asyncConnection is null

Categories

(Thunderbird :: General, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1252937

People

(Reporter: buchner.johannes, Unassigned)

Details

On a Thunderbird 60, without any addons, I go offline to download all messages. TB fetches from several (3) IMAP accounts, with several folders (~20).

On the terminal, it prints:

TypeError: nounDef is undefined
-- Exception object --
*
-- Stack Trace --
gloda_ns_newQuery@resource:///modules/gloda/gloda.js:1880:5
ContactIdentityCompleter@jar:file:///usr/lib64/thunderbird/omni.ja!/components/glautocomp.js:176:22
nsAutoCompleteGloda@jar:file:///usr/lib64/thunderbird/omni.ja!/components/glautocomp.js:491:26
createInstance@resource://gre/modules/XPCOMUtils.jsm:511:19
glodaSearch_XBL_Constructor@chrome://messenger/content/search.xml:71:13
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1401: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null
JavaScript error: resource:///modules/gloda/datastore.js, line 1533: TypeError: this.asyncConnection is null

The last is repeated thousands of times.

It also re-downloads everything from IMAP after every restart.
Deleting global-messages-db.sqlite did not help.

I reported the bug with my OS here: https://bugs.gentoo.org/672068

It may have to do with the sqlite config, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224968
This bug suggests it may be a sqlite version issue: https://bugs.archlinux.org/task/48259 -- The package manager installed sqlite 3.24.0 and I instructed thunderbird to use this system sqlite.
Following the dupe, the issue is that the two-argument fts3_tokenizer was disabled by default. 

 https://www.sqlite.org/releaselog/3_11_0.html says: "Backwards Compatibility:
Because of continuing security concerns, the two-argument version of of the seldom-used and little-known fts3_tokenizer() function is disabled unless SQLite is compiled with the SQLITE_ENABLE_FTS3_TOKENIZER. "

Thunderbird uses the two-argument variant however:
https://dxr.mozilla.org/comm-central/search?q=fts3_tokenizer&redirect=true

For my system it may be easiest to just enable that flag or use the built-in sqlite.

However, it may be worth considering if Thunderbird needs the two-argument version if there are security concerns.

I also note that this is essentially a duplicate of #1252937 (same error messages there).
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.