Issue 111666 - calc open excel 2003 xls save as 2003 xml fails
Summary: calc open excel 2003 xls save as 2003 xml fails
Status: CLOSED DUPLICATE of issue 96852
Alias: None
Product: Calc
Classification: Application
Component: save-export (show other issues)
Version: OOo 3.2
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 00:40 UTC by jmichae3
Modified: 2021-03-02 09:09 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
budet.xls, the offending excel 2003 file (76.00 KB, application/vnd.ms-excel)
2010-05-18 00:42 UTC, jmichae3
no flags Details
1-sheet excel 2003 file with ifs and sums fails to export as excel 2003 xml. 2GB size problem? (320.50 KB, application/vnd.ms-excel)
2010-05-18 08:14 UTC, jmichae3
no flags Details
sparse simple OOo excel 2003 xml output file untitled 6.xml (4.12 KB, text/plain)
2010-05-18 08:23 UTC, jmichae3
no flags Details
sparse simple OOo excel 2003 xml output file untitled 6.xml (4.12 KB, text/xml)
2010-05-18 08:24 UTC, jmichae3
no flags Details
untitled 6.ods, in case you wanted it VERY sparse simple spreadsheet (8.43 KB, application/vnd.oasis.opendocument.spreadsheet)
2010-05-18 08:25 UTC, jmichae3
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description jmichae3 2010-05-18 00:40:09 UTC
start calc
open budget.xls
optionally save as budget.ods
save as Excel 2003 XML budget2.xml

program waits for 2-3 minutes messing with disk, then error dialog:
"Error saving the document budget2. Write error. The file could not be written."

balderdash! 300GB of space left no no file permissions problems.  it took 2-3
minutes to do the save, so my only guess is it got stuck in a forever loop
writing something and hit a 32-bit 2GB limit.  that's about how long it takes to
write 2GB.

please make available a usable office 2007 format file export.  the files are in
a different format than  the old .doc/ppt/xls
Comment 1 jmichae3 2010-05-18 00:42:43 UTC
Created attachment 69489 [details]
budet.xls, the offending excel 2003 file
Comment 2 jmichae3 2010-05-18 00:43:56 UTC
removed URL so I don't have to use my web site
Comment 3 raal 2010-05-18 07:55:59 UTC
Reproducible with DEV300m77, ubuntu 9.10.
Duplicate of issue 71689 ?
Comment 4 jmichae3 2010-05-18 08:14:13 UTC
Created attachment 69497 [details]
1-sheet excel 2003 file with ifs and sums fails to export as excel 2003 xml. 2GB size problem?
Comment 5 jmichae3 2010-05-18 08:23:36 UTC
Created attachment 69501 [details]
sparse simple OOo excel 2003 xml output file untitled 6.xml
Comment 6 jmichae3 2010-05-18 08:24:00 UTC
Created attachment 69502 [details]
sparse simple OOo excel 2003 xml output file untitled 6.xml
Comment 7 jmichae3 2010-05-18 08:25:26 UTC
Created attachment 69503 [details]
untitled 6.ods, in case you wanted it  VERY sparse simple spreadsheet
Comment 8 jmichae3 2010-05-18 12:18:04 UTC
yes, same error as with the bug you found the duplicate of.  but you will find
more information and test cases/useful files  in this bug report than there.

I learned that smaller, simpler 4-entry spreadsheets do not have the problems
that my 50-and 200-row spreadsheets did.

so the problem has really big output for really small files.

as I stated in the other bug report, it takes me 0 days, 00:01:25.593 to write a
2000000000 byte file. so multiply that by at least 2 minutes and you get a 4GB
file minimum.  that's about the size of a 32-bit unsigned int's maximum range. 
the actual elapsed time it takes to process my busget.xls file is 0 days
00:04:35.297  minus a few seconds.


C:\t>prtime -exec createfile -s 2000000000 -f zapp
filename=zapp
filepath=zapp
fillbyte=0x0.
size=2000000000.
Time estimate: 0 days, 0 hours, 1 minutes. double on a busy computer.
Creating file, please wait...
elapsed time: 0 days, 00:01:51.437
which is 2e9/(1*60+51.437)=17,947,360.392 bytes/second.
at 4:35.297 minus about 5 seconds=4:30

here's the kicker:
total file size is around 2e9/(1*60+51.437)*(4*60+30)=4,845,787,305.84 bytes
which is close enough to the unsigned 32-bit limit 2^32=4,294,967,296 which is
enough to make me suspect that OOo has tripped over an unsigned integer (int).

If it were actually that limit, it would have taken 3:59.185 which is only 31
seconds off.  this can be caused by the fact that I was running a very busy
mcafee scan at the time and it was continually accessing the hard disk, so both
programs were competing for disk writes.  don't know which won the most time.

so check your code base.
Comment 9 jmichae3 2010-05-23 06:36:24 UTC
see 111780 for what I think is the cause of this problem.
Comment 10 Edwin Sharp 2013-08-30 11:53:24 UTC
Calc Rev. 1518439 not responding when save attachment 69489 [details] as xml.
Win 7
Comment 11 oooforum (fr) 2018-11-18 12:21:08 UTC
Already reported

*** This issue has been marked as a duplicate of issue 96852 ***