Bug 131508

Summary: Assertion failed when closing chart after selecting the whole chart area after an item
Product: LibreOffice Reporter: Aron Budea <aron.budea>
Component: ChartAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: haveBacktrace
Priority: medium    
Version: 7.0.0.0.alpha0+   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 105537    
Attachments: Backtrace
Sample ODS with chart

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.