Issue 67940 - Crash when typing inside a section surrounding a nested table
Summary: Crash when typing inside a section surrounding a nested table
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOo 2.0.3
Hardware: PC Windows XP
: P2 Trivial (vote)
Target Milestone: ---
Assignee: michael.ruess
QA Contact: issues@sw
URL:
Keywords: crash, oooqa
Depends on:
Blocks:
 
Reported: 2006-07-30 15:08 UTC by troodon
Modified: 2013-08-07 14:43 UTC (History)
3 users (show)

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


Attachments
Crash testcase (7.37 KB, application/vnd.oasis.opendocument.text)
2006-07-30 15:09 UTC, troodon
no flags Details
Screenshot showing "dangerous area" (34.11 KB, image/png)
2006-07-30 16:35 UTC, Rainer Bielefeld
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description troodon 2006-07-30 15:08:25 UTC
See the attached test case. Open it and try to write something inside the
section, below the table. On my computer it always crashes.
It works fine with 2.0.2.
Comment 1 troodon 2006-07-30 15:09:43 UTC
Created attachment 38132 [details]
Crash testcase
Comment 2 Rainer Bielefeld 2006-07-30 16:23:08 UTC
I checked with "2.0.3RC5  German version WIN XP: [680m5(Build9036)]" and can
confirm the reported problem, pls. see attached screenshot!
I can also confirm that no crash happens using "2.0.2  German version WIN XP:
[680m5(Build9011)]"

I created a crash report. The ID of the error report is r6s5c6.
Comment 3 Rainer Bielefeld 2006-07-30 16:35:35 UTC
Created attachment 38133 [details]
Screenshot showing "dangerous area"
Comment 4 Joost Andrae 2006-07-31 10:52:49 UTC
ja: confirmed for src680m178 and src680m179

ja->rainerbielefeld: are you still using src680m118 ? That's rather old...
Comment 5 michael.ruess 2006-07-31 11:58:16 UTC
MRU->OD (cc FME): easy to reproduce. Insert a table, in this insert a section.
Into this section insert another table. Now place cursor right below inner table
-> crash
Please have a look, if you have enough resources to fix for OO 2.0.4.
Comment 6 Oliver-Rainer Wittmann 2006-08-01 13:37:29 UTC
Investigation reveals, that the changes made in cws redline01 at method
<SwTable::GetTblBox( UNLONG nSttIdx )> causes the crash.

According to discussion with FME, FME will take over responsibility for this
issue. FME will clarify with AMA, how to solve this problem
Comment 7 frank.meies 2007-01-08 12:52:52 UTC
FME: Looks like we should jump to the end of the inner table in
SwTable::GetTblBox() instead of breaking.
Comment 8 maruthapillai 2007-01-25 18:53:58 UTC
We were able to reproduce this issue on OOo 2.0.3 with the following 
configurations separately:

On Intel(R) Pentium(R) 4 CPU 2.80GHz with 1GB RAM running -
1. Linux 2.6.9-42.0.3.EL.CSE.smp #1 SMP i686 i686 i386 GNU/Linux
2. MS Windows XP Pro Ver. 2002 (SP2)

Actually, we can use a table with just one cell to reproduce this
issue. We used the following steps:

1.  Start OOo
2.  Select File->Next->Text Document to create a new text document. 
    Actually, you can instead choose HTML Document, XML Form Document 
    or Master Document.
3.  Select Table->Insert->Table... and the Inset Table dailog shows.
4.  Set Columns and Rows to one respectively and press OK to insert the
    table of one cell.
5.  Click inside the one cell to place cursor.
6.  Select Insert->Section... to insert a section into the cell.
7.  Click inside the Section to to place cursor.
8.  Now, repeat steps 3 & 4 to insert a table of one cell inside
    the section
9.  Now click inside the section and right below the inner table.
10. Now OOo pops up the 'OpenOffice.org Document Recovery' dialog
    informing the user that OOo has crashed.

We performed the follow up tests to check if this issue was specific to
Text documents only. We peformed the above steps for an HTML Document, XML
Form Document, and Master Document. We were able to reproduce the crash
on these document types too.

We peformed another follow-up test related to the above task. The steps
are as listed below:

1.  Peform the above steps 1-7 in order
....
....
8.  Click inside the section so that the cursor is at the left
    corner of the cell.
9.  Enter one or more characters(any type) inside the section at the cursor.
10. Now perform step 8 from the earlier steps. A table with one cell inside
    the section can be seen. But now the inner table is on a line below the
	characters entered previous.
11. Now click inside the section and right below the inner table. 

It will be noted that OOo DOES NOT crash. However, if the characters are
deleted and step 11 above peformed, OOo will crash. We successfully tested
this on tables of any size and sections inserted into any cell. We can 
report the same results as above.

This is a serious bug since OOo can be crashed.
Comment 9 frank.meies 2007-03-28 13:12:45 UTC
Fixed in cws swqbf93, swtable rev. 1.3.34.2
Comment 10 frank.meies 2007-04-24 13:53:12 UTC
FME: Ready for QA.
Comment 11 frank.meies 2007-04-24 14:03:49 UTC
.
Comment 12 michael.ruess 2007-05-16 11:05:36 UTC
Verified fix in CWS swqbf93.
Comment 13 michael.ruess 2007-06-21 15:50:04 UTC
Checked fix in680m214.
Comment 14 troodon 2007-11-18 17:05:57 UTC
As repoter, confirming this is fixed in OOo 2.3 and 2.3.1. Thank you to all who
contributed for fixing this bug.