Zotero.Translators.init() hangs

140 views
Skip to first unread message

Emiliano Heyns

unread,
May 17, 2024, 5:52:46 PMMay 17
to zotero-dev
I have users where a call to await Zotero.Translators.init() doesn't resolve (just hangs). I call this after an await Zotero.initializationPromise. I cannot reproduce this on my own systems.

Emiliano Heyns

unread,
May 20, 2024, 6:31:45 PMMay 20
to zotero-dev
Are there conditions I can check before calling Zotero.Translators.init to make sure it's save to `await` it? I already wait for await Zotero.initializationPromise

Dan Stillman

unread,
May 22, 2024, 7:17:08 AMMay 22
to zoter...@googlegroups.com
On 5/20/24 6:31 PM, Emiliano Heyns wrote:
> Are there conditions I can check before calling
> Zotero.Translators.init to make sure it's save to `await` it? I
> already wait for await Zotero.initializationPromise

We'd want to see a Debug ID from startup (or debug log sent to
sup...@zotero.org) from someone who can reproduce this.

Emiliano Heyns

unread,
May 22, 2024, 7:39:49 AMMay 22
to zotero-dev
I'll arrange that. Extra info: `await Zotero.Translators.init()` executed in the Run Javascript console succeeds with or without BBT installed -- although this can perhaps be a timing issue (in that the condition which causes the stall has resolved itself by the time the user got there).

Emiliano Heyns

unread,
May 22, 2024, 8:35:02 AMMay 22
to zotero-dev
D813083066

Emiliano Heyns

unread,
May 22, 2024, 5:02:42 PMMay 22
to zotero-dev
And a succesfull startup with the same installation (it happens sometimes): D522314190

Emiliano Heyns

unread,
May 22, 2024, 5:13:51 PMMay 22
to zotero-dev
Maybe unrelated, but another user tried enabling and disabling BBT and got

[18113, Main Thread] ###!!! ABORT: file resource://gre/modules/Sqlite.jsm, line 148 [18113, Main Thread] ###!!! ABORT: file resource://gre/modules/Sqlite.jsm, line 148 /home/<readaced>/local/Zotero_linux-x86_64/zotero: line 13: 18113 Segmentation fault (core dumped) "$CALLDIR/zotero-bin" -app "$CALLDIR/application.ini" "$@"

Emiliano Heyns

unread,
May 23, 2024, 4:14:03 AMMay 23
to zotero-dev
One more where it hangs: D472271866

Emiliano Heyns

unread,
May 23, 2024, 4:15:17 AMMay 23
to zotero-dev
For this user, a hang also brings the connector problem, and thee busy-wait workaround solves both problems.

Emiliano Heyns

unread,
Jun 3, 2024, 4:39:19 PMJun 3
to zotero-dev
What seems to have worked is just call

await Zotero.initializationPromise
await Zotero.Translators.init()

and not doing any of BBTs initialization until they both resolve. I had so far only awaited Zotero.initializationPromise, and awaited Zotero.Translators.init() mid-startaup when I was installing the translators. This also seems to have taken care of the connector problem.

Emiliano Heyns

unread,
Jun 3, 2024, 7:22:20 PMJun 3
to zotero-dev
I have a user for whom

await Zotero.initializationPromise
await Zotero.Translators.init()

takes 00:07:59.336 (8 minutes) to resolve.
Reply all
Reply to author
Forward
0 new messages