Bug 37430 - EDITING: Writer crashes when pasting in a Table cell that would cause cell to exceed page size
Summary: EDITING: Writer crashes when pasting in a Table cell that would cause cell to...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-21 04:15 UTC by Daniel Baum
Modified: 2013-11-23 05:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample document to recreate defect (18.04 KB, application/vnd.oasis.opendocument.text)
2011-05-21 09:25 UTC, Daniel Baum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Baum 2011-05-21 04:15:13 UTC
I have a Table in my Writer document.
One of the table cells/rows is almost as high as the available page size.
When I now try to paste text into a that cell, Writer crashes.
I think it is because the new text would make the row size exceed the available space and Writer doesn't know what to do in that case (as it can't split a row).
Comment 1 Rainer Bielefeld Retired 2011-05-21 07:19:09 UTC
NOT reproducible with "LibreOffice 3.4.0RC1  – WIN7  Home Premium  (64bit) English UI [OOO340m1 (Build:11)]". I created a new WRITER document, added a table 2C2R, made first row and right column as small as possible, then I copy / pasted a lorem imsum paragraph again and again to the bottom left big cell. Table exceeded page without crash.

@Daniel:
Please 
- attach a sample document "short before crash" 
- and a step by step instruction how to reporduce the crash using your 
  sample document.
- and information concerning your WIN version!
Comment 2 Daniel Baum 2011-05-21 09:25:02 UTC
Created attachment 46975 [details]
Sample document to recreate defect

The described defect can be reproduced with this attachment:
On the second page in the cell that is filled with text ("blabla"), either:
 - (copy and) paste some additional text into the cell, or
 - select the text (Ctrl-A) and resize to more than 7 points
Comment 3 Daniel Baum 2011-05-21 09:27:58 UTC
I added a document including instruction. I can reproduce the defect 100%.
I am running Win7 Professional 64bit.
Comment 4 Rainer Bielefeld Retired 2011-05-21 10:40:24 UTC
Now [Rreproducible] with reporter's sample document and "LibreOffice 3.4.0RC1  – WIN7  Home Premium  (64bit) English UI [OOO340m1 (Build:11)]". LibO stops responding after "select the text (Ctrl-A) and resize to more than 7 points".

But I'm still unable to create an own sample document, my tables do not crash. 

@Daniel:
Any idea what exactly might cause the crash?

@Cédric:
Please feel free to reassign if you do not want to be the assignee.
Comment 5 Daniel Baum 2011-06-05 09:59:08 UTC
(In reply to comment #4)
> Any idea what exactly might cause the crash?
Unfortunately no. Initially, I thought it is directly attributable to the row height exceeding the available space (see Description), but this is indeed not the case (I cannot reproduce it from an empty document either). There must be some other factors leading to this issue.
Comment 6 A (Andy) 2013-05-04 23:03:14 UTC
reproducible with LO 4.0.2.2 (Win7 Home, 64bit)

It is also reproducible with a new table by the following steps:
1. Open a new document in WRITER
2. Go to the menu TABLE -> INSERT -> TABLE
3. Click INSERT to insert a 2 x 2 table
4. Merge the two cells in column 1 by selecting both cells and a right mouse click on them and choosing CELL -> MERGE
5. Insert any text into the cell in row 1 / column 2, insert this text until the second row of the table will move to the next page (only the second row of the table should be on the second page, the first row with the text in column 2 should be only on the first page)
6. Right mouse click on the table to open the context menu (if there are spelling errors in a cell then for instance select another cell or alternatively you can also go to the menu TABLE -> TABLE PROPERTIES)
7. Go to the tab TEXT FLOW and deactivate ALLOW ROW TO BREAK ACROSS PAGES AND COLUMNS
8. Select several lines of text in the cell in row 1 / column 2 and press Ctrl + C
9. Place the cursor anywhere in the text in the cell in row 1 / column 2 and press Ctrl + V

Result: LO crashes

Therefore, two conditions are necessary to reproduce it with an own table: (1) merged cells in another column and (2) the deactivation of ALLOW ROW TO BREAK ACROSS PAGES AND COLUMNS.
Comment 7 Julien Nabet 2013-07-22 09:12:02 UTC
On pc Debian x86-64 with LO 4.0.3 Debian package, I don't reproduce this (with Daniel example or with A's comment)

Daniel/Cédric: do you still reproduce this?
Comment 8 Julien Nabet 2013-11-23 05:41:59 UTC
I put it as WFM for the moment.

Daniel, A: don't hesitate to reopen this tracker if you still reproduce this with last LO version 4.1.3