Issue 108749

Summary: Crash changing or updating DDE link to Calc table in Writer
Product: Writer Reporter: guusstoop <guusstoop>
Component: editingAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P2 CC: issues
Version: OOo 3.2 RC4Keywords: crash
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Report containing links to Calc
none
coupled to 'Stressrapport UBOS-UCL vs.1.odt' none

Description guusstoop 2010-01-28 20:32:21 UTC
I create an automatic document using Calc to manipulate measurement data and results are copied to 
Writer. During the proces of building, changing results are reflected in the report. After closing both and 
reopening the document, Openoffice reports an error. I have to restart in order to use Openoffice again. It 
then tries to restore the documents. Restoring results in the same error.

It happens after I agree to update all links between Calc and Writer after opening the (restored) document 
(pop-up)
Starting all over with new documents does not solve the problem.

I can send the files if needed
Comment 1 guusstoop 2010-01-28 20:34:44 UTC
Created attachment 67463 [details]
Report containing links to Calc
Comment 2 guusstoop 2010-01-28 20:36:10 UTC
Created attachment 67464 [details]
coupled to 'Stressrapport UBOS-UCL vs.1.odt'
Comment 3 michael.ruess 2010-01-29 13:06:55 UTC
MRU->OS: Writer crashes when it tries to access a certain DDE linked table of a
Calc sheet.
See the attached samples, it looks that the last link in the Edit.Links list is
responsible for the crash.
The odt contains the links customized for the user's setting, but when changing
the link to the path's on my local machine I get the crash. Report ID is rjg69wc.
Excerpt from stack is:
SwTxtNode::EraseText+0x00000022
SwDDEFieldType::QueryValue+0x000004C2
SwDDEFieldType::QueryValue+0x00000743
SwDepend::Modify+0x00000032
SwDDEFieldType::QueryValue+0x000002C0
Comment 4 Oliver Specht 2010-01-29 15:02:05 UTC
The code in SwDDETable::ChangeContent() cannot cope with modified cell content. 
The example document contains a DDE-Table that contains another (DDE-)Table as
cell content. 
The same crash occurs if such table cells start with a text section. 

->guusstoop: The Table8 is a DDE-Table which is linked to cell F28 of the
spreadsheet. The only table cell of Table8 contains Table10 which is a DDE-Table
linked to O28 of the spreadsheet. 
If the update of the link wouldn't crash than the contained Table10 would be
replaced by the content of F28. That's probably not what you want. 
To be able to work with this document remove Table 8 and re-insert the link to O28. 
Comment 5 Marcus 2017-05-20 11:13:15 UTC
Reset assigne to the default "issues@openoffice.apache.org".