Bug 163539 - Odd LO Writer crash in SwTextFormatter::InsertPortion while editing the document / at fileopen
Summary: Odd LO Writer crash in SwTextFormatter::InsertPortion while editing the docum...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression, wantBacktrace
Depends on:
Blocks: File-Opening Crash
  Show dependency treegraph
 
Reported: 2024-10-20 05:58 UTC by Benjamim Sousa
Modified: 2024-11-11 14:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature: ["SwTextFormatter::InsertPortion(SwTextFormatInfo &,SwLinePortion *)","SwTextFormatter::InsertPortion","SwTextFormatter::InsertPortion(SwTextFormatInfo&, SwLinePortion*) const"]


Attachments
File with such bug (756.23 KB, application/vnd.oasis.opendocument.text)
2024-11-09 16:22 UTC, Benjamim Sousa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamim Sousa 2024-10-20 05:58:01 UTC
Description:
Sorry for not being clear in the title i couldn't be clearer than this but the fact is:
I'm writing math with TexMaths extension and the document has a lot of svg, sections, toc, equations etc.

Later when i decided to change the text font the program crashed. Now i decided to type something but i'm not able to, it's crashing just after a few words typed.
Here the crash report: https://crashreport.libreoffice.org/stats/crash_details/cabcd0be-579c-46fd-9cdf-41ae0b5d27d6

I also tested this document with a fresh installation and the behavior is worst it crashes right after it opens.

I'll try to provide whatever info i can. Thanks in advance. 

Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 24; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: pt-BR (pt_BR); UI: en-US
Calc: threaded

Steps to Reproduce:
1. Open the document
2. Write some stuff or change the font

Actual Results:
It suddenly crash

Expected Results:
Make changes to the document, test some fonts


Reproducible: Always


User Profile Reset: Yes

Additional Info:
It's kinda hard to explain how it really happens. I use a two collumns layout and have SVG on it and a list for questions. In a specific point of the text I can't go any further (when the tex would go to the next line), it stop there crashing.

Hope it helps!
Comment 1 Dieter 2024-11-05 06:29:59 UTC
Thank you for reporting the bug. Does it only happen when using the extension? Is it possible for you to provide a sample document?
=> NEEDINFO
Comment 2 Benjamim Sousa 2024-11-09 16:22:39 UTC
Created attachment 197503 [details]
File with such bug

I openned it and tested on a sandbox with a LO fresh install, with no extensions.

Steps to reproduce:
1. go to sections -> unhide 'Arco de Circunferência e Ângulos'
if it not crash do:
2. go to "Matemática 1" heading -> go to exercise 4 (the one starting with 'ITA-SP 1973')
3. then inside the blue frame after it, on the line below "Resolução:" press enter two times.
Comment 3 Benjamim Sousa 2024-11-09 16:23:33 UTC
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 24; OS: Windows 10 X86_64 (10.0 build 19041); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 4 Benjamim Sousa 2024-11-09 16:26:56 UTC
This crash is about breaking lines.

The one with the fonts i don't know to reproduce now.
Comment 5 QA Administrators 2024-11-11 03:13:35 UTC Comment hidden (obsolete)
Comment 6 mkt 2024-11-11 10:07:08 UTC
Hello, 

I could reproduce this issue in both version 24.8.2.1 and 25.2.0.0 by opening the attached file and typing some random text. The Writer crashed.


Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
CPU threads: 2; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded



Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ce4ae4f082d8fe80da242836c57d55a456eac5e0
CPU threads: 2; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 7 Stéphane Guillou (stragu) 2024-11-11 14:28:10 UTC
Attachment 197503 [details] crashes on fileopen for me with:

Version: 24.2.6.2 (X86_64) / LibreOffice Community
Build ID: ef66aa7e36a1bb8e65bfbc63aba53045a14d0871
CPU threads: 8; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
https://crashreport.libreoffice.org/stats/crash_details/3c9c04ae-b729-404e-8ebd-ad4494787fe9

Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13
https://crashreport.libreoffice.org/stats/crash_details/170c1b9f-dece-44a1-9150-cfa8f51a06a2

And own recent build:
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0746914ed0778ff82329162508985fc6f7655aba

7.0: https://crashreport.libreoffice.org/stats/crash_details/78321509-4ac3-4fa1-a3d4-d7337bd0af21

6.0: https://crashreport.libreoffice.org/stats/crash_details/dea7eb5b-41cf-40f1-a8c4-b59634048914

No crash in 5.4.0.2.