Bug 49403 - RTF: layout of RTF document broken, regression from LibO 3.4
Summary: RTF: layout of RTF document broken, regression from LibO 3.4
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.3 release
Hardware: All All
: high major
Assignee: Miklos Vajna
URL:
Whiteboard: BSA bibisected35 bibisected35older
Keywords: filter:rtf, regression
: 54257 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-02 13:39 UTC by ladislav.bonita
Modified: 2017-08-27 05:39 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
problem file (16.05 KB, application/rtf)
2012-05-02 13:39 UTC, ladislav.bonita
Details
screenshot of the correct behavior in LibO 3.4 (111.64 KB, image/png)
2012-05-02 13:42 UTC, ladislav.bonita
Details
broken layout in LibO 3.5.3 (109.99 KB, image/png)
2012-05-02 13:43 UTC, ladislav.bonita
Details
How the sample file looks in LibO 3.5.4.2 (188.14 KB, image/png)
2012-06-02 02:58 UTC, Roman Eisele
Details
How the sample file looks in LibO 3.6.1.2 (185.50 KB, image/png)
2012-08-31 14:35 UTC, Roman Eisele
Details
rtf files, that were sucessfully opened in 3.6.X, but in 4.0.0.0 beta 2 could not be opened (crash) (11.18 KB, application/zip)
2012-12-24 07:36 UTC, Timon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ladislav.bonita 2012-05-02 13:39:06 UTC
Created attachment 60934 [details]
problem file

Problem description: 
Broken layout of attached RTF file in LibreOffice 3.5.3 Writer. Frames around the parts of the document are missing or misplaced, numbers on the line in the middle of the document are missing.

Steps to reproduce:
1. open attached broken.rtf file in Writer

Current behavior: broken layout, see http://www.popka.sk/_data/libo35.png

Expected behavior: layout like in LibO 3.4, see http://www.popka.sk/_data/libo34.png

Platform (if different from the browser): Windows, Linux
              
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:12.0) Gecko/20100101 Firefox/12.0
Comment 1 ladislav.bonita 2012-05-02 13:42:17 UTC
Created attachment 60935 [details]
screenshot of the correct behavior in LibO 3.4
Comment 2 ladislav.bonita 2012-05-02 13:43:15 UTC
Created attachment 60936 [details]
broken layout in LibO 3.5.3
Comment 3 Jean-Baptiste Faure 2012-05-06 02:14:23 UTC
Reproducible with master (Build ID: f1005e5) and LO 3.5.4 rc0+ under Ubuntu 11.10

Looks like a duplicate of bug 47495 : as in report generated by Oracle Report, a complex set of text areas and frames is not rendered correctly.

Miklos : do you agree ? 
Please, feel free to reassign if you can't handle this bug

Best regards. JBF
Comment 4 Roman Eisele 2012-05-09 09:59:30 UTC
Set status to NEW, because bug is confirmed now (see comment #3), well-documented with sample file, and reproducible.

Hint: Also similar to bug 48442. (It's hard to say if any of these bugs is a real duplicate; this would need good understanding of the RTF format, and is beyond my horizon. We will know if one of them is fixed: if bug B goes away after fixing bug A, it was a duplicate ...)
Comment 5 Robinson Tryon (qubit) 2012-05-20 21:54:50 UTC
Regression does appear in oldest version of bibisect-3.5.tar.lzma and must be older.
Comment 6 Roman Eisele 2012-06-02 02:58:08 UTC
Created attachment 62413 [details]
How the sample file looks in LibO 3.5.4.2

To document the current state of affairs, I attach a new screenshot of our "broken" file, made with LibreOffice 3.5.4 release (on MacOS X 10.6.8).

IMHO the screenshot shows that there is some progress: the lines are more like in LibO 3.4.x now; but they are still not completely correct.
Comment 7 Alex Thurgood 2012-08-31 12:12:34 UTC
*** Bug 54257 has been marked as a duplicate of this bug. ***
Comment 8 Roman Eisele 2012-08-31 14:35:58 UTC
Created attachment 66409 [details]
How the sample file looks in LibO 3.6.1.2


Good news: if you open the sample file with the current release (LibreOffice 3.6.1.2), you will see that it now looks very closely like in 3.4.x.

So, if we consider the behaviour of LibreOffice 3.4 as correct, the behaviour of LibreOffice 3.6.1.2 is correct again.


@ ladislav.bonita:

Could you please test this yourself with LibreOffice 3.6.1.2 (or better) -- can you confirm that the problem is (near to) fixed?

This would be very helpful! Thank you very much!
Comment 9 Timon 2012-09-01 11:52:39 UTC
(In reply to comment #8)
> Created attachment 66409 [details]
> How the sample file looks in LibO 3.6.1.2
> 
> 
> Good news: if you open the sample file with the current release (LibreOffice
> 3.6.1.2), you will see that it now looks very closely like in 3.4.x.
> 
> So, if we consider the behaviour of LibreOffice 3.4 as correct, the behaviour
> of LibreOffice 3.6.1.2 is correct again.
> 
> 
> @ ladislav.bonita:
> 
> Could you please test this yourself with LibreOffice 3.6.1.2 (or better) -- can
> you confirm that the problem is (near to) fixed?
> 
> This would be very helpful! Thank you very much!

Look for the duplicate bug 54257 https://bugs.freedesktop.org/show_bug.cgi?id=54257 in LobO 3.6.1.2 (Example 16 is more evident). Problems still present in Page Preview mode and while printing.
Comment 10 Roman Eisele 2012-09-01 12:19:02 UTC
(In reply to comment #9)
> Look for the duplicate bug 54257
> https://bugs.freedesktop.org/show_bug.cgi?id=54257 in LobO 3.6.1.2 (Example 16
> is more evident). Problems still present in Page Preview mode and while
> printing.

You are right -- the document attached to bug 54257 still looks unsatisfactorily. But I was talking just about the present bug report with the attached sample document, which IMHO looks quite good now in LibO 3.6.1.2.

Couldn't we
* make bug 54257 an independend (not duplicate) bug report again (Status REOPENED)
* close the present bug as RESOLVED/WORKSFORME?

This would allow our developers to concentrate on the remaining problems, which are IMHO well visible in bug 54257, but not in the present bug report ...

But all this is just a suggestion, if you still see severe problems with the sample document attached to *this* bug report I will keep quiet ;-)
Comment 11 Timon 2012-12-24 07:36:42 UTC
Created attachment 72056 [details]
rtf files, that were sucessfully opened in 3.6.X, but in 4.0.0.0 beta 2 could not be opened (crash)

REGRESSION: Test files from Bug 54257, that were sucessfully opened in 3.6.X, in 4.0.0.0 beta 2 could not be opened at all (crash) with "General Error. General input/output error."
Comment 12 Jean-Baptiste Faure 2012-12-31 14:55:48 UTC
(In reply to comment #11)
> Created attachment 72056 [details]
> rtf files, that were sucessfully opened in 3.6.X, but in 4.0.0.0 beta 2
> could not be opened (crash)
> 
> REGRESSION: Test files from Bug 54257, that were sucessfully opened in
> 3.6.X, in 4.0.0.0 beta 2 could not be opened at all (crash) with "General
> Error. General input/output error."

Hi Timon,

If your file could not be opened, then it is another problem than the one related in this bug report which is about a layout problem. So please, file a new bug report for this crash.

Best regards. JBF
Comment 13 Timon 2012-12-31 18:03:16 UTC
(In reply to comment #12)
> Hi Timon,
> 
> If your file could not be opened, then it is another problem than the one
> related in this bug report which is about a layout problem. So please, file
> a new bug report for this crash.
> 
> Best regards. JBF

Sorry, already reported Bug 58702 with crash problems in .RTF files
Comment 14 s-joyemusequna 2013-01-02 12:42:44 UTC
All three files (broken, Example 15, Example 16) work now fine with LOdev 4.0 Beta2+ (2013-01-01), tested under Windows XP and Vista 64.
Comment 15 Timon 2013-01-14 06:40:34 UTC
Fixed in LibO Version 4.0.0.1 (Build ID: 527dba6f6e0cfbbc71bd6e7b88a52699bb48799)
Comment 16 Robinson Tryon (qubit) 2015-12-17 12:06:23 UTC Comment hidden (obsolete)
Comment 17 vihsa 2017-06-03 06:59:12 UTC
the file is not displaying per attachment 60935 [details]

Version: 5.5.0.0.alpha0+
Build ID: 066665644b398a882e6cded98af5bb060af41d76
TinderBox: Android-ARM@24-Bytemark-Hosting, Branch: Master, Time: 2017-06-01 00:30:43
Comment 18 vihsa 2017-08-27 05:39:58 UTC
Frames around the parts of the document are missing on
5.4.0.0.alpha0+ [ build id: 3902bb7 ]

os: android 5.1
device: lyf flame 3 [ ls-4001 ]