Bug 164652 - Writer muzz never stuck processing DOC file with images
Summary: Writer muzz never stuck processing DOC file with images
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
Depends on:
Blocks: DOC-Images
  Show dependency treegraph
 
Reported: 2025-01-10 03:05 UTC by KDV
Modified: 2025-02-20 13:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample DOC causing Writer stucks (2.17 MB, application/msword)
2025-01-10 03:05 UTC, KDV
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KDV 2025-01-10 03:05:48 UTC
Created attachment 198461 [details]
Sample DOC causing Writer stucks

Open attached DOC file and scroll down couple of pages: performance slows down extremely and finally Writer process sucks. At the end of all Windows marks Writer window as "Not responding".

16-core CPU x 80GB RAM is definitely not the hardware where such stucks may happen.
Comment 1 raal 2025-01-24 18:16:24 UTC
Confirm freeze at page 2 or 4 with Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9dd225ee8c45d6c944b9ce5578780d89612e9ffb
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

works in Version 4.1.0.0.alpha0+ (Build ID: 847749e975a7111ea306909a29fddb5df13e9a7)
Comment 2 raal 2025-01-25 06:12:00 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-6.5.
Adding Cc: to Justin Luth ; Could you possibly take a look at this one?
Thanks
 c7dc67002e68834bc6b05055a933ceb4b25772f3 is the first bad commit
commit c7dc67002e68834bc6b05055a933ceb4b25772f3
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Thu Mar 5 11:56:01 2020 +0100

    source 1052acae9a599c54e518c8fc17d6a994d8778757

89586: tdf#119748 sw layout: ConsiderTextWrap on initial positioning | https://gerrit.libreoffice.org/c/core/+/89586
Comment 3 BogdanB 2025-01-25 10:30:04 UTC
It's better if saved as DOCX.

In debug version I get, just opening the file:

WPSDocument::isFileFormatSupported()
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:legacy.osl:4740:4740:sw/source/filter/basflt/fltshell.cxx:336: Wrong id for attribute
warn:sw.ww8:4740:4740:sw/source/filter/ww8/ww8par.cxx:363: HLINK with embedded null, truncating to: https://img.mysku-st.ru/uploads/images/02/55/13/2016/07/28/72ba4a.jpg
warn:sw.ww8:4740:4740:sw/source/filter/ww8/ww8par.cxx:363: HLINK with embedded null, truncating to: https://img.mysku-st.ru/uploads/images/02/55/13/2016/07/28/927f21.jpg
warn:sw.ww8:4740:4740:sw/source/filter/ww8/ww8par.cxx:363: HLINK with embedded null, truncating to: https://img.mysku-st.ru/uploads/images/02/55/13/2016/07/28/3f2bad.jpg
warn:sal.osl:4740:4740:sal/osl/unx/module.cxx:100: dlopen(/home/bogdan/Documente/debug/LibreOfficeDev_25.8.0.0.alpha0_Linux_x86-64_archive/program/libjava_gcc3.so, 257): /home/bogdan/Documente/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:4740:4740:sal/osl/unx/module.cxx:100: dlopen(/home/bogdan/Documente/debug/LibreOfficeDev_25.8.0.0.alpha0_Linux_x86-64_archive/program/libgcc3_java.so, 257): /home/bogdan/Documente/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:4740:4740:sfx2/source/control/bindings.cxx:1776: No cache for OfficeDispatch!


Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f24bb80e45c1693db33b47ee695436b2c8d5fbcd
CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 4 Justin L 2025-02-20 13:43:10 UTC
(In reply to raal from comment #2)
> This seems to have begun at the below commit in bibisect repository/OS
> linux-64-6.5.
> 89586: tdf#119748 sw layout: ConsiderTextWrap on initial positioning |
> https://gerrit.libreoffice.org/c/core/+/89586
Note that this patch was soon replaced by the one in bug 131707, so apparently both patches produce the same result for this file.

This almost certainly has just exposed some pre-existing layout trap. Plus, the replacement patch wasn't really mine (even though it has my name on it). So I'm removing my name from the regression field.