Bug 167603 - Writer hangs on loading Persian DOCX file
Summary: Writer hangs on loading Persian DOCX file
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-20 09:04 UTC by Hossein
Modified: 2025-07-23 20:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossein 2025-07-20 09:04:53 UTC
Description:
When loading specific DOCX files, Writer hangs

Steps to Reproduce:
1. Open attachment 196815 [details] from tdf#163233

Actual Results:
Writer hangs while trying to load the document

Expected Results:
Writer should not hang


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 9b79ae1161af42d7a54e34a1dbcf78831acab86d
CPU threads: 12; OS: Linux 6.2; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Please note that in tdf#163233 file is loaded, and then Writer hangs. Now the document does not even load in the first place.
Comment 1 m_a_riosv 2025-07-20 21:46:13 UTC
No issue here, even it looks as a complex document.
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 49279f6a01c4f07b723072c068a9c1eab5b7f292
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 2 Hossein 2025-07-22 05:59:12 UTC
(In reply to m_a_riosv from comment #1)
> No issue here, even it looks as a complex document.
Please make sure that you have the required fonts installed on your system, as this bug (and/or tdf#163233) are dependent on the calculated size of specific characters/words.
Comment 3 m_a_riosv 2025-07-22 20:41:52 UTC
I not have them installed in my Win 11, but they are not showed in italic as it should be, as non installed. Maybe they are embedded.

In any case, loading the file hangs with:
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
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

But it loads without issue with:
Version: 25.8.0.1.0+ (X86_64) / LibreOffice Community
Build ID: e2272d311c8a7f2ac6eb8df3e222dec12d83b248
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
OR
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 49279f6a01c4f07b723072c068a9c1eab5b7f292
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 4 Hossein 2025-07-23 20:13:31 UTC
@m_a_riosv:
Thanks for testing!

I tried to test again with the latest LibreOfficeDev 26.2.0.0.alpha0 d801da406502579ba619cd986ccc681d9a6bb5a3. I let the loading process to continue for several minutes, and then LibreOffice Writer displayed the document, at last.

To do a comparison, I tried to load a document with LO built with libreoffice-25.2.4.3 git tag and also the latest LO 26.2 dev master:

export SAL_USE_VCLPLUGIN=gen
export OOO_EXIT_POST_STARTUP=1
time instdir/program/soffice sample.docx

With libreoffice-25.2.4.3, it takes 1m12s:
real	1m12.037s
user	1m11.418s
sys	0m0.356s

With the latest LO 26.2 dev master, it is almost similar:
real	1m27.225s
user	1m26.776s
sys	0m0.372s

The situation is not changed much since tdf#163233, and therefore I close this issue. The difference I noticed is because of a debug build.