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

            Bug ID: 165156
           Summary: FILEOPEN: Hang on opening document with large
                    keep-with-next table
           Product: LibreOffice
           Version: 7.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 199094
  --> https://bugs.documentfoundation.org/attachment.cgi?id=199094&action=edit
sample document that hangs on load

I have a document that, when I try to open it in LO Writer, the process hangs
forever.

The primary culprit *seems* to be a large table, where every row is marked as
"keep-with-next", so it's trying to keep it all together on one page, but the
table is too big to fit on a single page. But the hang is also very fragile, as
I'd discovered while I was trying to find a minimal sample, if you at all
change the size of the table (eg making one of the rows shorter by removing a
linebreak) then the pagebreak hits a different part of the table, and it
doesn't necessarily crash.

See attached sample_crashy.odt - the content here is a small table, then a
paragraph with keep-with-next, and then the large table. This is trimmed down
from an actual document that's many pages long, I've tried to trim it down as
much as I can but there might still be some cruft in there, sorry.

I'm not sure what the first table has to do with it, but if I remove it, it no
longer hangs, see attached sample_not_crashy_rm_table.odt

I'm suspecting the keep-with-next as being the issue, as if I remove
keep-with-next from one of the cells in the table, it also no longer hangs, see
attached sample_not_crashy_rm_keepwithnext.odt

Version: 24.8.4.2 (X86_64) / LibreOffice Community
Build ID: bb3cfa12c7b1bf994ecc5649a80400d06cd71002
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631); UI render:
Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to