retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.19k stars 283 forks source link

BBT hangs on startup at "translators" stage #2880

Closed dcconsta closed 1 month ago

dcconsta commented 3 months ago

Debug log ID

D1359076965

What happened?

On startup, BBT fails to initialize completely (hangs at "translators"). The interface is partially responsive (existing items remain accessible) but it is impossible to add new items. BBT_hang Aside from the D... version, I cannot generate a debug report (either from the right-click menu or with file.io), so I'm attaching the locally saved output (obtained by restarting Zotero with debugging enabled): Debug Output.txt

github-actions[bot] commented 3 months ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.192.2880.6254 ("Merge branch 'master' into gh-2880")

This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.192.2880.6254, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 3 months ago

Can you try again with build 6254 and attach a new log?

Does the file.io option not work for you, or does it not appear?

dcconsta commented 3 months ago

Here is the new log, with build 6254. I see no changes in behavior (BBT still hangs at translators). Debug Output.txt The option Help -> Send debug log to file.io -> Better Bibtex does appear, but clicking it has no visible effect.

retorquere commented 3 months ago

It wasn't a solution, sorry, it was just for diagnosis. A new build will drop soon, still just for diagnosis, I expect that will put up a notification saying "Failed to load translators", with a reason, I need that reason. The notification will stay up 8 seconds

I expect it will proceed to load BBT, but BBT will not be functional (not reliably anyway). I think I know where it stalls, this build should confirm that, and then I'll have to talk about the Zotero crew; if my diagnosis is correct, I am supposed to wait for something in Zotero to finish, but that wait is not returning.

github-actions[bot] commented 3 months ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.192.2880.6255 ("time-out translators install")

This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.192.2880.6255, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

dcconsta commented 3 months ago

There is no notification. At startup, BBT goes quickly through all the steps and then Zotero seems functional (items can be added), and even BBT works partially (I can export items, but not refresh keys, for instance). Here is the new log, in case it should help. Debug Output_3.txt

retorquere commented 3 months ago

A new build will drop shortly that will put up about 8 notices. The last 3 you see are relevant (I don't know what they'll say yet).

retorquere commented 3 months ago

Are you on Zotero 6 or 7?

github-actions[bot] commented 3 months ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.192.2880.6258 ("flash all the things")

This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.192.2880.6258, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

dcconsta commented 3 months ago

I'm on Zotero 6.0.36. Here is the record of the startup process and the corresponding log. Debug Output_4.txt https://github.com/retorquere/zotero-better-bibtex/assets/169903154/c1fef36a-a122-4ed0-9fdc-610a98a9aec0

github-actions[bot] commented 3 months ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.192.2880.6261 ("back to logging")

This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.192.2880.6261, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 3 months ago

This adds new logging. A single message should pop up (content doesn't matter, but I need to know whether you see it), again not everything will work, but you should be able to send a normal debug log.

dcconsta commented 3 months ago

There is indeed a brief popup message "Better BibTex: Assigning citation keys Ready". The main Zotero windows appears 30s later. Here is the log. Debug Output_5.txt

github-actions[bot] commented 3 months ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.192.2880.6263 ("more logging")

This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.192.2880.6263, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

dcconsta commented 3 months ago

Here is the startup log using build 6263. Debug Output_6.txt

retorquere commented 3 months ago

Confirms the problem. It seems Zotero doesn't return from translator initialization. I've asked about it here -- in the interim, I'll leave this in place so that BBT can mostly start.

dcconsta commented 3 months ago

Thanks for all the work! BBT is mostly functional on my system. Contrary to a previous statement, key refreshing does work. It is just that the field is not updated in the middle panel until one navigates away from the collection.

retorquere commented 3 months ago

The middle pane would be an entirely different problem.

retorquere commented 3 months ago

Can you upgrade to .201 to see if the startup problem is solved for you?

dcconsta commented 3 months ago

I have upgraded and everything seems to work OK, aside from the delayed key refresh (see above). To be fair, however, I see no obvious changes with respect to build 6263. I'll let you know in case of any anomaly. A big thank you for your reactivity!

phockett commented 3 months ago

Just came to say that I had the same issue after updating Zotero to v6.0.36, but it's now working properly again after today's update (I'm showing BBT build 6.7.201 in the add-ons info), and I haven't noticed any other issues. Thanks for the efforts!

Also: profuse thanks for BBT in general - an indispensable tool, and Zotero would not be usable for me without it.

retorquere commented 3 months ago

Thanks guys! It's been a stressful few days, so the kind words are much appreciated. I try not to be a disruption, but Zotero is in flux, and BBT has pretty complex interactions with its internals... What I have in place now is a workaround, Zotero is looking into the underlying issue, and I hope to have a proper fix soon. The workaround is be fine, but it's not elegant.

retorquere commented 1 month ago

The performance work is being tested on #2667