Bug 131508 - Assertion failed when closing chart after selecting the whole chart area after an item
Summary: Assertion failed when closing chart after selecting the whole chart area afte...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Crash-Assert
  Show dependency treegraph
 
Reported: 2020-03-23 18:33 UTC by Aron Budea
Modified: 2022-03-25 07:16 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Backtrace (21.01 KB, text/plain)
2020-03-23 18:33 UTC, Aron Budea
Details
Sample ODS with chart (12.72 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-03-23 18:34 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2020-03-23 18:33:19 UTC
Created attachment 158903 [details]
Backtrace

This bug requires a debug build to repro.

- Open the attached ODS that has a simple chart (the content doesn't matter, just needs a chart).
- Double-click into the chart to get into chart edit mode.
- Click on a chart item, eg. one of the bars to select it.
- Click on the empty area around the chart content to select the whole chart area (while still in chart edit mode).
- Close the spreadsheet via File -> Close.

=> Crash with assertion failed error.

Alternatively, instead of the last step, you can do the following:
- On sidebar, open the Line deck's Line dropdown, and choose any entry.
=> This will trigger the same assert.
(the BT is slightly different, but the first few levels are the same)

soffice.bin: .../chart2/source/controller/sidebar/ChartSeriesPanel.cxx:267: rtl::OUString chart::sidebar::{anonymous}::getCID(const com::sun::star::uno::Reference<com::sun::star::frame::XModel>&): Assertion `eType == OBJECTTYPE_DATA_SERIES || eType == OBJECTTYPE_DATA_POINT' failed.

This assert is the same as in bug 117539, but the BT is a lot different.
Comment 1 Aron Budea 2020-03-23 18:34:00 UTC
Created attachment 158904 [details]
Sample ODS with chart
Comment 2 QA Administrators 2022-03-25 03:39:08 UTC Comment hidden (obsolete)
Comment 3 Aron Budea 2022-03-25 07:16:57 UTC
No assertion failure in LO 7.4.0.0.alpha0+ (c5c4dc5fc90e775537dd98439a581ba7764a4fd0) / Ubuntu, dbgutil build.