Download it now!
Bug 127770 - Freeze/crash on a cell formatted with rotation 180° and dashed borders
Summary: Freeze/crash on a cell formatted with rotation 180° and dashed borders
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: high major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, perf, regression
Depends on:
Blocks: Cell-Border
  Show dependency treegraph
 
Reported: 2019-09-26 06:35 UTC by Mike Kaganski
Modified: 2019-09-28 09:13 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Cell formatted 180° text rotation and dashed borders (7.80 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-09-26 06:35 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2019-09-26 06:35:01 UTC
Created attachment 154509 [details]
Cell formatted 180° text rotation and dashed borders

Formatting a spreadsheet cell to have dashed borders and text orientation set to 180° makes Calc freeze and/or crash (it crashes fast with 32-bit builds, and freezes in 64-bit builds, but eventually would also crash).

This is a regression from https://git.libreoffice.org/core/+/e32c12a444e5bd0c6735db8e8008340c29a7e25e (CCing Armin Le Grand).

The freeze happens in basegfx::utils::applyLineDashing, where fEdgeLength (in "simple edge" branch) gets a really huge value because of insanely slanted polygon (in my 64-bit build, it is greater than 30000000000000000).

The attachment has A1 formatted like that (the file was created with a pre-6.0 version). Opening it with 6.0+ shows the problem.
Comment 1 Roman Kuznetsov 2019-09-26 06:41:36 UTC
confirm in

Версия: 6.4.0.0.alpha0+ (x86)
ID сборки: b1dd4244b60948a6dd84872799e508effa164cba
Потоков ЦП: 4; ОС:Windows 6.1; Отрисовка ИП: по умолчанию; VCL: win; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2019-09-25_07:01:29
Локаль: ru-RU (ru_RU); Язык интерфейса: ru-RU
Calc: threaded

It took over 1,5Gb of memory, then Windows killed soffice.bin