Created attachment 132452 [details]
File with pivot table having everything in row field
Attempt to create pivot chart on provided file results in a crash.
Works also when data and all fields are in column ...
With everything in Column, deactivating totals fixes the bug, but that doesn't work when everything is in Rows.
@Tomaž: one for you..
In sc/source/ui/unoobj/PivotTableDataProvider.cxx sc::PivotTableDataProvider::collectPivotTableData() aDataFieldNamesVectors[i] with i=28 is tried to be accessed, where aDataFieldNamesVectors has only 28 elements.
Created attachment 132615 [details]
bt with debug symbols
On pc Debian x86-64 with master sources updated today, I could reproduce this.
I attached bt + debug symbols and other traces before the crash.
I noticed that m_aLabels is filled only in case sheet::DataPilotFieldOrientation_COLUMN case
Tomaž Vajngerl committed a patch related to this issue.
It has been pushed to "master":
tdf#107072 fix crash when only a row and data fields are present
It will be available in 5.4.0.
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.
I confirmed it's fixed with master sources updated yesterday.
Thank you Tomaž!