Problem description: LibreOffice crashes when pasting a text with annotations copied from "Scrivener". Steps to reproduce: 1. Install and open "Scrivener" http://en.wikipedia.org/wiki/Scrivener_%28software%29 http://www.literatureandlatte.com/scrivener.php 2. Create a new project 3. Create a new text 4. Write something, e.g. "hello" 5. Go to Format > Comment 6. Write something, e.g. "crash" 7. Select the first text ("hello") 8. Cmd+C 9. Open a new document in LibreOffice Writer 10.Cmd+V Current behavior: Libreoffice crahes Expected behavior: The Writer document contains a commented text. Operating System: Mac OS X Version: 4.0.2.2 release
davent: could you attach the debug info in a file and attach it by using this link https://bugs.freedesktop.org/attachment.cgi?bugid=63428&action=enter About debug info, see https://wiki.documentfoundation.org/BugReport#How_to_get_debug_information_on_Mac_OS_X
Created attachment 77952 [details] mac debug information copy/paste scrivener/lo voilà.
davent: thank your for feedback and sorry for the delay. I update the status to NEW since you attached a bt. Miklós: one for you? (I see rtf part in bt)
davent, Thanks for the trace. I don't have OSX, so I can't reproduce the bug. In worst case, can try to construct some blind fix based on the backtrace, but let's try something else before doing so. Please start LO using: SW_DEBUG_RTF_PASTE_TO=$(pwd)/paste.rtf /Applications/LibreOffice.app/Contents/MacOS/soffice Then do your steps to reproduce the bug. When the actual paste would happen, it won't happen (LO won't crash), but the above mentioned paste.rtf will be created in the current directory. Please attach that to this bug. Thanks!
hello miklos, thank you for your reply. i tried to follow your steps, but it didn't work. i pasted your command into the terminal, lo starts, but it crashes after pasting the text like always and there is no file called paste.rtf. what should i do?
A different way to get the same info is to use pbpaste: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/pbpaste.1.html One more way is described here: http://stackoverflow.com/questions/2545289/getting-rtf-data-out-of-mac-os-x-pasteboard-clipboard Hopefully one way to will work. ;)
Created attachment 80637 [details] contains pasteboard data i got this file.
is the file ok?
davent: I've got a long chain like this: "data RTF 7B5C727466315C616E73695C616E7369637067313235325C636F636F61727466313138375C636F636F6173756..." and that's all. Could you copy paste information in a simple txt file?
Created attachment 83896 [details] Decoded attachment
Thanks, confirmed the crash using: SW_DEBUG_RTF_PASTE_FROM=/path/to/test.rtf ./soffice and typing "foobar", copying, then pasting it as RTF.
Comment on attachment 83896 [details] Decoded attachment Mimetype fixed
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=c73b8072a1732f829d3d6ba6c1172d96d55b1c4f fdo#63428 writerfilter: fix paste of commented text ranges The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
-4-1 review: https://gerrit.libreoffice.org/5368
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=eb27a889d5c3f20dc6c1eecf7f588e54fa08a9f7&h=libreoffice-4-1 fdo#63428 writerfilter: fix paste of commented text ranges It will be available in LibreOffice 4.1.2. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.