Bug 133428 - Writer crashes after pasting text from web source as unformatted text
Summary: Writer crashes after pasting text from web source as unformatted text
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha1+
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste-Special-Unformatted
  Show dependency treegraph
 
Reported: 2020-05-27 08:49 UTC by Elmar
Modified: 2020-06-02 13:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
doc that crashes (21.04 KB, application/vnd.oasis.opendocument.text)
2020-05-27 08:56 UTC, Elmar
Details
the autosaved crash doc (21.15 KB, application/vnd.oasis.opendocument.text)
2020-05-27 08:56 UTC, Elmar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elmar 2020-05-27 08:49:29 UTC
Description:
I pasted text into a document and Writer crashes

Steps to Reproduce:
1. open up a previously created document (to pick up formatting) created with master~2020-05-13_06.53.25
2. delete contents of document
3. copy text from a web source
4. unformatted paste into document

Actual Results:
immediate crash
recovery offered, recover doc
crashes as before

Expected Results:
should not crash


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: en-GB
Module: TextDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes

I then opened the document with Version: 6.0.7.3
Build ID: 1:6.0.7-0ubuntu0.18.04.10 
(I notice that I can no longer copy this info from "About" in the master~2020-05-24_14.20.49 version )
It had no problem with pasting.
I saved the document with v6.0.7.3
Opened this version of the doc with Writer7 and copy/paste the offending web text again. Crashed again.
Re-opened, but this time copied the previously copy/paste text again.
has no problem.
Comment 1 Elmar 2020-05-27 08:56:11 UTC
Created attachment 161315 [details]
doc that crashes

This doc was made by taking an older doc that had contents deleted then saved and crashed on paste unformatted
Comment 2 Elmar 2020-05-27 08:56:49 UTC
Created attachment 161316 [details]
the autosaved crash doc
Comment 3 Elmar 2020-05-27 09:27:34 UTC
So I downloaded the latest version 
master~2020-05-26_02.36.36
same result

so I then reinstalled my previous download
master~2020-05-13_06.53.25
works fine

Since we are into conspiracies at the moment -.....
yesterday when I installed the 
master~2020-05-24_14.20.49 version the main deb must have taken almost 10x as long to install as I am used to.

Today, when I installed the latest one it took about the same time.

one thing, just check the second text line on p2 (need to toggle formatting marks to see it). It shows it has 9pt font size. The style tho says it should be 11pt. When I use "clear direct formatting" it does not revert that to style. Even when I open the character dialog and click on reset, it doe not fix revert to 11pt as the style is.
Comment 4 Dieter 2020-05-30 05:44:35 UTC
(In reply to Elmar from comment #0)
> Description:
> I pasted text into a document and Writer crashes
> 
> Steps to Reproduce:
> 1. open up a previously created document (to pick up formatting) created
> with master~2020-05-13_06.53.25
> 2. delete contents of document
> 3. copy text from a web source
> 4. unformatted paste into document

No crash with

Version: 7.0.0.0.beta1 (x64)
Build ID: 94f789cbb33335b4a511c319542c7bdc31ff3b3c
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

Is it possible, that it depends on kind of text from web source?
Comment 5 Elmar 2020-05-30 10:13:54 UTC
The point is that it did not crash with the version I downloaded on 13May.

Something must have changed after that. But it may be unique to the Linux version

When I do an unformatted paste, it is supposed to paste text only and nothing else. Or that is the way I understand it.
Comment 6 Elmar 2020-06-02 13:19:04 UTC
have tried it with latest version (2June)

seems to work fine now
Comment 7 Dieter 2020-06-02 13:31:28 UTC
(In reply to Elmar from comment #6)
> have tried it with latest version (2June)
> 
> seems to work fine now

=> RESOLVED WORKSFORME