https://bugs.documentfoundation.org/show_bug.cgi?id=96102
Bug ID: 96102
Summary: LibreOffice hangs with 100% CPU when opening .doc file
which is another type of file
Product: LibreOffice
Version: 5.0.3.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
Created attachment 120837
--> https://bugs.documentfoundation.org/attachment.cgi?id=120837&action=edit
A HTML file whose extension is wrong.
I downloaded what I though was a .doc file but in reality was a large .html
with the wrong name.
Instead of warning that the file is of the wrong type LibreOffice just stuck at
100% CPU on the loading splash screen.
When I was trying to diagnose the problem on the console it was easy to spot
the problem:
------------------8<-----------------
user@krang:~/Downloads$ libreoffice anonymous.doc
:6: parser error : internal error: detected an error in element content
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.or
^
:6: parser error : internal error: detected an error in element content
(these same lines multiple times)
------------------8<-----------------
user@krang:~/Downloads$ file anonymous.doc
anonymous.doc: HTML document, ASCII text, with very long lines, with CRLF, LF
line terminators
------------------8<-----------------
The bug I guess is that LibreOffice should not attempt to open files which are
not supported, or at least do basic checks before opening the file as a certain
type.
This problem is very easy to spot for an IT person, but can confuse a
non-technical person and leave an undeserved negative impression of
LibreOffice.
I have seen this happen before to other people, but it never occurred to me
this could be the issue as I had no involvement (help desk dealt with the
problem, I was just an observer).
Please consider adding basic file type checking before attempting opening
documents.
I have attached the offending not ".doc" file.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs