https://bugs.documentfoundation.org/show_bug.cgi?id=170827

            Bug ID: 170827
           Summary: FILEOPEN XLSX File hangs Calc when opened
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: bibisected, bisected, regression
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]
            Blocks: 109530

Created attachment 205546
  --> https://bugs.documentfoundation.org/attachment.cgi?id=205546&action=edit
forum-mso-en-7811.xlsx

Try opening the attached file, forum-mso-en-7811.xlsx in Calc.

=> It hangs, with increasing memory use.

This happens since the following commit in 26.8:
https://git.libreoffice.org/core/commit/b1df5786458223f21f0eaa9627c0f4c6fa5f1747
author          Noel Grandin <[email protected]>     Sun Dec 21
19:55:04 2025 +0200
committer       Noel Grandin <[email protected]>     Thu Jan 01
09:10:56 2026 +0100

"tdf#166684 use hashing in CellAttributeHelper::registerAndCheck"

Based on debugging, what I can see is that two ScPatternAttr that are the same
(areSame(...) returns true) have different hashes.
https://github.com/LibreOffice/core/blob/4efce48d6a29ae99acad0248679cb106d4fd7b6b/sc/source/core/data/patattr.cxx#L113

A reason I can see why this happens is that while the two ScPatternAttr objects
have the same entries m_aPoolItemMap, items can be in different order because
of m_aPoolItemMap itself being an unordered map, which results in different
hashes.

Test files affected likely by the same commit (I haven't checked each, but they
started failing at the same mso-test run):
forum-mso-en-18251.xlsx
forum-mso-en-7811.xlsx
forum-mso-en4-139144.xlsx
forum-mso-en4-141440.xlsx
forum-mso-en4-141819.xlsx
forum-mso-en4-161503.xlsx
tdf107965-3.xlsx
tdf108041-3.xlsx
tdf108340-3.xlsx
tdf108934-1.xlsx
tdf114365-1.xlsx
tdf121382-1.xlsx
tdf121383-1.xlsx
tdf128299-1.xlsx
tdf129228-1.xlsx


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=109530
[Bug 109530] [META] File opening issues
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to