Description: When you delete the Legend from ant Chart LibreOffice crash. Regression Steps to Reproduce: 1. Open the file. Try to delete chart Legend 2. Crash Actual Results: Crash Expected Results: NO Crash Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 1c0aa970650ffc7c749e0b5ea655ebb2d137c8ae CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Created attachment 178242 [details] demo document Could be reproduce with any chart/any file. The file is just as a demo document.
Created attachment 178246 [details] bt with debug symbols On pc Debian x86-64 with master sources updated today, I could reproduce this.
Regression from: 63e8c2ccd39263b24f644c3d0394044a2613eb88 use more concrete types in chart2, Diagram (I reverted it locally, I don't reproduce the crash). Noel: thought you might be interested in this one.
Also, could be related to this bug: if I insert in the chart an Axis Title and try to delete it LibreOffice is freezing or I am getting a crash, similar to that of Legend.
Interesting, if I delete the Legend with right click when in edit mode in a chart NO CRASH. Just when click on Legend and delete I get a crash.
Noel Grandin committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/11a3e5707d6b524728b24e170eb542bba273d811 tdf#147394 delete crash legend It will be available in 7.4.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.
Thanks Noel. Very fast fixing. 24 hours and 11 minutes between the report filled until it was solved.
Noel, This bug is fixed. Verified with Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 2f0c26dc83448a934af5383f9f6b7a607c334744 CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded But, what I notice, there are many crashes with simple charts, that I could not reproduce each time, like: Insert A B 1 2 2 3 in a new Calc and generate a chart. Try to insert Axis Title and delete it. And again and again. Could get you a crash sometimes. Also I get a crash when tring to insert a Legend in a chart without one. If you can play a little with new documents with simple data and inserting a default chart and trying to insert/delete some elements into a chart. If I could get a constant crash I will come with a new report. Thansk for your work.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/b05f2e0f3117ed59f63d97cebeb7ea7372df8ed5 tdf#147394: sc: Add UItest It will be available in 7.4.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.