Bug 167988 - Deleting an existing "Mean value line" or a "Trend line" in a chart crashes program.
Summary: Deleting an existing "Mean value line" or a "Trend line" in a chart crashes p...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: x86-64 (AMD64) All
: highest critical
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.1 target:26.2.0
Keywords: bibisected, bisected, regression
: 168097 (view as bug list)
Depends on:
Blocks: Chart-Trendlines Crash
  Show dependency treegraph
 
Reported: 2025-08-17 11:35 UTC by Harry
Modified: 2025-08-25 08:34 UTC (History)
8 users (show)

See Also:
Crash report or crash signature: ["StyleItemController::DrawEntry(OutputDevice &,SfxStyleSheetBase *)"]


Attachments
Test chart to crash calc by deleting trend or mean value line. (36.36 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-08-17 11:38 UTC, Harry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harry 2025-08-17 11:35:36 UTC
Description:
Deleting an existing mean value line or a trend lin in a chart crashes LibreOffice calc immediately. Creating a new or editing an existing trend or mean value line works fine.

Steps to Reproduce:
1. Delete an existing mean value line or trend line in a chart.
2. Program crashes immediately.

Actual Results:
Delete an existing mean value line or trend line in a chart.

Expected Results:
Program crashes.


Reproducible: Always


User Profile Reset: No

Additional Info:
Program should have not crashed?
Comment 1 Harry 2025-08-17 11:38:15 UTC
Created attachment 202361 [details]
Test chart to crash calc by deleting trend or mean value line.
Comment 2 Harry 2025-08-17 11:40:08 UTC
Found the bug by using LibreOffice Version 25.8.0.4 for Windows.
Comment 3 Harry 2025-08-17 11:51:28 UTC
It seems that you cannot delete any line in a chart without crashing LibreOffice calc. Trend line, mean value line, normal chart line.. calc always crashes immediately.
Comment 4 nobu 2025-08-17 12:15:22 UTC
You can even see it in a very simple chart I created myself.

Not reproduced with
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded

Reproducible with
Version: 25.8.0.4 (X86_64)
Build ID: 48f00303701489684e67c38c28aff00cd5929e67
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded

Not reproduced with
[2025_08_17]
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 08b0b260f52483090d94a6d5bd0b053bb1b51c9e
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP
Calc: threaded
Comment 5 raal 2025-08-17 13:33:17 UTC
NO crash with Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ea064cc802c874062c7526781502611e341d8401
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 6 m_a_riosv 2025-08-17 22:26:01 UTC
Reproducible with:
Version: 25.8.1.0.0+ (X86_64) / LibreOffice Community
Build ID: 00b2dd5faeb43ff50c84139a31892956a6a142d7
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

But not reproducible with:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
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

NEITHER
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
Comment 7 Xisco Faulí 2025-08-18 09:18:32 UTC
Not reproducible in

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f3522ba36c867f4eb69fabcf293419f1d69caffa
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: x11
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 8 Xisco Faulí 2025-08-18 10:00:35 UTC
Regression introduced by:

commit 1160d5b29a9cdae5ec6126663e888b8e5c76aba4	[log]
author	Attila Szűcs <attila.szucs@collabora.com>	Thu Apr 24 11:13:08 2025 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	Thu May 08 08:31:36 2025 +0200
tree be8c0a937ee4d53cf24956034efc29d696cb7845
parent 7bb189c3c2c3fb414484e81b9c6bd2f446784cb3 [diff]

Chart Font sidebar panel

Bisected with: linux64-25.8
Comment 9 Xisco Faulí 2025-08-18 10:25:57 UTC
In master, the issue got fixed with

commit 56bfdcdd0b1dc03eff2e63f216ae80215611f9cf	[log]
author	Mike Kaganski <mike.kaganski@collabora.com>	Sun Jul 06 20:43:43 2025 +0500
committer	Mike Kaganski <mike.kaganski@collabora.com>	Sun Jul 06 19:00:43 2025 +0200
tree cc613e2639f6649a93e067440d1a9fcc94cbd2d7
parent 543b6dc7668c8b5958b9adc010ab91855cc47a2a [diff]

Avoid re-asking the property value, when it has already been obtained

Backported to libreoffice-25-8 in https://gerrit.libreoffice.org/c/core/+/189859
Comment 10 Commit Notification 2025-08-18 15:06:08 UTC
Mike Kaganski committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/51233dfa4adae23b720bf150b0a62b6459f4baf8

tdf#167988: Avoid re-asking the property value, when it has already...

It will be available in 25.8.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2025-08-18 17:50:40 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/8070a17886bbe174fd31563b79fc15e359995451

tdf#167988: sc: Add UITest

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Commit Notification 2025-08-18 20:39:08 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/a067cfd788121ad4042cf09acf62505caf38b66c

tdf#167988: sc: Add UITest

It will be available in 25.8.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Xisco Faulí 2025-08-25 08:34:55 UTC
*** Bug 168097 has been marked as a duplicate of this bug. ***