Bug 144016 - Using redo that deletes textbox while textbox is active crashes Draw
Summary: Using redo that deletes textbox while textbox is active crashes Draw
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
(earliest affected) release
Hardware: All All
: high critical
Assignee: Not Assigned
Keywords: bibisected, bisected, haveBacktrace, regression
Depends on:
Blocks: Crash
  Show dependency treegraph
Reported: 2021-08-23 07:53 UTC by Sašo Smolej
Modified: 2022-09-06 21:28 UTC (History)
7 users (show)

See Also:
Crash report or crash signature: ["sd::View::SdrEndTextEdit(bool)"]

GDB trace of crash (16.62 KB, text/plain)
2021-09-01 06:14 UTC, Buovjaga

Note You need to log in before you can comment on or make changes to this bug.
Description Sašo Smolej 2021-08-23 07:53:41 UTC
After entering a textbox to edit, if the textbox was deleted and deletion undone right before that, using redo will crash Draw.

Steps to Reproduce:
1. Create new Draw document
2. Create a text box with some text
3. Delete the textbox
4. Undo deletion
5. Enter textbox to edit it (do not do anything)
5. Redo deletion

Actual Results:

Expected Results:
Text box deletion/nothing (nothing to undo in textbox)

Reproducible: Always

User Profile Reset: No

Additional Info:
Crash report: https://crashreport.libreoffice.org/stats/crash_details/e80d3f83-4ad4-4505-bbe9-31be4c50f151
Comment 1 Henrik Palomäki 2021-08-24 12:24:50 UTC
Crash confirmed.

Version: (x64) / LibreOffice Community
Build ID: 0224d859b8a497779611cc15943c017ec42f9b90
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Calc: CL
Comment 2 Xisco Faulí 2021-08-24 14:17:58 UTC
Reproduced in

Version: / LibreOffice Community
Build ID: fbe183bbb05220a4ccc51952445b1797bb498403
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded


Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 5.10; Render: default; 

Locale: en-US (en_US.UTF-8)
Comment 3 Buovjaga 2021-09-01 06:14:34 UTC
Created attachment 174686 [details]
GDB trace of crash

Arch Linux 64-bit
Version: / LibreOffice Community
Build ID: a58b9010b38ca43d4b3a2b30fcd6bec28db1b344
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 31 August 2021
Comment 4 Xisco Faulí 2021-09-01 11:51:08 UTC
Hi Mark,
Since you fixed bug 131634 I thought you might be interested in this issue
Comment 5 Aron Budea 2021-09-06 04:06:04 UTC
This regressed from the same commit Caolán identified in bug 131634 comment 7.

author		Armin Le Grand <alg@apache.org>	2012-08-09 08:42:27 +0000
committer	Caolán McNamara <caolanm@redhat.com>	2013-05-28 15:55:23 +0100

Related: #i120498# Enhanced Undo/Redo and user experience...