zotero-better-bibtex: Browser Cannot Conntect to Zotero/BBT Hangs during startup
For people joining this issue, you can submit a log either by going to Help => Better BibTeX Debug log, or Help => Send log to fle.io. I really need logs because I cannot yet reproduce the problem, and I need clues to the cause.
If those don’t work, and you’re on a Mac or Linux, there’s another way to capture a debug log
On MacOS, you can get a log by starting Zotero with
/Applications/Zotero.app/Contents/MacOS/zotero -jsconsole -purgecaches -ZoteroDebugText > $HOME/BBT.txt
or on Linux
zotero -P BBTTEST -jsconsole -purgecaches -ZoteroDebugText > $HOME/BBT.txt
Let Zotero start to the point where you have reproduced the problem, then you can shut Zotero down. In both cases, there will be a file BBT.txt in your home directory. You can attach it here, or email it to emiliano.heyns@iris-advies.com`.
Another option, if you’re on Linux or Mac and willing to share a full copy of your Zotero profile, I could try to reproduce the problem with that. I don’t have access to a Windows machine unfortunately. And I really need a way to reproduce this. To get this copy:
zip $HOME/Zotero.zip $HOME/Zotero
and mail that to emiliano.heyns@iris-advies.com
What I know so far
There is a Zotero method BBT must call. I call it at a time that Zotero has declared it safe to call it. Yet that Zotero method hangs when I do, hanging BBT in the process. Calling it also appears to take down the connector, when these two things have nothing to do with each other. I currently have a workaround in place that helps for some people, not for others, and I cannot reproduce this problem myself, and it’s pretty goddamn hard to fix a ghost bug that I cannot see, and that given where it happens, just shouldn’t be able to happen.
related Zotero forums threads
https://forums.zotero.org/discussion/comment/463327#Comment_463327 https://forums.zotero.org/discussion/comment/463326#Comment_463326 https://forums.zotero.org/discussion/comment/463324#Comment_463324
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 85 (34 by maintainers)
Commits related to this issue
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
- Merge branch 'master' into gh-2887 — committed to retorquere/zotero-better-bibtex by retorquere 2 years ago
Here it is with more details: https://forums.zotero.org/discussion/114993/zotero-7-beta-switching-tabs-delays-the-loading-of-zotero
The crazy RAM ramp up for more than 10 minutes after releasing the shortcut is what I meant by “operations still running in the background after that”.
It looks like there’s now two signals I need to await before I can start BBT, unfortunately zotero takes 5-8 seconds to clear the 2nd. After that BBT starts in 3 seconds max, usually less, but until that 2nd signal clears, BBT sits there doing nothing, and the UI update comes last, so after some 6-12 seconds in total.
In principle it should be safe to start BBT after the 1st signal clears, which is what I’ve always done, as there’s just one particular part of BBT that needs the 2nd signal to clear, so I’ve always let BBT start in parallel, but apparently there’s a race condition to a deadlock now. Serializing everything was honestly just a shot in the dark, but I’m happy it works.