Bug 142715

Summary: Crash when closing document after changing and saving it
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: WriterAssignee: Attila Bakos (NISZ) <bakos.attilakaroly>
Status: VERIFIED FIXED    
Severity: normal CC: bakos.attilakaroly, nemeth, raal, telesto, varga.balazs3, xiscofauli
Priority: medium Keywords: bisected, regression
Version: 7.1.0.3 release   
Hardware: All   
OS: All   
See Also: https://crashreport.libreoffice.org/stats/signature/SfxItemPool::Remove(SfxPoolItem%20const%20&)
Whiteboard: target:7.5.0 target:7.4.0.2 target:7.3.6
Crash report or crash signature: ["SfxItemPool::Remove(SfxPoolItem const &)"] Regression By:
Bug Depends on:    
Bug Blocks: 103100    
Attachments: Example file from Writer

Description NISZ LibreOffice Team 2021-06-08 11:06:09 UTC
Created attachment 172703 [details]
Example file from Writer

Attached document contains a two pages long table and in it some shapes.

Steps to reproduce:
1.	Go to the second page in the table, Insert – Shape – Basic shapes – insert any of them
2.	The shape will appear at the bottom of the first page
3.	Pull the shape down to the second page until its anchor appears in a cell
4.	Right click on the shape and insert a text box
5.	Save this modified file and close the document.

Actual results:
Crash.

Expected results:
No crash.

LibreOffice details:
Version: 7.2.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: 3b57ebb445df8a2bc3d916ea79f8af45e20e4e62
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Also happens in 7.0.0.2 Not yet in 6.4.

Additional Information:
https://crashreport.libreoffice.org/stats/crash_details/e166b0b7-2424-4d25-a0b9-e61f13499f57 
https://crashreport.libreoffice.org/stats/crash_details/ccb88a5f-33b3-4bca-a56a-c11e8fffac3d 

Bibisected with 7.1 to the range:
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=1aa9a2ac5341d457bbdc00b987285203d11333f1..b5cb211f80fd87c109633232cf340ac7969c8648
Comment 1 raal 2021-06-09 04:51:22 UTC
No crash with Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: ec629c5ee22d02f99d66a5cf975ce239876b7f4d
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 2 raal 2021-06-09 04:54:24 UTC
Confirm, missed the last sentence "and close the document"
Comment 3 Attila Bakos (NISZ) 2022-06-30 14:25:40 UTC
fix is there: https://gerrit.libreoffice.org/c/core/+/136674
Comment 4 Commit Notification 2022-07-12 13:14:58 UTC
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/2f93eb49db71c8cbaffbd022cb2b654d56920bda

tdf#142715 sw: fix crash on exit when textbox inserted to table

It will be available in 7.5.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 5 NISZ LibreOffice Team 2022-07-13 07:24:35 UTC
Verified in:
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a4ab155ae15e9e6d4deb157634f8b86c87fcbde4
CPU threads: 8; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 6 Commit Notification 2022-07-13 07:26:21 UTC
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/66fa07371f9db8c1f0d492ccbc493317fae7b3cc

tdf#142715 sw: fix crash on exit when textbox inserted to table

It will be available in 7.4.0.2.

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 2022-07-19 07:46:22 UTC
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/8e75da583db160b15ca55d74b3a2c64b1d034e33

tdf#142715 sw: fix crash on exit when textbox inserted to table

It will be available in 7.3.6.

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.