Bug 58524 - FILESAVE: Files become huge
Summary: FILESAVE: Files become huge
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: Other Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-19 15:33 UTC by arviddivran
Modified: 2013-12-15 23:10 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Original small file (16.50 KB, application/vnd.ms-excel)
2012-12-20 14:58 UTC, arviddivran
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arviddivran 2012-12-19 15:33:41 UTC
Problem description:
MS Office Excel files become HUGE when saved with libreoffice.

Steps to reproduce:
1. Open an office excel file in Calc
2. Save it in office format
3. Watch the file size quadruple

Current behavior:
A 17 kb file turns into a 1300 kb file.

Expected behavior:
I expect A 17 kb file to stay at 17 kb when only 1 or 2 lines are edited. In fact, if I save the file in libreoffice form instead, it's only 16 kb!
              
Operating System: Windows 7
Version: 3.5.7.2 release
Comment 1 m_a_riosv 2012-12-20 01:09:57 UTC
Hi @arviddivran, thanks for report.

Can you attach a sample file?, so someone can verify the issue.

And what is the excel file format do you use to save?
Comment 2 arviddivran 2012-12-20 14:58:02 UTC
Created attachment 71857 [details]
Original small file

This is one of the small files I have. If you open this file in libre office, edit it, and then hit save, libre office will ask if you are sure you want to save it in office form. Hit yes, and it becomes 1300 kb.
Alternatively, use Save As and choose office form.
Comment 3 jw.hendy 2013-03-20 18:21:37 UTC
I recently experienced this and think I have an idea about what's going on. Information:

$ uname -a
Linux hostname 3.8.3-2-ARCH #1 SMP PREEMPT Sun Mar 17 13:04:22 CET 2013 x86_64 GNU/Linux

$ libreoffice --version
LibreOffice 4.0.1.2

I believe that for some reason, some cell in distant rows/columns gets registered as containing a value, despite being blank. When saving to xlsx, I think Libreoffice is storing some sort of value in all columns/rows up to that distant cell, or potentially storing some sort of data in all blank rows/columns instead of just leaving them absent.

I suspect this, as on a hunch I selected the first blank column of my data and did Ctrl + Shift + Right Arrow. This selects all columns up to AMJ. Then right click and choose "Delete columns."

Repeat for rows and do Ctrl + Shift + Down Arrow and delete all blank rows.

I then did "Save as..." from .ods -> .xlsx successfully. Before doing this a ~20kb .ods was creating a 3.4mb .xlsx. After deleting blank rows/columns as described above, I get a ~21kb .xlsx.
Comment 4 arviddivran 2013-03-20 19:20:40 UTC
I already solved this issue by saving it in libreoffice form (we didn't
need to use office format in this case), but thanks anyway. I'm sure other
people will find this useful.

On Wed, Mar 20, 2013 at 7:21 PM, <bugzilla-daemon@freedesktop.org> wrote:

>   *Comment # 3 <https://bugs.freedesktop.org/show_bug.cgi?id=58524#c3> on bug
> 58524 <https://bugs.freedesktop.org/show_bug.cgi?id=58524> from
> jw.hendy@gmail.com *
>
> I recently experienced this and think I have an idea about what's going on.
> Information:
>
> $ uname -a
> Linux hostname 3.8.3-2-ARCH #1 SMP PREEMPT Sun Mar 17 13:04:22 CET 2013 x86_64
> GNU/Linux
>
> $ libreoffice --version
> LibreOffice 4.0.1.2
>
> I believe that for some reason, some cell in distant rows/columns gets
> registered as containing a value, despite being blank. When saving to xlsx, I
> think Libreoffice is storing some sort of value in all columns/rows up to that
> distant cell, or potentially storing some sort of data in all blank
> rows/columns instead of just leaving them absent.
>
> I suspect this, as on a hunch I selected the first blank column of my data and
> did Ctrl + Shift + Right Arrow. This selects all columns up to AMJ. Then right
> click and choose "Delete columns."
>
> Repeat for rows and do Ctrl + Shift + Down Arrow and delete all blank rows.
>
> I then did "Save as..." from .ods -> .xlsx successfully. Before doing this a
> ~20kb .ods was creating a 3.4mb .xlsx. After deleting blank rows/columns as
> described above, I get a ~21kb .xlsx.
>
>  ------------------------------
> You are receiving this mail because:
>
>    - You reported the bug.
>
>
Comment 5 QA Administrators 2013-09-24 01:43:55 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 6 arviddivran 2013-09-24 11:58:53 UTC
Hello QA Admin. I could close this issue because we now have a workaround, thanks to user jw.hendy@gmail.com. However, this is a workaround, not a fix. This bug most likely still exists and should be fixed by the creators of libreoffice.

How should we proceed? Should we close this issue and let the bug stay in libreoffice until the heat death of the universe or should we somehow make them notice this bug report?

If you, QA Admin, think we should close this issue then you can go ahead and do so when you see this response.
Comment 7 arviddivran 2013-09-24 12:00:33 UTC
Oh derp me. I didn't notice you said to mark it as uncomfirmed. But is that really correct? Since other users have also noticed this bug, not just me. But okay I'll mark it as unconfirmed.
Comment 8 tommy27 2013-11-07 06:33:16 UTC
I confirm bug with LibO 3.5.7 under Win7 64bit
test .xls file changes size from 17K to 1.27 MB after saving it with minor edits.

Bug is not reproducibile in LibO 4.1.3
the file size stays almost the same after editing and saving.

It seems the bug has been fixed meanwhile.
marking this as RESOLVED WORKSFORME.

feel free to reopen if bug still persists.