Bug 49502 - RTF: opening RTF file failed
Summary: RTF: opening RTF file failed
Status: RESOLVED DUPLICATE of bug 55939
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.5.3 release
Hardware: Other All
: medium normal
Assignee: Miklos Vajna
Whiteboard: BSA
Depends on:
Reported: 2012-05-04 11:06 UTC by francis wintzenrieth
Modified: 2013-12-05 15:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

RTF file causing the error (795.35 KB, application/rtf)
2012-05-04 11:06 UTC, francis wintzenrieth
LO 3.6 generated .rtf (31.99 KB, application/rtf)
2012-11-13 00:25 UTC, NoOp
LO Ubuntu generated .rtf (31.77 KB, application/rtf)
2012-11-13 00:26 UTC, NoOp
LO 3.5rc3 generated .rtf (31.80 KB, application/rtf)
2012-11-13 00:27 UTC, NoOp
Broken RTF file (6.15 KB, application/rtf)
2012-11-30 17:36 UTC, Michal Nowak
ODT from which was RTF generated (13.04 KB, application/vnd.oasis.opendocument.text)
2012-11-30 17:37 UTC, Michal Nowak
Working RTF file created by LO (6.16 KB, text/rtf)
2012-12-22 20:40 UTC, Michal Nowak

Note You need to log in before you can comment on or make changes to this bug.
Description francis wintzenrieth 2012-05-04 11:06:26 UTC
Created attachment 61041 [details]
RTF file causing the error

Problem description: 
When trying to open the RTF file attached, content is not displayed and an error message appears : 
general error
general input/output error

the RTF file is generated by a french professional software of thermal calculations in HVAC 

Steps to reproduce:
1. open the attached file in writer

Current behavior: display a message error

Expected behavior: display content of the file

Platform (if different from the browser): 
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
Comment 1 Jean-Baptiste Faure 2012-05-04 12:51:44 UTC
Reproducible with LO 3.5.4rc0+ and master (Version ID : 3e0b229).
No error message if I do Insert sheet from file in Calc
LO 3.3 and LO 3.4 open this file without error message.

Miklos: please have a look. Feel free to reassign if you can't handle this bug.

Best regards. JBF
Comment 2 francis wintzenrieth 2012-10-21 17:30:37 UTC
There is no problem with this file when using Insertion >> File. All the content of this file is perfectly imported (table, format, page break).
Hoping this will help...
Comment 3 NoOp 2012-11-13 00:24:18 UTC
I can replicate with Version (Build ID: 58f22d5) (linux and Windows).

In attempting to troubleshoot this Ubuntu bug:
[Saving as RTF messes with page 1]
I downloaded the authors .doc:
and saved it to an .rft (attached as bug2.rtf) with LO (standard - non-distro/Ubuntu version), closed LO and attempted to reopen. The result is 

general error
general input/output error

Interestingly enough, I can successfully 'Insert|File' into a blank LO Writer document. However, note that the .rtf file inserts a 'Section'; most likely related bug for that is: https://bugs.freedesktop.org/show_bug.cgi?id=45325

I then replicated in a Windows version, and (Windows and linux). If I back 3.5 down to 3.5.0rc3 (attached as bug2GLO35rc3.rtf) I do not encounter the issue.

I then tested with the distro modified (Ubuntu LO 3.5.4-0ubuntu1.1) version and the .rtf saves (with the exception of inserting the section break), and opens correctly (.rtf attached as bug2LOUbuntu.rtf). That .rtf can be compared against 'bug2.rtf' and essai.rtf for troubleshooting purposes.
Comment 4 NoOp 2012-11-13 00:25:54 UTC
Created attachment 69970 [details]
LO 3.6 generated .rtf
Comment 5 NoOp 2012-11-13 00:26:38 UTC
Created attachment 69971 [details]
LO Ubuntu generated .rtf
Comment 6 NoOp 2012-11-13 00:27:26 UTC
Created attachment 69972 [details]
LO 3.5rc3 generated .rtf
Comment 7 Michal Nowak 2012-11-30 17:36:21 UTC
Created attachment 70839 [details]
Broken RTF file

I have also General input/output error with attached RTF file created by LO (3.5.7 is the same). The problem is with the footnote in the ODF file from which is the RTF generated, once is footnote removed RTF opens just fine.
Comment 8 Michal Nowak 2012-11-30 17:37:16 UTC
Created attachment 70840 [details]
ODT from which was RTF generated
Comment 9 Michal Nowak 2012-12-22 20:40:03 UTC
Created attachment 71999 [details]
Working RTF file created by LO

This is fixed for me with:

  Version (Build ID: 4104d660979c57e1160b5135634f732918460a0)

on Fedora 17 x86_64 (RPM).

Created RTF with and now I am able to open it with both and Resulted RTF attached.
Comment 10 Miklos Vajna 2012-12-22 21:07:40 UTC

Thanks for the feedback -- so if it was about footnote RTF export in general, I think I know when this got fixed.

*** This bug has been marked as a duplicate of bug 55939 ***