Bug 42639 - EDITING: Writer crashes on copy and pasting
Summary: EDITING: Writer crashes on copy and pasting
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.4.3 release
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-06 02:59 UTC by florianschoeberl
Modified: 2014-08-15 12:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
odt-file (16.94 KB, application/vnd.oasis.opendocument.text)
2011-11-06 03:06 UTC, florianschoeberl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description florianschoeberl 2011-11-06 02:59:39 UTC
Problem description: 

Writer crashes when pasting a certain amount of text in the middle of the file.

Steps to reproduce:
1. Open the attached document
2. Copy the blue text
3. Paste it right after the blue text/before the yellow text

Current behavior:

Writer crashes.

Expected behavior:

Text should be pasted.

Platform (if different from the browser): Ubuntu 11.10
              
Browser: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
Comment 1 florianschoeberl 2011-11-06 03:06:11 UTC
Created attachment 53211 [details]
odt-file
Comment 2 Ilian Dimitrov 2011-11-06 03:46:31 UTC
(In reply to comment #1)
> Created attachment 53211 [details]
> odt-file

I can confirm the bug too. It's really strange because after the recovery of the documment you can paste the text and LibreOffice doesen't crash.

LibreOffice 3.4.3

platform: Windows 7 Home Premium x64
Comment 3 NoOp 2011-11-13 15:30:48 UTC
Confirmed w/LO 3.4.4 (linux - deb build):
LibreOffice 3.4.4 
OOO340m1 (Build:402)

Works w/LO 3.3.4 (linux - deb build):
LibreOffice 3.3.4 
OOO330m19 (Build:401)
tag libreoffice-3.3.4.

So this appears to be a another regression between 3.3.4 and 3.4.x.
Comment 4 Cor Nouws 2011-11-14 01:08:46 UTC
indeed it crashes in 3.4.4
It does not in a 3.5 masterbuild.

What is so special about this section that is causes the crash?
Some testing shows that it crashes if I copy paste from the first paragraph, but not if I do it with text from the second.
Note there is something strange too with the paragraph markers in the blue text.
Selecting and setting to default (Toosl > Default) does not make any difference for me.
Comment 5 NoOp 2011-11-14 12:00:28 UTC
Got an strace, but it's over 9MB and so can't be attached. Given that the bug is easily reproduced I reckon that a dev can do the same directly.
Comment 6 NoOp 2011-11-14 19:12:51 UTC
Just ran across yet another case of a .docx crashing LO and OOo-dev:

http://comments.gmane.org/gmane.comp.openoffice.general/57343
[Problem with the Open Office Text Processing]

The file can be downloaded by right clicking Dr. Kostopoulos'
attachement. It will download as a .bin file - just rename it to a .docx
file.
<http://cache.gmane.org//gmane/comp/openoffice/general/57343-001.bin>

1. OOo 3.2.1 (go-oo Ubuntu distribution build linux)
OpenOffice.org 3.2.1
OOO320m19 (Build:9505)
ooo-build 3.2.1.4, Ubuntu package 1:3.2.1-7ubuntu1.

The file opens properly and displays 7 full pages of text including
References and Biography etc., with no problem.

2. OOo-Dev (standard build linux)
OOo-dev 3.4.0
DEV300m106 (Build:9582)

Crashes OOo immediately & leaves a lock file in place.

3. LibreOffice 3.3.4 (standard build linux)
LibreOffice 3.3.4
OOO330m19 (Build:401)
tag libreoffice-3.3.4.

Crashes LO immediately & leaves a lock file in place.

4. LibreOffice 3.4.4 (standard build linux)
LibreOffice 3.4.4
OOO340m1 (Build:402)

Crashes LO immediately & leaves a lock file in place.
Comment 7 NoOp 2011-11-14 20:03:23 UTC
My apologies. The former comments regarding the .docx crashes are most likely not related to this bug (where copy & past is the issue).
Comment 8 Timur 2012-02-28 09:04:47 UTC
Loking for some other bug, I tested this with LO 3.5.0 on Windows 7 and Ubuntu 12.04 (alpha). It doesn't crash. Please check.
Comment 9 Cor Nouws 2012-02-28 12:54:28 UTC
(In reply to comment #8)
> Loking for some other bug, I tested this with LO 3.5.0 on Windows 7 and Ubuntu
> 12.04 (alpha). It doesn't crash. Please check.

Thanks, that is confirming what I found in my previous comment:
  https://bugs.freedesktop.org/show_bug.cgi?id=42639#c4

I suggest marking as FIXED in 3.5.x