Bug 122510 - EDITING Calc crashes when editing chart objects after chart has been deleted (gtk/gen)
Summary: EDITING Calc crashes when editing chart objects after chart has been deleted ...
Status: RESOLVED DUPLICATE of bug 122597
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.2.0.1 rc
Hardware: All All
: high critical
Assignee: Not Assigned
URL:
Whiteboard: target:7.2.0
Keywords: bibisected, bisected, regression
Depends on:
Blocks:
 
Reported: 2019-01-05 18:41 UTC by Emil Tanev
Modified: 2021-05-31 09:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature: ["chart::ControllerLockGuardUNO::ControllerLockGuardUNO(com::sun::star::uno::Reference<com::sun::star::frame::XModel> const &)"]


Attachments
file (15.66 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2019-01-05 18:41 UTC, Emil Tanev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Tanev 2019-01-05 18:41:22 UTC
Created attachment 148065 [details]
file

Open the attached file in Calc
Select the chart
From the top toolbar, select All Axes
Click in the spreadsheet
Click once on the chart
Press Delete
Manipulate something in All Axes dialog (e.g. Font size)

Issue: Calc crashes
https://screencast-o-matic.com/watch/cqVhFz3VM7

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 49fcd3bbb30f93763fc5cb80fa6ac5cec5d00834
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-12-24_22:40:25
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded
Comment 1 Telesto 2019-01-05 21:12:03 UTC
Repro
Version: 6.3.0.0.alpha0+
Build ID: 6e5c4001c7b5cab2b2cc6419072acbe5fa7cb04a
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
Locale: en-US (nl_NL); UI-Language: en-US
Calc: CL
Comment 2 Oliver Brinzing 2019-01-06 15:11:37 UTC
repro with:

Version: 6.2.0.1 (x64)
Build-ID: 0412ee99e862f384c1106d0841a950c4cfaa9df1
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded

*no* repro with:

Version: 6.1.4.2 (x64)
Build ID: 9d0f32d1f0b509096fd65e0d4bec26ddd1938fd3
CPU threads: 4; OS: Windows 10.0; UI render: default; 
Locale: de-DE (de_DE); Calc: group threaded

in LO 6.1.4.2 "Axes" dialog is modal
Comment 3 Xisco Faulí 2019-01-07 10:39:50 UTC
Also reproduced in

Version: 6.3.0.0.alpha0+
Build ID: 892a5cfe557edb405ec0037676f02a1c24dd76ec
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk2; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

but not in

Version: 6.3.0.0.alpha0+
Build ID: 892a5cfe557edb405ec0037676f02a1c24dd76ec
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 4 Xisco Faulí 2019-01-07 11:01:33 UTC
Regression introduced by:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=4d83c24cdd433d5c63800290e2da6317ae12111c

author	Caolán McNamara <caolanm@redhat.com>	2018-11-02 18:21:20 +0000
committer	Caolán McNamara <caolanm@redhat.com>	2018-11-04 17:33:06 +0100
commit 4d83c24cdd433d5c63800290e2da6317ae12111c (patch)
tree bfd4c863f0f79d40ac1671812fef1976ca4a9c85
parent 628e96ce1fce194b30a5c2912feb8b7ec0328db0 (diff)
reweld SwWordCountFloatDlg
fixing up the bit that failed the last time

Bisected with: bibisect-linux64-6.2

Adding Cc: to Caolán McNamara
Comment 5 Caolán McNamara 2019-01-09 14:31:53 UTC

*** This bug has been marked as a duplicate of bug 122597 ***
Comment 6 Emil Tanev 2019-01-10 14:29:02 UTC
Caolán McNamara, one does not mark an earlier bug a duplicate of a later bug.
Comment 7 Xisco Faulí 2019-01-10 14:30:34 UTC
(In reply to Emil Tanev from comment #6)
> Caolán McNamara, one does not mark an earlier bug a duplicate of a later bug.

Doesn't really matter. Both bugs are fixed now...
Comment 8 Commit Notification 2021-05-31 09:47:15 UTC
Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/9bf1089965672d3825b587cbd888093ac362013e

crashtesting: use after free on export of tdf122510-1.xlsx to ods

It will be available in 7.2.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.