Bug 103097 - Adding new row to a big ODT table causes procdump with 5.5+ (crash "No RTTI Data" before or with less memory)
Summary: Adding new row to a big ODT table causes procdump with 5.5+ (crash "No RTTI D...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Tables Memory Crash
  Show dependency treegraph
 
Reported: 2016-10-10 20:26 UTC by PeLe
Modified: 2024-02-09 21:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
.odt file containing a big table with text and graphics (6.49 MB, application/vnd.oasis.opendocument.text)
2016-10-10 20:26 UTC, PeLe
Details
Very sleepy stack (13.25 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-06-12 15:20 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description PeLe 2016-10-10 20:26:05 UTC
Created attachment 127935 [details]
.odt file containing a big table with text and graphics

I am working with a growing table containing text and graphics.
First this crash occurred only after adding a lot of new rows without saving before closing. I learned to circumvent by saving every few minutes. Now the file is about 7 MB and the crash occurs by the mere "table/insert row" command.
Opening of the file takes more than 5 minutes.
Comment 1 MM 2016-10-16 20:39:56 UTC
Can't reproduce this one, coz it takes forever to load. Which is a bug as such.

On v5.1.5.2 under windows 7 x64 and ubuntu 16.04 x64 it opens with page 1 of 12 (and 100% zoom) and LO keeps on adding pages very slowly all the time.
With v5.2.2.2 and v5.3 under ubuntu 16.04 x64 it opens with page 1 of 270 (and 150% zoom) and hangs forever. Ended the program after 30 mins or so.
Comment 2 Buovjaga 2016-10-25 18:52:47 UTC
It opened for me properly as I left it alone for several minutes. I could insert a row, CPU went hard for a while, but no crash. I think it could be crashing for PeLe because he is running out of memory.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.3.0.0.alpha1+
Build ID: cd7b306e614a938b7b39a66784899c22ee6f6c64
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on October 25th 2016
Comment 3 Telesto 2017-06-09 15:42:35 UTC
No repro with
Version: 5.5.0.0.alpha0+
Build ID: 74d9b711d71cbaf4f853559211f6525db4a4b5db
CPU threads: 4; OS: Windows 6.19; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-06-08_02:48:15
Locale: nl-NL (nl_NL); Calc: CL

File=opening is fast and I have no issue adding new table rows.
Comment 4 Timur 2017-06-09 16:34:34 UTC
With a trick of procdump, I notice that previously there was dump on fileopen, which is not present now with libo-master~2017-06-09_02.15.11_LibreOfficeDev_5.5.0.0.alpha0_Win_x86. And opening is faster, 270 pages, scrolling acceptable for me. 

What's not ok is procdump on insert row: vcllo!VclScrolledWindow::setUserManagedScrolling+3ba2e
No crash, but I'll confirm with title change.
Comment 5 Telesto 2017-12-03 14:10:07 UTC
Opening the file is an issue already. The first page shows up, but the document is completely unresponsive 
Version: 6.1.0.0.alpha0+
Build ID: cc1db6f2b0ebe05ae807628778835b62df00eca2
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-12-02_23:45:34
Locale: nl-NL (nl_NL); Calc: CL
Comment 6 QA Administrators 2018-12-04 03:48:09 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2018-12-04 06:55:21 UTC
I got a freeze of LO when I tried to open file from attach in

Версия: 6.2.0.0.beta1
ID сборки: d1b41307be3f8c19fe6f1938cf056e7ff1eb1d18
Потоков ЦП: 4; ОС:Windows 6.1; Отрисовка ИП: по умолчанию; VCL: win; 
Локаль: ru-RU (ru_RU); UI-Language: ru-RU
Calc: threaded
Comment 8 Telesto 2020-06-12 15:20:46 UTC
Created attachment 161924 [details]
Very sleepy stack

File opens quite fast.. but deleting or inserting a column/row.. and it will get slow.. 

getenv
PhysicalFontCollection::FindFontFamily
LogicalFontInstance::GetFontCache
LogicalFontInstance::GetFontCache
OutputDevice::ImplNewFont
OutputDevice::InitFont
OutputDevice::ImplLayout
OutputDevice::GetTextWidth
SwDrawTextInfo::GetSperren
SwAttrSet::GetSize
SwAttrSet::GetScriptSpace
SwTextFrame::SwitchRTLtoLTR
SwPageDesc::SetRegHeight
SwDrawTextInfo::SetPosMatchesBounds
SwDrawTextInfo::SetPosMatchesBounds
SwTextFrame::FormatLine
SwTextFrame::Format_
SwTextFrame::Format_
SwTextFrame::Format
SwViewOption::IsWhitespaceHidden
SwFrame::PrepareMake

So lots of text width measuring (probably even for multiple fonts?) initiated by table rendering.. And the text shaping is not really cheap by itself.
Comment 9 QA Administrators 2022-06-13 03:26:03 UTC Comment hidden (obsolete)
Comment 10 Tex2002ans 2024-02-09 21:23:17 UTC
NO CRASH on:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

It also opened very fast.

- - -

I also didn't have any issues when I:

- Added/Deleted a row

in the table on Page 2 or 3.

- - -

But, there was major slowdown/"CPU stuck at 100%" when I:

- Added/Deleted a column