Bug 125395 - FILEOPEN: hang opening file in Mac
Summary: FILEOPEN: hang opening file in Mac
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.4.2 release
Hardware: x86-64 (AMD64) macOS (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Performance
  Show dependency treegraph
 
Reported: 2019-05-20 14:45 UTC by laurens
Modified: 2023-12-29 11:24 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Text document causing crash (675 bytes, text/plain)
2019-05-20 14:47 UTC, laurens
Details
document is text from a PDF, saved as RTF (675 bytes, application/octet-stream)
2019-05-20 15:08 UTC, laurens
Details
Filter dialogue seen with LO 3.3.0 (47.08 KB, image/png)
2019-05-21 10:43 UTC, Andrew Watson
Details
Filter dialogue seen with LO 4.0.6.2 (137.57 KB, image/png)
2019-05-21 10:45 UTC, Andrew Watson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laurens 2019-05-20 14:45:57 UTC
Description:
Pasting this (with or without formatting) causes 100% CPU usage and crash

Version: 6.1.6.3
Build ID: 5896ab1714085361c45cf540f76f60673dd96a72
CPU threads: 12; OS: Mac OS X 10.14.5; UI render: default; 
Locale: nb-NO (en_NO.UTF-8); Calc: group threaded


Steps to Reproduce:
1. Open Text file (or paste text into LO)
2. beachball 100% CPU / have to Force quit


Actual Results:
App hang (100CPU, FC)

Expected Results:
Pasted text


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 laurens 2019-05-20 14:47:31 UTC
Created attachment 151535 [details]
Text document causing crash
Comment 2 Xisco Faulí 2019-05-20 15:00:32 UTC Comment hidden (obsolete)
Comment 3 laurens 2019-05-20 15:05:40 UTC
Unfortunately the bug system is filtering the text as plain text (maybe UTF conversion issue?). How to I force upload the .txt file without conversion?
Comment 4 laurens 2019-05-20 15:08:15 UTC
Created attachment 151537 [details]
document is text from a PDF, saved as RTF

Changed filename extension to RTF and set type to binary, hopefully this allows the bug system to upload as is...
Comment 5 laurens 2019-05-20 15:10:02 UTC
From my side: downloading the RTF file (which is just a renamed TXT file) causes the crash described.
Comment 6 QA Administrators 2019-05-21 02:54:44 UTC Comment hidden (obsolete)
Comment 7 laurens 2019-05-21 06:00:58 UTC Comment hidden (obsolete)
Comment 8 Andrew Watson 2019-05-21 10:39:47 UTC
I can confirm that the bug is present in recent LO versions under Mac OS 10.11.6, but not present in LO 5.4.5.1 and earlier.

Starting up LO, selecting File>Open, selecting the test file "text file copy past of this into LO causes crash copy.rtf" and clicking "Open" causes 100% CPU usage and a Spinning Pizza of Death (SPOD) in:

Version: 6.1.4.2
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 4; OS: Mac OS X 10.11.6; UI render: default; 
Locale: en-GB (en.UTF-8); Calc: group threaded

Version: 6.2.3.2
Build ID: aecc05fe267cc68dde00352a451aa867b3b546ac
CPU threads: 4; OS: Mac OS X 10.11.6; UI render: default; VCL: osx; 
Locale: en-GB (en.UTF-8); UI-Language: en-US
Calc: threaded

Version: 6.3.0.0.alpha1
Build ID: 547edd20e527fb02900f6174973770d26306e2e7
CPU threads: 4; OS: Mac OS X 10.11.6; UI render: default; VCL: osx; 
Locale: en-US (en.UTF-8); UI-Language: en-US
Calc: threaded

----------------------------------------------------------------------------

Previous versions behave differently.

There's no crash with LO 3.3.0:

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

LO 3.3.0 pops up an "ASCII filter options" window (screenshot attached). Clicking on "OK" to accept the default options causes the file to open in Writer immediately.

----

There's no crash LO 4.0.6.2 running on Mac OS 10.11.6:

Version 4.0.6.2 (Build ID: 2e2573268451a50806fcd60ae2d9fe01dd0ce24)

LO 4.0.6.2 displays a dialogue asking how the user wants to interpret the file (screenshot attached), and then opens it in Calc.

----

Also no crash with LO 5.4.5.1:

Version: 5.4.5.1
Build ID: 79c9829dd5d8054ec39a82dc51cd9eff340dbee8
CPU threads: 4; OS: Mac OS X 10.11.6; UI render: default; 
Locale: en-GB (en.UTF-8); Calc: group

LO 5.4.5.1 successfully opens the file in Writer.

----

With LO 6.0.4 the file appears to open successfully, but LO becomes unresponsive, and CPU usage becomes very high, often peaking at 100%.

Version: 6.0.4.2
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
CPU threads: 4; OS: Mac OS X 10.11.6; UI render: default; 
Locale: en-GB (en.UTF-8); Calc: group

----

Bug can be reproduced, so changing bug status from UNCONFIRMED to NEW.
Comment 9 Andrew Watson 2019-05-21 10:43:41 UTC
Created attachment 151552 [details]
Filter dialogue seen with LO 3.3.0

Screen shot take on Mac OS 10.11.6
Comment 10 Andrew Watson 2019-05-21 10:45:28 UTC
Created attachment 151553 [details]
Filter dialogue seen with LO 4.0.6.2

Screen shot taken under Mac OS 10.11.6
Comment 11 Xisco Faulí 2019-05-23 16:31:48 UTC
Regression introduced by:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=083b7ca26bbf4b9bad2922520caaf5c0227dac5e

author	Jan-Marek Glogowski <glogow@fbihome.de>	2017-12-26 15:58:21 +0100
committer	Khaled Hosny <khaledhosny@eglug.org>	2018-05-07 23:03:37 +0200
commit 083b7ca26bbf4b9bad2922520caaf5c0227dac5e (patch)
tree b33576cd90c64cb2ede5ab1a930b11828f110105
parent 1ca1886d46f38a0759ab466e6a4a8c3c0866c523 (diff)
Move PhysicalFontFace member of FontSelectPattern

Bisected with: bibisect-mac64-6.1

Adding Cc: to Jan-Marek Glogowski
Comment 12 eisa01 2020-05-09 21:47:25 UTC
This is still present

(also not reproducible on Windows)

Version: 7.0.0.0.alpha0+
Build ID: f14691683900f6b28737be8c599e1ee4e8386e14
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 13 QA Administrators 2022-05-10 03:28:49 UTC Comment hidden (obsolete)
Comment 14 Andrew Watson 2022-05-10 08:57:39 UTC
Bug still present in:

Version: 7.3.3.2 / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 4; OS: Mac OS X 10.14.6; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

Following the steps in Comment 8 causes LO to peg at 100% CPU use. After 2 minutes accumulated CPU time (on a 2.2 GHz Intel Core i7, MacBookAir7,2) a Writer window appears containing text from the file, but the Spinning Pizza of Death continues, and LO remains unresponsive and pegged at 100% CPU. Process killed after 4 minutes' CPU accumulated.
Comment 15 Telesto 2022-12-22 15:33:56 UTC
No freeze hang/ with
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8635c9aa8c6f1078a9e220076d5a08daf30077e8
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Metal; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 16 eisa01 2023-12-29 11:24:32 UTC
No hang any longer

Version: 7.6.4.1 (AARCH64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 10; OS: Mac OS X 14.2; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded