[precise] Saving xls files originally created in Excel 2003 causes considerable increase of file size

Bug #1194740 reported by Nobuto Murata
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Medium
libreoffice (Ubuntu)
Fix Released
Medium
Unassigned
Precise
Fix Released
Medium
Björn Michaelsen

Bug Description

WORKAROUND: -> https://launchpad.net/~libreoffice/+archive/ppa

This is a regression in upstream between 3.5.4 and 3.5.5.

[Impact]
 when opening a received xls created by Microsoft Excel 2003, then saving as xls again by LibreOffice,
 file size becomes considerably larger.
 i.e. 32KB -> 1.4MB (40x larger)

[Test Case]

A. to confirm the regression is fixed
 1. open the xls file(32KB) attached in upstream bug
    https://bugs.freedesktop.org/attachment.cgi?id=64725
 2. save it as xls in LibreOffice Calc
 3. confirm that the file size becomes almost 1.4MB
 4. update to -proposed
 5. open the file in the upstream bug again and save it as xls
 6. confirm that the file size is almost the same as the original(32KB)

B. to confirm not happening another regression
 1. create a new document in LibreOffice Calc
 2. make the height of A5 cell 50mm
 3. focus to A5 cell
 4. save as xls and close the document
 5. open the xls file again
 6. confirm that the height of A5 cell is 50mm, the height of other rows stay default height.

 above steps of B1.-6. should be tested with both current and -proposed version

 Note: with 3.5.4 or lower version, when opening the xls file again in step 5, the height of all cells becomes 50mm.

[Regression Potential]
 the patch causing this regression was intended to fix fdo#50304.
   https://bugs.freedesktop.org/show_bug.cgi?id=50304
 to prevent fdo#50304 from happening again by this SRU, additional test case is described above.

ProblemType: BugDistroRelease: Ubuntu 12.04
Package: libreoffice-calc 1:3.5.7-0ubuntu4
ProcVersionSignature: Ubuntu 3.5.0-23.35~precise1-generic 3.5.7.2
Uname: Linux 3.5.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: amd64
CasperVersion: 1.315.1
Date: Wed Jun 26 06:35:48 2013
LiveMediaBuild: Ubuntu 12.04.2 LTS "Precise Pangolin" - Release amd64 (20130213)
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=ja_JP.UTF-8
 SHELL=/bin/bashSourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
In , Andis (andis-lazdins) wrote :

Created attachment 63167
compressed large .xls file saved initially by Libreoffice 3.5.5.1

I found this problem trying to work with time sheets originally created and edited with Excel 2003. The file originally having size of about 100 KB after saving in LibreOffice as .xls increases in size to 7.6 MB. After saving the same file as .xls with OpenOffice.org 3.4 file size goes down to some 80 KB. The same happens if previously created large .xls file is saved as .ods with Libreoffice 3.5.5.1.

If I reopen .xls file saved in Openoffice.org with Libreoffice 3.5.5.1 and save it again as .xls, file size is not increasing, however saving is very slow.

Sample files follows in attachment:
Large xls file size.xls.zip - compressed large .xls file saved initially by Libreoffice 3.5.5.1
Large xls file size.ods - the same file saved by by Libreoffice 3.5.5.1 as .ods
Large xls file size ooo.xls - large xls file saved as xls by Openoffice.org 3.4
Large xls file size ooo + lo.xls - the same file saved by Libreoffice 3.5.5.1 after saving in Openoffice.org

Revision history for this message
In , Andis (andis-lazdins) wrote :

Created attachment 63168
The same file saved by Openoffice.org 3.4 after Libreoffice 3.5.5.1

Revision history for this message
In , Andis (andis-lazdins) wrote :

Created attachment 63169
The same file saved by Libreoffice 3.5.5.1 after saving with Openoffice.org 3.4

Revision history for this message
In , Andis (andis-lazdins) wrote :

Created attachment 63170
Initial large .xls file saved by Libreoffice 3.5.5.1 as ods

Revision history for this message
In , Markus Mohrhard (moggi) wrote :

Should be fixed in 3.5.5.2 and 3.6.0.1

Revision history for this message
In , Andis (andis-lazdins) wrote :

The bug is fixed now in 3.5.5.2.

Revision history for this message
In , Frob-c (frob-c) wrote :

Created attachment 63989
File to reproduce the problem

Resave attached file (~13Kb) as XLS from LO Calc 3.5.5 or newer (including 3.6beta2). Result would be ~1.3Mb.

Original file has reduced heights for all rows after row 42.
In original XLS it's stored as 'DefaultRowHeight' record and a few 'row' records for non-empty rows (some of the first 42).

LO Calc saves it with different value for 'DefaultRowHeight' and million of 'row' records.

LO Calc 3.5.3 saves it without this problem.

Workaround: change height of all non-used rows to default one.

"<moggi> http://cgit.freedesktop.org/libreoffice/core/commit/sc?h=libreoffice-3-5-5&id=c9749c917e67a70a0cb283e180fd1c05f0cf3c2a"

Revision history for this message
In , Frob-c (frob-c) wrote :

52029 could be related to this one.

Revision history for this message
In , Zenonbybloch (zenonbybloch) wrote :

Problem still exist in version 3.5.5.3, xls files with a size of 40KB stores increased to 1.3MB.

Revision history for this message
In , Andis (andis-lazdins) wrote :

Yes, I found the same that some xls files considerably increase in size after saving with 3.5.5.3, however, not the same published here before, but also some kind of EC time sheets and relevant documents

Revision history for this message
In , Libreoffice-z (libreoffice-z) wrote :

I think new Version is wrong
<http://wiki.documentfoundation.org/BugReport_Details#Version>

@Markus:
I am pretty sure that Bug 52141 is a DUP what confirms that the problem still exists in 3.5.5.3

Revision history for this message
In , Markus Mohrhard (moggi) wrote :

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

Revision history for this message
In , Markus Mohrhard (moggi) wrote :

*** Bug 51200 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Markus Mohrhard (moggi) wrote :

So no this was not a duplicate but another problem with our xls export filter. This time not introduced by me!

Same problem exists for xlsx export and is already tracked by another bug report.

Revision history for this message
In , Markus Mohrhard (moggi) wrote :

*** Bug 52141 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Markus Mohrhard (moggi) wrote :

Should be fixed for 3.6.0 RC2 by reverting the problematic commit.

@Noel Could you please have a look at this problem? We did not yet revert it for 3-5

Revision history for this message
In , Vitriol-vitriol (vitriol-vitriol) wrote :

*** Bug 52211 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Wugs (wugs) wrote :

NEW due to all the duplicates and Markus Mohrhard's comments.

Revision history for this message
In , Zenonbybloch (zenonbybloch) wrote :
Revision history for this message
In , Zenonbybloch (zenonbybloch) wrote :
Revision history for this message
In , Bg-g (bg-g) wrote :

I am getting huge XLS files when saving spreadsheets as XLS with spreadsheets
that previously were similar size or slightly smaller in XLS form than in ODS
form.
Now the XLS file is well over 50 times bigger than the ODS file!!!
This is with V 3.5.5.3 on WINDOWS.

Revision history for this message
In , Bg-g (bg-g) wrote :

I am getting huge XLS files when saving spreadsheets as XLS with spreadsheets
that previously were similar size or slightly smaller in XLS form than in ODS
form.
Now the XLS file is well over 50 times bigger than the ODS file!!!
This is with V 3.5.5.3 on WINDOWS.

Revision history for this message
In , Nopower (nopower) wrote :

(In reply to comment #4)
> Should be fixed for 3.6.0 RC2 by reverting the problematic commit.
>
> @Noel Could you please have a look at this problem? We did not yet revert it
> for 3-5

bah, just back from vacation will start looking :-/

Revision history for this message
In , Frob-c (frob-c) wrote :

Created attachment 64725
one more test file

Revision history for this message
In , Nopower (nopower) wrote :

fixed as a result of new patches for bug #50304

Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Nobuto Murata (nobuto) wrote :
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Invalid
Nobuto Murata (nobuto)
Changed in df-libreoffice:
importance: Medium → Unknown
status: Invalid → Unknown
Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Fix Released
Nobuto Murata (nobuto)
description: updated
Revision history for this message
In , Björn Michaelsen (bjoern-michaelsen) wrote :

Adding downstream bug, also setting version to 3.5.5.2 as per downstream bug description as a regression between 3.5.4 and 3.5.5.

Changed in libreoffice (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Nobuto Murata (nobuto) wrote :

Björn Michaelsen,

Could you include the attached debdiff into the next SRU for precise? Thanks.
http://anonscm.debian.org/gitweb/?p=pkg-openoffice/libreoffice.git;a=shortlog;h=refs/heads/ubuntu-precise-3.5

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "sru-debdiff-for-precise-3.5.7-0ubuntu4.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Changed in libreoffice (Ubuntu Precise):
assignee: nobody → Björn Michaelsen (bjoern-michaelsen)
importance: Undecided → Medium
Changed in libreoffice (Ubuntu):
status: New → Fix Released
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Already fixed in later releases, requested nomination for precise. Doing a ppa build first, maybe considering an SRU later for this.

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in libreoffice (Ubuntu Precise):
status: New → In Progress
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in libreoffice (Ubuntu Precise):
status: In Progress → Fix Committed
Revision history for this message
penalvch (penalvch) wrote :

Upstream attachment noted in Bug Description to demonstrate the problem https://bugs.freedesktop.org/show_bug.cgi?id=50304 .

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

For series tasks, ubuntu-sru team is using status to specifically track packages that have been published in -proposed and waiting validation. This bug has not yet bee uploaded into precise-proposed, as far as I can tell. Thus resetting back to "In Progress".

How did the PPA testing go? Is this ready for upload into precise-proposed?

Changed in libreoffice (Ubuntu Precise):
status: Fix Committed → In Progress
Revision history for this message
Nobuto Murata (nobuto) wrote :

Sorry for late reply.

The package in PPA looks good and works fine.

Now I'm looking at another bugs fixed in later versions to see if backportable in this time SRU.
https://bugs.freedesktop.org/show_bug.cgi?id=42899
https://bugs.freedesktop.org/show_bug.cgi?id=62977
# Those affect users in the company I'm working for.

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Unsubscribing sponsors. Bjoern is handling this already, and nobody else ought to upload just this patch without coordinating with Bjoern anyway. Thanks!

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

What is the current situation of this bug? I'm still having this issue when saving xlsx files in LibreOffice Calc 3.5.7.2.

Is this bug for xls files only? Do I have to file another bug for xlsx files originally created with Excel 2010?

penalvch (penalvch)
description: updated
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

This patch was not included in the ubuntu5 update for precise as per:

 http://anonscm.debian.org/gitweb/?p=pkg-openoffice/libreoffice.git;a=commit;h=95c677321ac0a7b895bb5d6d3d109d2a561f7dd1

should there be another serious issue causing us to prepare another update, I will consider reinvestigating if this issue will be fixed along.

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

The fix was in 3.5.7 upstream already -- so closing.

Changed in libreoffice (Ubuntu Precise):
status: In Progress → Fix Released
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.