BUG: I can't open some extension for running zotero a long time
My Debug ID D70486679
Hello everyone,
there are two extensions in Zotero that cannot run successfully on my mac. Zotfile and mdnotes can't be opened when I run Zotero for a long time in the background.
The debug output as follow:
JavasCript error: The connection was refused when attempting to contact wss: //stream zotero. org/ "ifile: "chrome: //zotero/content/xpcom
/streamer.js Line: 155]
[JavaScript Error: Web Socket connection closed: 1006"]
JAvasCript error: The connection was refused when attempting to contact wSs: //stream zotero. org/."ifile:"chrome: //zotero/content/xpcom
/streamer. js line: 155]
JAvasCript error: Web Socket connection closed: 1006"]
Warning: NetUtil new Channel(uri) deprecated, please provide argument ' aWhatToload
No chrome package registered for chrome: //browser/content/ macBrowserOver lay xuL
No chrome package registered for chrome: //browser/content/ macBrowserOverlay xuL
JAvasCript error:TypeError: document. getELementById.. is null tfile: chrome: //zoteroquicklook/content/zoteroquicklook js line: 133]
[JavaScript Error: NS_ERROR_NOT_AVAILABLE: " ifile: chrome: //zotfile/content/zotfile js"line: 215]
Zotero. ZotFile</this. open PreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9
oncommand@chrome: //zotero/content/standalone/standalone xul: 1: 1
[JavaScript Error: NS_ERROR_NOT_AVAILABLE: " ifile: "chrome: //zotfile/content/zotfilejs"line: 2151]
Zotero. ZotFiLe</this. openPreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9
oncommand@chrome: //zotero/content/standalone/standalone xul: 1: 1
Zotero. ZotFile</this. openPreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9 e js" line: 2155]
[JavaScript Error: NS_ERROR_NOT_AVAILABLE:"ifile:chrome: //zotfile/content/zotfil
on command@ch
//zotero/content/standalone/ standalone xul: 1: 1
[JavaScript Error: NS_ERROR_NOT_AVAILABLE: ifile: "chrome: //zotfile/content/zotfile js"line: 2151
Zotero. ZotFile</this. openPreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9
oncommand@chrome: //zotero/ content/standalone/standalone xul: 1: 1
Hello everyone,
there are two extensions in Zotero that cannot run successfully on my mac. Zotfile and mdnotes can't be opened when I run Zotero for a long time in the background.
The debug output as follow:
JavasCript error: The connection was refused when attempting to contact wss: //stream zotero. org/ "ifile: "chrome: //zotero/content/xpcom
/streamer.js Line: 155]
[JavaScript Error: Web Socket connection closed: 1006"]
JAvasCript error: The connection was refused when attempting to contact wSs: //stream zotero. org/."ifile:"chrome: //zotero/content/xpcom
/streamer. js line: 155]
JAvasCript error: Web Socket connection closed: 1006"]
Warning: NetUtil new Channel(uri) deprecated, please provide argument ' aWhatToload
No chrome package registered for chrome: //browser/content/ macBrowserOver lay xuL
No chrome package registered for chrome: //browser/content/ macBrowserOverlay xuL
JAvasCript error:TypeError: document. getELementById.. is null tfile: chrome: //zoteroquicklook/content/zoteroquicklook js line: 133]
[JavaScript Error: NS_ERROR_NOT_AVAILABLE: " ifile: chrome: //zotfile/content/zotfile js"line: 215]
Zotero. ZotFile</this. open PreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9
oncommand@chrome: //zotero/content/standalone/standalone xul: 1: 1
[JavaScript Error: NS_ERROR_NOT_AVAILABLE: " ifile: "chrome: //zotfile/content/zotfilejs"line: 2151]
Zotero. ZotFiLe</this. openPreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9
oncommand@chrome: //zotero/content/standalone/standalone xul: 1: 1
Zotero. ZotFile</this. openPreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9 e js" line: 2155]
[JavaScript Error: NS_ERROR_NOT_AVAILABLE:"ifile:chrome: //zotfile/content/zotfil
on command@ch
//zotero/content/standalone/ standalone xul: 1: 1
[JavaScript Error: NS_ERROR_NOT_AVAILABLE: ifile: "chrome: //zotfile/content/zotfile js"line: 2151
Zotero. ZotFile</this. openPreferenceWindow@chrome: //zotfile/content/zotfile js: 215: 9
oncommand@chrome: //zotero/ content/standalone/standalone xul: 1: 1
[output removed — D.S.]
I disabled all third-party extensions except mdnotes extension and when i closed Zotero, the same problem appeared again.
You can also see if it happens in a new Zotero profile.
https://drive.google.com/file/d/1DHkzxzwWaQvPCIrR6wO7z5OSLo-9ZoqH/view?usp=sharing
when I do as above, the problem will appear.
please try it again thanks
This is a bug, but I'm not sure we can do anything about it at the moment. We'll investigate.
Anyway, thank you very much. I am looking forward to a better Zotero. if you have the solutions, please let me know.
From my understanding, we only generate the `openPreferences` when call include.js first time. the var window is indeed current main window.
However, when MacOS uses Cmd+W close the window and then reopen it.
ZoteroPane is redraw, so the above window is no longer for current main window.
Thus, it can not open the dialog anymore from old window. (KeepZotero v0.0.1)
KeepZotero v0.0.2 always gets the navigator:browers as the current main window in the `openPreference` function. Then, it can still open the dialog when MacOS reopen the Zotero from taskbar again.
If my guessing is wrong, please let me know.
I will also create a pull request for Zotfile and check whether it also solve this issue.
I think this issue https://github.com/jlegewie/zotfile/issues/581 from Zotfile is the same issue