Bug 167525 - LibreOffice crashes on pasting (and deleting) chart made out of Pivot Table to another LO component
Summary: LibreOffice crashes on pasting (and deleting) chart made out of Pivot Table t...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://crashreport.libreoffice.org/s...
Whiteboard:
Keywords:
Depends on:
Blocks: Paste Pivot-Table Crash
  Show dependency treegraph
 
Reported: 2025-07-16 15:02 UTC by Piotr Osada
Modified: 2025-07-18 08:32 UTC (History)
1 user (show)

See Also:
Crash report or crash signature: ["msvcp140.dll"]


Attachments
Example spreadsheet with Pivot Table (22.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-07-16 15:02 UTC, Piotr Osada
Details
Pivot table - chart sampel (18.36 KB, application/vnd.oasis.opendocument.spreadsheet)
2025-07-16 22:34 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2025-07-16 15:02:47 UTC
Created attachment 201819 [details]
Example spreadsheet with Pivot Table

1) Open attached file
2) Copy chart
3) Paste to another application (one of: Calc, Draw, Impress, Writer*)
4) In target application (this another) do one of following:
       - Undo (Ctrl+Z)
       - Delete (without unselecting pasted object)

Result:
LibreOffice crashes

* at point 3) LO crashes when pasting to Writer

Expected:
LO working stable

Reproducible:
always

The original file had another Sheet with raw data. This data were in Pivot Table (now empty in attached file). In the existing sheet ("Pivot Table_1"), there was a Pivot Table with Sorting, Category, Average and Standard Deviation (of sample) columns. Whole Pivot table were copied and pasted as values. And from this static values plot was made. In this anonymized file, data ranges of the plot overlaps both Pivot Table and blank space. In the original file, where Pivot Table and "static" values were occupying areas separated by 3 columns, this crash also was occurring.



Reproduced in (without profile reset):
Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded


Reproduced in freshly installed LO Dev, and also in Safe Mode:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 53a9cee01759ce54c4ee50468958531a360640f9
CPU threads: 8; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 2 Piotr Osada 2025-07-16 22:03:06 UTC
br-e3ad3651-c02f-4b9e-8bd7-8421f7ea1200
Comment 3 m_a_riosv 2025-07-16 22:34:12 UTC
Created attachment 201828 [details]
Pivot table - chart sampel

Reproducible

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 27943324726c52027b527ceb4fa7646c6f21ed17
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded

But there is malformed pivot table and pivot chart.

Seems it doesn't happen with a well formed pivot table.
Comment 4 Piotr Osada 2025-07-17 09:48:15 UTC
> But there is malformed pivot table and pivot chart.
Yes. I was cutting the original file to minimal working example that causes crash. I haven't figured out yet how I messed up this pivot table.


Reproducible with:
attachment 201819 [details]
Example spreadsheet with Pivot Table



> Seems it doesn't happen with a well formed pivot table.
Correct. It does not happen.

Not reproducible with:
attachment 201828 [details]
Pivot table - chart sampel

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 5 Piotr Osada 2025-07-17 10:07:14 UTC
By the way, how to attach bug ticket to crash report for msvcp140.dll?
Comment 6 m_a_riosv 2025-07-17 23:21:08 UTC
Why is the crash report or crash signature being changed? It is what developers use to find it.
Comment 7 Piotr Osada 2025-07-18 08:32:06 UTC
Sorry. And thank you for explanation.