Citation styles that include the authors' names freeze LibreOffice
Hi,
When I use a citation style that include the author name (Harvard, Cell, etc), LibreOffice frequently freezes from a couple of seconds to up to around ten seconds at most. The window becomes greyed out and unresponsive during the longer freezes. When using a citation style that includes only a number (Nature, IEEE, etc), everything runs smoothly and there are no hicups. The freezing seems to be very dependent on the number of characters in the citation as including year + author causes longer freezes than only author name. Cell is the slowest citation style so far and the phenomena started at around half a page of text and 6-7 citations.
I have excluded other potential causes to this behaviour by disabling hardware acceleration and anti-aliasing and also given LibreOffice access to more memory and changed the java settings.
I wish to use Cell as my citation style, is there anything I can do to fix the freezing behaviour? I am running Zotero 4.0.25.2 and LibreOffice 4.4.0.3 40m0(Build:3) from the repositories on Ubuntu 14.04.
Cheers,
When I use a citation style that include the author name (Harvard, Cell, etc), LibreOffice frequently freezes from a couple of seconds to up to around ten seconds at most. The window becomes greyed out and unresponsive during the longer freezes. When using a citation style that includes only a number (Nature, IEEE, etc), everything runs smoothly and there are no hicups. The freezing seems to be very dependent on the number of characters in the citation as including year + author causes longer freezes than only author name. Cell is the slowest citation style so far and the phenomena started at around half a page of text and 6-7 citations.
I have excluded other potential causes to this behaviour by disabling hardware acceleration and anti-aliasing and also given LibreOffice access to more memory and changed the java settings.
I wish to use Cell as my citation style, is there anything I can do to fix the freezing behaviour? I am running Zotero 4.0.25.2 and LibreOffice 4.4.0.3 40m0(Build:3) from the repositories on Ubuntu 14.04.
Cheers,
Never seen that. I wrote my entire dissertation with author-date styles. The LO add-on will start slowing down on page 100 or so, but not for an article-length manuscript.
Particularly slow computer (netbook)? Very large database (>20k total items)?
The entire document is now 5 pages with 15 citations, but the freezing started around length you specified. There are no images or other special forms (there was a ToC, but I deleted it).
Fast laptop (i7 2nd gen, 16GB RAM) and small database (200 items). I thought this was related to Sandy Bridge as specified here http://askubuntu.com/a/121444/271734, but I tried the suggested fixes without result and as I said, LibreOffice is working fine other than in this specific case.
But if you haven't seen it anywhere else, I gather it is very specific to my setup somehow =/
Interestingly this seems to be correlated to whether I use my mouse or keyboard to navigate the document. It occurs less frequently when using the keyboard
You could, for the heck of it, try switching to Bookmarks in the Document prefs, see if that helps.
I tested an author-name-citation style with the bookmarks option and everything seems to work! As soon as I go back to documents pref and change it back to fields, the document hangs just after it has completed reformatting all the references. So I definitely think this is Zotero specific.
I would prefer working with the file as .odt and the grey markup fields help me orient among the references, so if anyone can think of a fix, that would be very appreciated. I can upload the document somewhere if that helps. But the work around you suggested is great and will probably save my ass at the end of the day, thanks!
The reason you'd only see this with a Zotero document would be that regular LO documents don't have long Reference marks inserted. But Reference Marks are a LibreOffice functionality, they should work properly.
Another thing I'd be curious about: If you leave the prefs on Reference Marks, but disable "Store References in Document" - do you still get freezes (disabling that option significantly shortens the reference marks in the document).
It's the "Store references in document"-functionality. Selecting it replicates the freezing every time. I read that it is the citation metadata that I am missing out on, exactly what effect will this have? Does not selecting it limit me to work only on a computer where I have set up my own zotero (or a shared group) if I want to edit the refs? But working with the rest of the text is fine and will not change the references when I open is on my computer again?
I noticed that the file size varies a lot depending on my choices here.
ref marks only...................... = 38K... Works
ref marks + store refs in doc.. = 54K... Freezes
bookmark only...................... = 39K... Works
bookmarks + store refs in doc. = 56K... Works
I do include supplements when saving citations in Zotero, but I checked all the references in this document and the biggest attachment are pdf-files of around 5-6 MB, no huge movies, spreadsheets or anything like that in case that matters.
On a side note, the description on the bookmark option is confusing. It says "The document must be saved in the .doc format", is that for sharing with ms word only?
Thanks for getting this to work!
So for regular use, especially if your either not co-authoring or using a group to co-author, there is no functionality you're losing.
Attachments (supplements etc.) have no effect on this--this is just the metadata, i.e. anything that'd be in the info tab in Zotero.
This is still unexpected and shouldn't happen (and I'm pretty sure it's a LibreOffice issue), but at least that narrows it down quite a bit and gives you two pretty decent workarounds.
I was looking to solve similar problem wiht Mendeley. So, this should confirm that this is a problem of LibreOffice 4.4.
is that on linux, too? If so, which distro?
Also, afaik Mendeley uses code that's virtually identical to Zotero's in its LO add-on (they credit Zotero for "parts of the word processor add-on code" and I think that's particularly true for the LO one), so this isn't definite proof the problem is LO).
You could try the workaround suggested here, i.e. disable tooltips
https://www.zotero.org/support/word_processor_plugin_troubleshooting#hovering_over_zotero_citations_in_libreoffice_makes_compiz_and_gnome_shell_crash
Again, let us know if that helps (or not).
I disabled the tooltips and now it is working very well. Who needs the tips ?;) Hopefully this will be fixed in the future, but for me, it is fine now.
Manjaro (Arch based) linux, 64 bit. Libre office 4.3.5. Zotero 4.0.25. Chicago FUll notes. Cinnamon desktop (no compiz, no gnome)
So far no reply, maybe adding "me too" comments could help getting some attention. The bug is likely trivial.
@adamsmith: do you think Zotero could have anything to do with this, e.g. is Zotero code involved in the rendering of the tooltip? I guess not, but just to be sure.
But it's pretty clear that the problem are very long tooltips (that's why disabling "store references..." makes this go away most of the time, unless as with rcrath, you're looking at a big citation) which are going to be rare in cross references, so it's not unlikely that Zotero is the only software that ever generates them (but I don't know that for sure and there's obviously no reason why that should case said problem).