Bug report: OpenOffice Writer crash when pasting from clipboard into Zotero interface search
I submitted errors with the identifier: 486313242
Steps to replicate: Create a new Writer document and type something (anything; e.g. fgfgfgdg). Select part or all of what you typed and copy to clipboard via your preferred method (mine being Ctrl + C). Now click the 'add citation' button on the OOo Writer toolbar and chose a citation style (it really doesn't matter which). Now, in the search bar in the newly-present dialogue, right click and select paste. With a bit of luck, OpenOffice should now have crashed and require termination.
Win XP, OOo 2.40, Zotero 1.0.4
Steps to replicate: Create a new Writer document and type something (anything; e.g. fgfgfgdg). Select part or all of what you typed and copy to clipboard via your preferred method (mine being Ctrl + C). Now click the 'add citation' button on the OOo Writer toolbar and chose a citation style (it really doesn't matter which). Now, in the search bar in the newly-present dialogue, right click and select paste. With a bit of luck, OpenOffice should now have crashed and require termination.
Win XP, OOo 2.40, Zotero 1.0.4
There are no Zotero errors in that error report.
http://forums.zotero.org/discussion/1278/pasting-characters-into-the-openoffice-plugin/#Item_1
and refered to it again here
http://forums.zotero.org/discussion/2431/paste-in-prefix-field-in-word-causes-crash/#Item_8
So it's definitely reproducible.
To answer one of your questions: actually I can paste from Wordpad no problem into either the search or the suffix / prefix fields. It's only if I've copied from OO that it hangs and you have to kill it from the taksmanager.
Windows XP, OpenOffice 2.4 Zotero 1.04
I'll try it on Linux to see if I can reproduce it there too.
Regards, Jon.
I could paste from Abiword into the plugin though.
Regards, Jon.
A couple more questions:
1) Does this happen if you paste text from OpenOffice into the search field in the main Zotero pane rather than the Add Citation window?
2) Does it happen if you paste text from OpenOffice into another app while the Add Citation window is open?
The only thing I can think of here is that, when the Add Citation window is open, OpenOffice is blocked, and pasting text copied from OO triggers some interaction with OO, which crashes it.
I don't really know much about how the clipboard service works on Windows, but I wouldn't think any additional interaction with OO would be necessary after the text was copied to the clipboard, since you can paste from apps that have already been closed...
1) No, I can paste from OO into the search field in Zotero, so long as the Add Citation window isn't open. If it is, then OO hangs.
2) Yes, tried to paste into Wordpad with the Add Citation window open and OO hanged.
Jon
Apps on Windows (or at least these two) appear to need to perform some operation when text copied from them is pasted, and until that action occurs, the target application hangs. I don't know why any such action would be necessary, since you can of course paste text copied from a program even if the program has been closed (and even paste text from those apps into the citation window just fine if they've been closed and reopened since the copy), but this appears to be some fluke of the clipboard system on Windows.
You can reproduce the hang copying text from OO/Word into another application while the Zotero citation window is open—the other application will hang until you close the citation window, at which point the text will be pasted. So when you paste into the citation window itself (which belongs to Firefox), OO/Word can't perform its requisite action, which hangs Firefox, which means that OO/Word is permanently hung, because it can't continue until the citation window is closed. So it's a deadlock.
You could try raising this on the OO forums and point to this thread in the hope that someone will see it who knows more about how the clipboard works on Windows, but there doesn't seem to be much we can do about this.
One simple workaround is to copy text into an open Notepad window and then recopy it from there before copying into the citation window. You might also look for some program that converts rich text on the clipboard to plain text (like Plain Clip on OS X), since that might remove any link back to OO and solve the problem.
Well, each time I tried that FF, zotero and Word all froze. A quick search of the forum lead me here.
So, what's the status on the ticket? (Either that or let me move the window....yeah, I know....)
Edit: Ooops. Sorry. Windows XP; Word 2003; Plugin 1.0b3; FireFox 3.0.4; Zotero 1.07.r3834... anything else I forgot?
We still might be able to fix this for the VBA plugin.
And thanks for the update.
http://forums.zotero.org/discussion/5899/cant-paste-text-into-editor-in-word/
Word keeps freezing on me because of this very reason.
or paste into notepad and copy and then into Zotero - but that's a pain.
Can we at least use Esc to close the frozen Word/Zotero hiccup at some point rather than having to close word altogether and hope autosave got that last sentence?
Is there any current progress on this for the VBA plugins yet?