Bug 164873 - export from .ODS to .XLS bb3cfa1
Summary: export from .ODS to .XLS bb3cfa1
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.8.4.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: MSO-XML2003
  Show dependency treegraph
 
Reported: 2025-01-27 15:30 UTC by xavdeq
Modified: 2025-12-27 15:14 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
the spreadsheet creating the problem (53.53 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-01-27 15:30 UTC, xavdeq
Details
Error at save while exporting ODS to {XLS, XML} (5.18 KB, image/png)
2025-01-27 16:10 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xavdeq 2025-01-27 15:30:11 UTC
Created attachment 198786 [details]
the spreadsheet creating the problem

Office crashes at each attempt of

export from .ODS to .XLS

tried with whole file and selection (selection cannot be opt out)

this happens with a specific document (reduced to one sheet), attached.


Intention is to export one sheet (Selection instead of doing a whole document save and then removing sheets manually
Comment 1 m_a_riosv 2025-01-27 15:53:11 UTC
Doesn't crash with
Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: bb3cfa12c7b1bf994ecc5649a80400d06cd71002
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

Please test in safe mode, Menu/Help/Restart in Safe Mode
Please paste here the information on Menu/Help/About LibreOffice (There is an icon to copy)
Comment 2 Piotr Osada 2025-01-27 16:10:14 UTC
Created attachment 198787 [details]
Error at save while exporting ODS to {XLS, XML}

Error occurs with:

Version: 25.2.0.2 (X86_64) / LibreOffice Community
Build ID: 62af784cc06624122f17ee71c7cf13d906cbaed0
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 3 QA Administrators 2025-11-25 15:23:31 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2025-12-26 03:20:25 UTC Comment hidden (obsolete)
Comment 5 xavdeq 2025-12-26 17:11:37 UTC
Hi, I tested again today with
Libreoffice v. 25.8.4.2 on 
MacbookPro Intel 16" 2019. 
OSX 15.6.1 (24G90)

Libreoffice does not crash any more on export, but I get the following error message:

Error saving the document TEST-liste:
General Error.
General input/output error.

This happens with the spreadsheet provided with the bug report, also with several older spreadsheet files i have tested.
Some simple files do export ok.

There is no error with save as  .XLS
Comment 6 raal 2025-12-27 12:03:26 UTC
error in command line
runtime error: file file:///home/zdenek/Plocha/bibisect/linux-64-26.8/instdir/share/xslt/export/spreadsheetml/table.xsl line 230 element choose
xsltApplySequenceConstructor: A potential infinite template recursion was detected.
You can adjust xsltMaxDepth (--maxdepth) in order to raise the maximum number of nested template calls and variables/params (currently set to 3000).
Templates:
#0 name repeat-adding-table-column 
#1 name repeat-adding-table-column 
#2 name repeat-adding-table-column 
#3 name repeat-adding-table-column 
#4 name repeat-adding-table-column 
#5 name repeat-adding-table-column 
#6 name repeat-adding-table-column 
#7 name repeat-adding-table-column 
#8 name repeat-adding-table-column 
#9 name repeat-adding-table-column 
#10 name repeat-adding-table-column 
#11 name repeat-adding-table-column 
#12 name repeat-adding-table-column 
#13 name repeat-adding-table-column 
#14 name repeat-adding-table-column 
Variables:
#0
numberColumnsRepeated 
#1
param table-column 
#2
numberColumnsRepeated 
#3
param table-column 
#4
numberColumnsRepeated 
#5
param table-column 
#6
numberColumnsRepeated 
#7
param table-column 
#8
numberColumnsRepeated 
#9
param table-column 
#10
numberColumnsRepeated 
#11
param table-column 
#12
numberColumnsRepeated 
#13
param table-column 
#14
numberColumnsRepeated 

I can export with 7.3.7, regression
Comment 7 raal 2025-12-27 15:14:17 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-7.4.

After this commit export freeze (no error message, but LO doesn't respond) a1e78d6f7c6eb21da1f16573c5c5aa4f07d70ea2 is the first bad commit
commit a1e78d6f7c6eb21da1f16573c5c5aa4f07d70ea2
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Jan 14 21:20:28 2022 +0100

    source a2eaf99e46f370ffb3b73828c2bdc53dc193b9a4
    
128415: make comphelper::OInterfaceContainerHelper4 more threadsafe | https://gerrit.libreoffice.org/c/core/+/128415

The error message appears after the commit 0d1f261ba281f798a0e7bed17addd0232bbb9fcc is the first bad commit
commit 0d1f261ba281f798a0e7bed17addd0232bbb9fcc
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Thu Feb 10 22:09:43 2022 +0100

    source 5e402bac39dc4245844efbde442bdb3bd993a157

129780: remove most hardcoded MAXCOL/MAXROW from Calc filters | https://gerrit.libreoffice.org/c/core/+/129780