Bug 148687

Summary: Crash swlo!SwAnchoredObject::GetObjRectWithSpaces+0x98:
Product: LibreOffice Reporter: Telesto <telesto>
Component: WriterAssignee: Attila Bakos (NISZ) <bakos.attilakaroly>
Status: VERIFIED FIXED    
Severity: normal CC: aron.budea, bakos.attilakaroly, libreoffice, serval2412
Priority: medium Keywords: bibisected, bisected, haveBacktrace, regression
Version: 7.4.0.0 alpha0+   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=147126
https://bugs.documentfoundation.org/show_bug.cgi?id=156603
https://bugs.documentfoundation.org/show_bug.cgi?id=160309
Whiteboard: target:7.5.0 target:7.4.0.2
Crash report or crash signature: Regression By: Attila Bakos (NISZ)
Bug Depends on:    
Bug Blocks: 87740, 103494, 105948    
Attachments: BT with symbols

Description Telesto 2022-04-20 15:24:41 UTC
Description:
Crash swlo!SwAnchoredObject::GetObjRectWithSpaces+0x98:

Steps to Reproduce:
1. Open attachment 173293 [details] (bug 143136 )
2. Select the caption frame
3. Change the anchor to: to paragraph
4. Press Undo

Actual Results:
Crash

Expected Results:
No crash


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 4659fc2f0a7223a89446edff0b77e58758b5edf5
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL Jumbo
Comment 1 Telesto 2022-04-20 15:27:42 UTC
Not with
Version: 7.3.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: becd76743fd7a3ae84404f26b1afb60b923cabb2
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 2 Julien Nabet 2022-04-20 17:07:29 UTC
On pc Debian x86-64 with master sources updated today I don't reproduce the crash (gtk3 or gen rendering).
Comment 3 Telesto 2022-04-20 21:24:20 UTC
Created attachment 179690 [details]
BT with symbols
Comment 4 Telesto 2022-04-20 21:26:28 UTC
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: fbf739198aa7f02975d531521c6525073783c7f1
CPU threads: 8; OS: Mac OS X 12.2.1; UI render: Skia/Metal; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 5 Aron Budea 2022-06-19 02:36:31 UTC
Reproducted using LO 7.4.0.0.beta1+ (cdf48e57da6b8a6a5eb4131340fa2c14be135714) / Ubuntu.

It's a regression from the following commit, bibisected using repo bibisect-linux-64-7.4. Adding CC: to Attila Bakos (NISZ).

https://cgit.freedesktop.org/libreoffice/core/commit/?id=0d29394598db2e336a9982cbb7041ea407b2bf6d
author		Attila Bakos (NISZ) <bakos.attilakaroly@nisz.hu>	2022-02-07 17:09:42 +0100
committer	László Németh <nemeth@numbertext.org>	2022-03-01 17:53:01 +0100

tdf#147126 sw: fix missing as_char anchoring of group textboxes
Comment 6 Attila Bakos (NISZ) 2022-06-20 15:41:40 UTC Comment hidden (obsolete)
Comment 7 Commit Notification 2022-07-11 12:09:50 UTC
Attila Bakos (NISZ) committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/1d3d2a995239c3c71432006cb795324c56a0412a

tdf#148687 tdf#149173 tdf#149546 sw: fix crash with textboxes

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 8 Attila Bakos (NISZ) 2022-07-11 12:53:52 UTC
temporary fixed with the earlier mentioned gerrit patch. Final fix soon...
(The sync call in the porfly have to be moved, what i will do in a follow up commit. Now this issue fixed, but there might be other problems, because that call can be reached during layout calculation, and that can cause problems.)
Comment 9 NISZ LibreOffice Team 2022-07-13 06:54:41 UTC
Verified in:
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a4ab155ae15e9e6d4deb157634f8b86c87fcbde4
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Vulkan; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL
Comment 10 Commit Notification 2022-07-13 07:25:52 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/44eef5f494825a26594ba3d50ef1f3211ae73b9b

tdf#148687 tdf#149173 tdf#149546 sw: fix crash with textboxes

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.