retorquere / zotero-better-bibtex

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

[Bug/Feature]: "Error occurred" exporting library #2516

Closed mmzotero closed 1 year ago

mmzotero commented 1 year ago

Debug log ID

68LTWEDJ-refs-euc

What happened?

What happened in Zotero: I tried to export my library -- with both Better BibTex and Better BibLaTex, it creates a file with that name, but it is empty, and then Zotero says "Error Occurred"

I expected: I though it would make a file with all my annotations, pdf, etc. and the .bib file.

Re: debug log: I was not siure which reference to right-click so I right-clicked a random citation in Zotero.

Thank you!

retorquere commented 1 year ago

Zotero reports:

Win error 3 during operation removeEmptyDir on file C:\Users\moizm\OneDrive\Desktop\PhD Research\My Library\files\4016 (The system cannot find the path specified.)

Is there anything special about that path? I think background export was on, can you try exporting with it off and see if you get a different error?

retorquere commented 1 year ago

If you use any non-BBT exporter, does the problem still occur?

mmzotero commented 1 year ago

Thank you for being so speedy!

I can export "Zotero RDF" without issues.

Zotero reports:

Win error 3 during operation removeEmptyDir on file C:\Users\moizm\OneDrive\Desktop\PhD Research\My Library\files\4016 (The system cannot find the path specified.)

Is there anything special about that path? I think background export was on, can you try exporting with it off and see if you get a different error?

Turn off Background export: made no difference New location export that was not in OneDrive: no difference That 4016 path: I realised a bunch of my PDFs had not transferred into Zotero for some reason, so I uploaded all of them.. unfortunately it hasn't made a difference. Export without "export files/annotations" ticked on: made no difference

So sorry, I don't know if maybe there is some other missing file? I don't know how to check.

retorquere commented 1 year ago

With background off, can you do a new export to the same place and a non-onedrive place and submit a new debug log?

mmzotero commented 1 year ago

With background off, can you do a new export to the same place and a non-onedrive place and submit a new debug log?

KWZN2XIA-refs-euc export to the same place (in OneDrive), background export off. This odes not make a .bib file

4S29H6JD-refs-euc export to non-One Drive place. Note: this made an EMPTY .bib file but it also still said error

Thank you!

retorquere commented 1 year ago

I'm still seeing errors related to C:\Users\moizm\OneDrive\Desktop\My Library in 4S29H6JD-refs-euc. Can you restart Zotero, do only the second export, and send a new log?

mmzotero commented 1 year ago

Here you are! Again an empty .bib file.

Debug log: 6IFQE5LE-refs-euc

retorquere commented 1 year ago

It's an out of memory error. Go into better bibtex prefs -> export -> misc and disable the cache, see if that helps.

retorquere commented 1 year ago

Zotero on Windows is (for now) memory-constrained. That will change with Zotero 7.

mmzotero commented 1 year ago

Oh!! Ok! I did disable the cache, I guess I just have too many PDFs saved on it :( Thank you for your help!!

retorquere commented 1 year ago

The number of attachments won't make a difference unfortunately.

mmzotero commented 1 year ago

Oh.. sorry I can ask this on a Zotero forum, but then why would it be out of memory :S Does Zotero use a lot of memory just to...exist?

github-actions[bot] commented 1 year ago

Thanks for the feedback; there's no way you could have known, but @retorquere prefers to keep bugreports/enhancements open as a reminder to merge the changes into a new release.

retorquere commented 1 year ago

It's primarily BBT I'm afraid. I don't know how it is on Windows, but on MacOS, Zotero uses about 400Mb of memory, and if you load BBT, that's another 400 MB (I really need to look into that. that's a lot more than I had expected). On Windows, Zotero cannot use more than 2GB sum total.

mmzotero commented 1 year ago

Thank you so much anyway! I will just not sync to Obsidian until the new Zotero thing comes out. C'est la vie.

Thanks again and also for explaining!