Error in layout from MS DOCX file, especially after saving as ODT

Bug #1876292 reported by UlfZibis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LibreOffice
Invalid
Medium
libreoffice (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

For the details and example file please see:
https://bugs.documentfoundation.org/show_bug.cgi?id=132552
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
CurrentDesktop: Unity:Unity7:ubuntu
DistroRelease: Ubuntu 18.04
InstallationDate: Installed on 2018-07-02 (679 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
Package: libreoffice 1:6.4.3-0ubuntu0.18.04.1 [origin: LP-PPA-libreoffice]
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 4.15.0-99.100-generic 4.15.18
Tags: third-party-packages bionic
Uname: Linux 4.15.0-99-generic x86_64
UnreportableReason: Das ist kein offizielles Ubuntu-Paket. Bitte entfernen Sie alle Pakete von Drittanbietern und wiederholen Sie den Vorgang.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dialout dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Created attachment 160121
Original DOCX file

I received a DOCX file (7 pages) and saved it as ODT.

After editing the file (removing some content to shrink it to 4 pages) I could successfully print it.

After saving and again opening it, the layout was corrupted. It had 6 pages with much free space.

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Created attachment 160122
Saved as ODT before editing

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Created attachment 160123
Edited, printed and then saved again

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Comment on attachment 160123
Edited, printed and then saved again

After reopening again, the document had again 6 pages with muchspace.

Revision history for this message
In , Bart-dn (bart-dn) wrote :

Hi Ulf,

I'd like to reproduce the result that you had and that works best if I use the LibreOffice version that you also have, or if I use a version close to yours.

If you start LibreOffice and click
   Help -> About LibreOffice
then what version do you get?

It's best if you can copy the text there and paste it here.

Also, if you let me know which parts you removed in document "LE 5_0 Arbeitsauftrage.odt", then I can better recreate the steps that you took and try to get to the same result.

PS:
- I'm not a developer. I submitted a few bugs/reports myself and I'm trying to confirm the bugs that other people reported here.
- Filename "LE 5_0 Arbeitsauftrage.odt" probably had a few characters more when you saved it. Because I work with Windows and Linux on one system, and because they have different rules for the characters allowed in filenames, I often remove special characters and characters with accents in filenames just before saving a file. ;-)

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Created attachment 160146
screen shot of edit

(In reply to Bart from comment #4)
Hi Bart,

> then what version do you get?
> It's best if you can copy the text there and paste it here.
Version: 6.0.7.3
Build-ID: 1:6.0.7-0ubuntu0.18.04.10
CPU-Threads: 2; BS: Linux 4.15; UI-Render: Standard; VCL: gtk3;
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group

> Also, if you let me know which parts you removed in document "LE 5_0 Arbeitsauftrage.odt",
> then I can better recreate the steps that you took and try to get to the same result.
- Open the attached DOCX file. It has 7 pages (paper size DIN A4).
- Delete the content of the 1st page (except page header) as shown in attached screen shot. Now 6 pages should remain, and feel free to print it, but not necessary.
- Save the document as ODT.
- Open the ODT again ... it now has 8 instead 6 pages. On the 1st page you see the first error ... the first 5 lines are outside of the frame, where they should be.

> - I'm not a developer. I submitted a few bugs/reports myself and I'm trying to confirm the bugs that other people reported here.
Much thanks for your effort!

> - Filename "LE 5_0 Arbeitsauftrage.odt" probably had a few characters more when you saved it.
No, but instead 'a' it was 'ä'. I guess, there is a bug in bugzilla, which corrupted it.

Revision history for this message
In , Bart-dn (bart-dn) wrote :

Well, I may have good news and bad news. Which one did you like to hear first? :-D

(They're actually the same. ;-) )

I already had LibreOffice 6.1 installed on my machine. I took the steps that you described, saved the document under another name, and reopened it. I had six pages and the document looked as expected. I added it as an attachment to allow you to check it. It's:
   "LE 5_0 ArbeitsauftrageII.odt"

The "bad" part is that I can't recreate your problem. The good part however, is that your problem may be corrected in version 6.1.

I saw you're running Ubuntu. If you would want to try version 6.1, you have two choices. I don't know where you're standing regarding Ubuntu and LibreOffice expertise and maybe I'm giving you now too many details, or maybe not enough:

- I'm not familiar with Linux/Ubuntu, and I guess you can install LibreOffice from the Ubuntu software catalog. I don't know which version you'll get, but in the Linux/Debian software catalog I get 6.1. That's why I think you'll get 6.1 too. This probably overrides your 6.0 version. You may need to remove your old version before you can install a new version, that I don't know.

- You can also download version 6.1 from:
  https://downloadarchive.documentfoundation.org/libreoffice/old/6.1.5.2/
In this case you probably get version 6.1 next to 6.0. For Ubuntu you probably need the "deb" package. After you choose either x86 (32 bit) or x86_64 (64 bit) you download the file that you see on top (the one that's 218 MB).

Please let me know if this works for you. Your feedback may be useful for me to help others with future bug reports. If you need more information, just let me know as well.

    ~~~

   Here's the version that I tried:

Version: 6.1.5.2
Build ID: 1:6.1.5-3+deb10u5
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk2;
Locale: en-US (en_US.UTF-8); Calc: group threaded

Revision history for this message
In , Bart-dn (bart-dn) wrote :

Created attachment 160150
LE 5_0 ArbeitsauftrageII.odt

I removed most of the text on page one, and then saved the document as "LE 5_0 ArbeitsauftrageII.odt"

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Created attachment 160161
Edited ODT after reopen

Hi Bart,
your LE 5_0 ArbeitsauftrageII.odt still appears corrupted with 6.0.7.3.

Revision history for this message
In , Bart-dn (bart-dn) wrote :

The problem could be the document itself, or, the document could be correct but the LibreOffice version that you use doesn't show it correctly.

This works correctly with version 6.1.5.2 on my computer. I added
   "LE 5_0 ArbeitsauftrageII.png"
for you to see what I have on my screen. That's why I think that the document is okay, but that LibreOffice 6.0.7.3 doesn't show it correctly. Because it works fine here, I think that this problem has been corrected in newer versions.

Can you give it a try to install a newer version of LibreOffice? It works well with a newer version here, and it might work well with a newer version on your computer also. A newer version might solve your problem. ;-)

Revision history for this message
In , Bart-dn (bart-dn) wrote :

Created attachment 160162
LE 5_0 ArbeitsauftrageII.png

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

(In reply to Bart from comment #6)
> - I'm not familiar with Linux/Ubuntu, and I guess you can install
> LibreOffice from the Ubuntu software catalog. I don't know which version
> you'll get, but in the Linux/Debian software catalog I get 6.1.
I don't see 6.1 in Ubuntu's catalog:
https://packages.ubuntu.com/search?keywords=libreoffice&searchon=names&suite=all&section=all
Anyway, Ubuntu Bionic 18.04 is a LTS version with 5 years support. It is fixed to 6.0.x.y version of LO. There will never be 6.1.x.y in this Ubuntu release.
So I think, it's a valid bug in LO 6.0 branch.

Thanks for your effort.

Ubuntu 20.04 is out. In some weeks I will upgrade. Then I can tell you, if the bug still exists in LO 6.4.x.y.

Another problem is, that my 12 years old daughter has an old hardware with only running 32 bit Ubuntu. There is no upgrade for Ubuntu 32 Bit to 20.04.

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Created attachment 160163
screen shot marked

(In reply to Bart from comment #10)
> Created attachment 160162 [details]
> LE 5_0 ArbeitsauftrageII.png

Even in your screen shot from 6.1 there is still a bug.
The marked text (see my attachment) should be in the same frame box.

Revision history for this message
In , Bart-dn (bart-dn) wrote :

I wondered if you faced an obstacle when trying to install a newer version.

If you like you can try a third option. If you start LibreOffice and click Help, then do you have the option "check for updates"?
  Please check image "Libreoffice63-CheckForUpdates.png"

I suspect that you don't have that option, because in versions 6.3 and 7.0 it's there, but in version 6.1 it's not. However, it doesn't hurt to try.

Did you try to go to:
  https://downloadarchive.documentfoundation.org/libreoffice/old/6.1.5.2/
and download and install a newer version from there?

With some luck you get version 6.1 next to 6.0. That's pretty much what I get if I go there and install a newer version. Please check image
   "LXDEandLibreOfficeVersions.png"

For Ubuntu you probably need the "deb" package. After you choose either x86 (32 bit) or x86_64 (64 bit) you download the file that you see on top (the one that's respectively 198 MB or 218 MB) and install it.

Maybe this is also a solution for your 12 years old daughter with a 32 bit Ubuntu?

(In reply to Ulf Zibis from comment #12)
> Even in your screen shot from 6.1 there is still a bug.
> The marked text (see my attachment) should be in the same frame box.

I saw that image, but I'm sorry. I don't know what your document should look like, and it may be possible to correct that issue also with LibreOffice 6.1. I'm only a volunteer here, spending a lot of time, trying to help you as best as I can, but I don't have a magic wand.

Best of luck with it!

PS: There are many other bug reports. I'm going to focus on the other ones now.

Revision history for this message
In , Bart-dn (bart-dn) wrote :

Created attachment 160165
Libreoffice63-CheckForUpdates.png

Revision history for this message
In , Bart-dn (bart-dn) wrote :

Created attachment 160166
LXDEandLibreOfficeVersions.png

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

(In reply to Bart from comment #13)
> > Even in your screen shot from 6.1 there is still a bug.
> > The marked text (see my attachment) should be in the same frame box.
>
> I saw that image, but I'm sorry. I don't know what your document should look
> like, and it may be possible to correct that issue also with LibreOffice
> 6.1. I'm only a volunteer here, spending a lot of time, trying to help you
> as best as I can, but I don't have a magic wand.
Hi again.
You said, you have MS Windows on your system. Do you also have MS Office?
Then please check for me, how the original DOCX document is displayed there. So we can know, which layout is correct.

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
In , timur (ba.timur) wrote :

I reproduced in Windows with 6.0 so I change to All.
But no repro with new LO, so I'll close as WFM.
It's pointless and incorrect to report bug with such an old LO version.

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

Created attachment 160237
Reopend ODT with 6.4 after editing

Now I have installed LO 6.4 via PPA:
https://launchpad.net/~libreoffice/+archive/ubuntu/ppa

I now still see a difference before saving and after reopening the doc again.
The frame around the 5 lines now is completely removed.

Revision history for this message
In , timur (ba.timur) wrote :

Do not hijack this with other issue now. Report is too long and not readable.
And do not change Status if you don't know what it means, Reopen is wrong in any case. Use some time to read bugzilla rules on Wiki.
I set back WFM.

Revision history for this message
In , timur (ba.timur) wrote :

Created attachment 160274
DOCX compared

If you have another issue, you should *always* first search closed and open bugs and if not found, report separately.
Note: I don't reproduce frame issue in reopened docx, test with master 7.0+. And discussion should not be continued.

Changed in df-libreoffice:
status: New → Invalid
Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

(In reply to Timur from comment #20)
> Created attachment 160274 [details]
> DOCX compared
>
> Note: I don't reproduce frame issue in reopened docx, test with master 7.0+.
> And discussion should not be continued.

The document should be saved as ODT (see comment 1) to see the error (the frame around the text is lost).

Revision history for this message
UlfZibis (ulf-zibis) wrote :

The upstream bug was marked as invalid, because LibreOffice 6.0 (default in Ubuntu 18.04) seems out of support.
A similar bug appears in LibreOffice 6.4: https://bugs.documentfoundation.org/show_bug.cgi?id=132653

Revision history for this message
In , timur (ba.timur) wrote :

Created attachment 160349
DOC compared MSO LO

Right, there's fileopen issue, LO opens it wrong (and saves as a consequence).

Revision history for this message
In , timur (ba.timur) wrote :

I reported in bug 132687.

Revision history for this message
In , UlfZibis (ulf-zibis) wrote :

(In reply to Timur from comment #23)
> I reported in bug 132687.

So I think, this bug should be stated as a "duplicate" of bug 132687 instead "worksforme".

Revision history for this message
In , timur (ba.timur) wrote :

No, because you reported pages issue first and that's WFM.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:

  apport-collect 1876292

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
UlfZibis (ulf-zibis) wrote :

I get an error with:

$ apport-collect 1876292
The authorization page:
 (https://launchpad.net/+authorize-token?oauth_token=H0bZnbhmgWSGsdlRpbJD&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Waiting to hear from Launchpad about your decision...
ERROR: connecting to Launchpad failed: [Errno 13] Keine Berechtigung: '/home/ich/.cache/apport/launchpad.credentials'
You can reset the credentials by removing the file "/home/ich/.cache/apport/launchpad.credentials"

Can't do this, as this file doesn't exist.

Revision history for this message
Sebastien Bacher (seb128) wrote :

what's the output of
* ls -ld /home/ich/.cache/apport/

Revision history for this message
UlfZibis (ulf-zibis) wrote :

$ ls -ld /home/ich/.cache/apport/
drwxr-xr-x 2 root root 4096 Jul 10 2018 /home/ich/.cache/apport/

It is empty!

Revision history for this message
Sebastien Bacher (seb128) wrote :

the directory is owned by root which means your user can't write to it, can you sudo rm /home/ich/.cache/apport/' and try again?

Revision history for this message
UlfZibis (ulf-zibis) wrote : Dependencies.txt

apport information

tags: added: apport-collected bionic third-party-packages
description: updated
Revision history for this message
UlfZibis (ulf-zibis) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
UlfZibis (ulf-zibis) wrote : ProcEnviron.txt

apport information

Revision history for this message
UlfZibis (ulf-zibis) wrote :

Hi Sebastien,

your command didn't work, I had to use rmdir instead.
Thanks for your help!
Please additionally add upstream bug https://bugs.documentfoundation.org/show_bug.cgi?id=132687

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.