Bug 130629 - Crash in Writer when inserting shape again after undoing a previous insertion
Summary: Crash in Writer when inserting shape again after undoing a previous insertion
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.1.0 target:7.0.4 target:7.2.0
Keywords: haveBacktrace
Depends on:
Blocks: Undo-Redo Shapes Crash
  Show dependency treegraph
 
Reported: 2020-02-12 21:10 UTC by Aron Budea
Modified: 2021-02-17 19:08 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Backtrace (37.30 KB, text/plain)
2020-02-12 21:10 UTC, Aron Budea
Details
tdf130629_attempt.patch: only works for gdb (474 bytes, patch)
2020-03-23 18:29 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2020-02-12 21:10:46 UTC
Created attachment 157831 [details]
Backtrace

Crash only happens when the shape is inserted with the single click method, by Ctrl-clicking on the toolbar button.

- Start a new document.
- Add a shape by Ctrl-clicking on the basic shape icon on the toolbar.
- Press undo until there are no more undo steps (takes 2 undos for some reason).
- Click on the basic shape icon on the toolbar (this just unselects the button).
- Ctrl-click on the basic shape icon on the toolbar.

=> Crash.
Attaching backtrace.

Observed using LO 7.0.0.0.alpha0+ (d41d7ecb60fb38204fafcb1aa4595992721855e6), 3.3.0 / Ubuntu.
Comment 1 Justin L 2020-03-23 18:29:06 UTC
Created attachment 158902 [details]
tdf130629_attempt.patch: only works for gdb

Outside of GDB, it crashes even when mpImpl has a value.
Comment 2 Jim Raykowski 2020-11-16 17:15:49 UTC
I noticed this while poking around bug 34838 and was going to report but found it has already been reported. Here is a patch to fix what seems to be the cause of the crash:
https://gerrit.libreoffice.org/c/core/+/105955
Comment 3 Jim Raykowski 2020-11-16 17:16:59 UTC
(In reply to Jim Raykowski from comment #2)
> I noticed this while poking around bug 34838 and was going to report but

poking around bug 34828
Comment 4 Xisco Faulí 2020-11-16 17:39:53 UTC
(In reply to Jim Raykowski from comment #2)
> I noticed this while poking around bug 34838 and was going to report but
> found it has already been reported. Here is a patch to fix what seems to be
> the cause of the crash:
> https://gerrit.libreoffice.org/c/core/+/105955

Hi Jim,
Thanks for the fix. UItest submitted here: https://gerrit.libreoffice.org/c/core/+/105956
Comment 5 Commit Notification 2020-11-17 18:31:39 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/5110cca39cc55c8977b81f7b09873e626144b29b

tdf#130629 Don't add object insert undo twice

It will be available in 7.1.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.
Comment 6 Commit Notification 2020-11-18 07:38:20 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/f7c8535a1e0bf2deda6c5f6d8d8469f5ab7fa07f

tdf#130629: sw: Add UItest

It will be available in 7.1.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.
Comment 7 Commit Notification 2020-11-18 10:29:00 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "libreoffice-7-0":

https://git.libreoffice.org/core/commit/46d6effe3373a39938bde57b43dc45c4a30ce33f

tdf#130629 Don't add object insert undo twice

It will be available in 7.0.4.

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.
Comment 8 László Németh 2021-02-03 10:24:52 UTC
@Áron: Is it possible, that Jim's commit has fixed this issue?
Comment 9 Aron Budea 2021-02-03 12:10:23 UTC
Indeed, it certainly looks fixed, the bug report was just forgotten about. Thanks for the fix, Jim!
Comment 10 Xisco Faulí 2021-02-08 11:06:22 UTC
UITest added. Setting to VERIFIED
Comment 11 Commit Notification 2021-02-17 19:08:21 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/48aac3c1d06994d17f20dbdc2ad8add722192ec3

tdf#130629: sw: Move UItest to CppUnitTest

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.