Issue 109284 - RTF: Writer crashes when copying text to clipboard and then exporting
Summary: RTF: Writer crashes when copying text to clipboard and then exporting
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 3.2 RC5
Hardware: PC All
: P2 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords:
: 106160 108408 109850 110055 110346 110392 110657 111362 111540 (view as issue list)
Depends on:
Blocks: 109046
  Show dependency tree
 
Reported: 2010-02-15 12:36 UTC by ntsiebel
Modified: 2013-08-07 14:44 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Crash info file (backtrace etc.) (115.54 KB, text/plain)
2010-02-15 18:21 UTC, ntsiebel
no flags Details
Document without confidential content (17.84 KB, application/vnd.oasis.opendocument.text)
2010-02-16 11:11 UTC, michael.ruess
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description ntsiebel 2010-02-15 12:36:36 UTC
I have OpenOffice 3.2.0.5-1.1 as distributed by openSUSE for 11.2 on 32-bit x86.

After the upgrade from 3.1.1.4-1.1.4.i586 an issue occurs with an existing
document which works perfectly under the older version.  I have since downgraded
and it works again, so it is a regression.

When I select text (which has special attributes, mixed non-standard-fonts,
raised text) and press Ctrl+C for Copy to clipboard, at that moment OpenOffice
Writer crashes.  A dialogue window reports that data for restoring the document
later is shown.  The document was not altered, though.  When re-starting writer
the restoration process starts but has no visible effect (the document was not
changed after loading it).  The issue is still there in the restarted Writer
with restored file.

Sadly, the document in question is copyrighted, therefore I cannot post it. 
However, I will happily run OOo with some debug info commandline parameters (if
they exist) and send in a core file / debug output if the document cannot be
extract4ed from the core.

Hope this issue can be reconstructed from this.

Thanks
Comment 1 michael.ruess 2010-02-15 16:48:18 UTC
As long as the OpenOffice build provided by Novell is not supported by OOo
webpage, could you please check if the problem also occurs with the native build
downloaded from OpenOffice.org?
I am not reproduce the problem with my sample files.
If you do not want to share your confidential document here, you can send it
directly to me (mru@openoffice.org) - we here at SUN / ORACLE will -of course-
handle the document confidential and delete it after use. Thanks for supporting us!
Comment 2 ntsiebel 2010-02-15 18:20:18 UTC
Thanks for the fast reply.  Sorry to report on a non-ooo build.  I am trying on
a different machine (this time x86-64) and account now, same file.  This time
the crash occured a tiny bit later, at a time when the Paste command occured.  I
pasted text into a Java program, the latter, I am sure, tries to insert RTF.
This time I got a hs_err_pid6330.log error report, which I am attaching.

Hope this helps you to find the relevant component, even if it's not your build.

Also, just FYI, the install of the previous version on the other machine
(downgrade to solve the problem) now means an immediate crash when oowriter
starts.  No file needs to be opened for the crash, and removing ~/.ooo3 does not
help.  I installed abiword on that machine.

Regards,
ntsiebel
Comment 3 ntsiebel 2010-02-15 18:21:26 UTC
Created attachment 67841 [details]
Crash info file (backtrace etc.)
Comment 4 michael.ruess 2010-02-16 11:09:06 UTC
MRU->HBRINKM: I have now found a way to reproduce the crash. It only happens
with a special document. You must First select all text in the attached document
and copy to clipboard. Then export to RTF -> crash.

MRU->ntsiebel: do not worry, I have changed all the content in your document, so
that no confidential data will be shared here.
Comment 5 michael.ruess 2010-02-16 11:11:58 UTC
Created attachment 67856 [details]
Document without confidential content
Comment 6 ntsiebel 2010-02-16 12:05:11 UTC
Dear mru,

Many thanks for your work.  I am happy that you can reproduce the error and hope
it can be fixed both easily and soon.

Thanks.
Comment 7 openoffice 2010-02-16 16:35:59 UTC
fixed in hb33issues01:
changeset:   265160:196df5f1c7e4
date:        Tue Feb 16 17:26:41 2010 +0100
summary:     hb33issues01: #i109284# SwRTFWriter::OutBookmarks: Do not read name of NULL bookmark 
pointer
Comment 8 ntsiebel 2010-02-17 21:03:55 UTC
Thanks for the fix.

Is there a workaround that I could use until the fix has found its way into the
Novell/openSUSE repository?  Maybe set a dummy "bookmark" (whatevery they have
to do with copy&paste and/or RTF)?  Where do I do that?

Also, on the machine where I de-installed the new version and re-installed the
old, some change has apparently remained.  When I start oowriter (without
opening a file) there is an immediate crash.  Should I open a new ticket for
that?  I have a core file and strace output I could upload.

Thanks
Comment 9 ntsiebel 2010-02-21 08:13:19 UTC
Please comment on a workaround, thanks!
Comment 10 michael.ruess 2010-03-02 08:22:53 UTC
*** Issue 109723 has been marked as a duplicate of this issue. ***
Comment 11 openoffice 2010-03-18 17:29:51 UTC
*** Issue 108408 has been marked as a duplicate of this issue. ***
Comment 12 openoffice 2010-03-18 17:34:13 UTC
*** Issue 110055 has been marked as a duplicate of this issue. ***
Comment 13 ntsiebel 2010-03-18 18:20:56 UTC
Dear hbrinkm:

There still is no downloadable version which has your fix.  As I use this on a
production system, please comment on a workaround (other than installing
Windows, which I have done as a temporary measure).

Where do I set a bookmark (of the type the RTF writer needs it)?  Do I need to
create directories like ~/Documents (which I do not have), or edit document
properties, or change ooo config files?

Thanks!
Comment 14 openoffice 2010-03-19 09:34:50 UTC
@ntsiebel: AFAIK there is no workaround known. However this issues has been nominated as show stopper 
for OOo 3.2.1 and thus the fix will be integrated soon.
Comment 15 openoffice 2010-03-19 09:35:34 UTC
nominated as show stopper for OOo 3.2.1: moving target
Comment 16 openoffice 2010-03-24 17:34:20 UTC
Transplanted fix to CWS sw321bf01 on OOO320

changeset:   263356:80bd862849b5

@ntsiebel: You will have to wait for the CWS to be integrated into the OOO320 code line to have a pre-
build download. Look in EIS for the integration of the CWS and look on GULLFOSS for the downloads to be 
announced. Please do not reopen issues whose CWS has not been integrated.
Comment 17 michael.ruess 2010-03-26 14:33:41 UTC
*** Issue 110392 has been marked as a duplicate of this issue. ***
Comment 18 michael.ruess 2010-03-31 06:43:07 UTC
*** Issue 109850 has been marked as a duplicate of this issue. ***
Comment 19 Oliver-Rainer Wittmann 2010-03-31 08:55:17 UTC
OD->MRU: Checked in internal installation set of cws sw321bf01 - please verify.
Comment 20 michael.ruess 2010-04-06 15:30:18 UTC
Verified in CWS sw321bf01.
Comment 21 michael.ruess 2010-04-07 10:15:01 UTC
*** Issue 110657 has been marked as a duplicate of this issue. ***
Comment 22 michael.ruess 2010-04-07 12:54:21 UTC
*** Issue 110346 has been marked as a duplicate of this issue. ***
Comment 23 michael.ruess 2010-05-04 12:46:38 UTC
*** Issue 111362 has been marked as a duplicate of this issue. ***
Comment 24 eric.savary 2010-05-11 17:21:16 UTC
*** Issue 111540 has been marked as a duplicate of this issue. ***
Comment 25 michael.ruess 2010-05-12 14:33:45 UTC
Checked in DEV300m77 and OOO320m17.
Comment 26 niklas.nebel 2011-02-10 19:20:14 UTC
*** Issue 106160 has been marked as a duplicate of this issue. ***