Bug 168538 - LibreOffice cannot open ODT files created by our system
Summary: LibreOffice cannot open ODT files created by our system
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.1.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:26.2.0
Keywords: bibisected, bisected, regression
Depends on:
Blocks: File-Opening
  Show dependency treegraph
 
Reported: 2025-09-24 14:24 UTC by Roman
Modified: 2025-10-01 14:48 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
sample of our ODT files (455.49 KB, application/vnd.oasis.opendocument.text)
2025-09-24 14:24 UTC, Roman
Details
other sample (457.59 KB, application/vnd.oasis.opendocument.text)
2025-09-24 14:26 UTC, Roman
Details
sample 3 (49.86 KB, application/vnd.oasis.opendocument.text)
2025-09-24 14:26 UTC, Roman
Details
sample 4 (19.20 KB, application/vnd.oasis.opendocument.text)
2025-09-24 14:26 UTC, Roman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman 2025-09-24 14:24:56 UTC
Created attachment 202950 [details]
sample of our ODT files

Hello,

LibreOffice 25.8.1.1 displays the following message when we try to open our ODT files - 
***
The file ... is corrupt and therefore cannot be opened. LibreOffice can try to repair the file.
....
....
Should LibreOffice repair the file? 
***

Same files are opened correctly without any messages in LibreOffice version 7.x.

Could you please investigate attached files and let us know what is wrong with them?

Please let us know is it LibreOffice 25 issue or our ODT files are really corrupted.

Thank you,
Roman
Comment 1 Roman 2025-09-24 14:26:00 UTC
Created attachment 202951 [details]
other sample
Comment 2 Roman 2025-09-24 14:26:21 UTC
Created attachment 202952 [details]
sample 3
Comment 3 Roman 2025-09-24 14:26:39 UTC
Created attachment 202953 [details]
sample 4
Comment 4 BogdanB 2025-09-24 14:37:15 UTC
IN debug version I get this:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
warn:vcl.app:304649:304649:vcl/source/app/UserResourceScanner.cxx:51: Could not determine status for file 'file:///home/bogdan/.config/libreofficedev/4/user/themes'.
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1333: Collection missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/uibase/app/docstyle.cxx:1327: SwCharFormat missing!
warn:legacy.osl:304649:304649:sw/source/core/unocore/unobkm.cxx:157: CreateXBookmark: no MarkBase?
warn:sal.osl:304649:304649:sal/osl/unx/module.cxx:100: dlopen(/home/bogdan/debug/LibreOfficeDev_25.8.0.0.alpha0_Linux_x86-64_archive/program/libjava_gcc3.so, 257): /home/bogdan/debug/LibreOfficeDev_25.8.0.0.alpha0_Linux_x86-64_archive/program/libjava_gcc3.so: cannot open shared object file: No such file or directory
warn:sal.osl:304649:304649:sal/osl/unx/module.cxx:100: dlopen(/home/bogdan/debug/LibreOfficeDev_25.8.0.0.alpha0_Linux_x86-64_archive/program/libgcc3_java.so, 257): /home/bogdan/debug/LibreOfficeDev_25.8.0.0.alpha0_Linux_x86-64_archive/program/libgcc3_java.so: cannot open shared object file: No such file or directory
warn:legacy.tools:304649:304649:sfx2/source/control/bindings.cxx:1761: No cache for OfficeDispatch!
warn:sfx.sidebar:304649:304649:sfx2/source/sidebar/ResourceManager.cxx:623: context name ChartTitle not recognized
warn:sfx.sidebar:304649:304649:sfx2/source/sidebar/ResourceManager.cxx:623: context name ChartLegend not recognized
warn:sfx.sidebar:304649:304649:sfx2/source/sidebar/ResourceManager.cxx:623: context name ChartLabel not recognized
warn:sfx.sidebar:304649:304649:sfx2/source/sidebar/ResourceManager.cxx:623: context name ChartTitle not recognized
warn:sfx.sidebar:304649:304649:sfx2/source/sidebar/ResourceManager.cxx:623: context name ChartLegend not recognized
warn:sfx.sidebar:304649:304649:sfx2/source/sidebar/ResourceManager.cxx:623: context name ChartLabel not recognized
Comment 5 BogdanB 2025-09-24 14:37:28 UTC
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 742dbb088b44783c3a4f0fd120b11be3a74fd483
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 6 Roman 2025-09-24 14:58:08 UTC
Python 3.11 is required for 25.8
Comment 7 raal 2025-09-24 15:12:04 UTC
I can open the file in LO 7.3, but not with 26.2
In file metadata is information that file is created with LO LibreOffice/7.6.4.1$Windows_X86_64
Comment 8 raal 2025-09-24 15:18:04 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-24.2.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
 50c51f7161dc636c253268b42c04079cfb137c1f is the first bad commit
commit 50c51f7161dc636c253268b42c04079cfb137c1f
Author: Jenkins Build User <tdf@maggie.tdf>
Date:   Wed Jul 24 08:49:22 2024 +0200

    source cffa22ee046fd62b38692ca25dea3a6827889d9a

170588: package: add additional consistency checks for local file header | https://gerrit.libreoffice.org/c/core/+/170588
Comment 9 Michael Stahl 2025-09-24 16:35:36 UTC
looking at the first attachment...

oh, thats a new one:

1433	            if (aEntry.nMethod == STORED && aEntry.nCompressedSize != aEntry.nSize)
1434	            {
1435	                throw ZipException(u"entry STORED with inconsistent size"_ustr);
1436	            }

00071980:                               504b 0102              PK..
00071990: 1400 1400 0800 0000 747a 9958 0000 0000  ........tz.X....
000719a0: 0200 0000 0000 0000 2700 0000 0000 0000  ........'.......
                    ^^^^^^^^^ uncompressed size is 0
          ^^^^^^^^^ compressed size is 2
000719b0: 0000 0000 0000 8300 0000 436f 6e66 6967  ..........Config
000719c0: 7572 6174 696f 6e73 322f 6163 6365 6c65  urations2/accele
000719d0: 7261 746f 722f 6375 7272 656e 742e 786d  rator/current.xm
000719e0: 6c                                       l

so it's a problem with the file that is correctly reported...

but unfortunately in a debug build the recovery mode hits an assert, that is the thing to be fixed here...
Comment 10 Commit Notification 2025-09-24 17:48:22 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/347512a77b2e627715e57d5731fe93836d103eb1

tdf#168538 package: downgrade assert to SAL_WARN

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2025-10-01 13:47:10 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/e1dfc36c9d9e4c7d9ee006247cd2c81309d4fe65

tdf#168538 package: now i notice there's bRecoveryMode

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.