Created attachment 204239 [details] Document to reproduce crash This bug was filed from the crash reporting server and is br-8abb5fd4-128e-403a-a603-ce982d282702. ========================================= Came across this while poking around for a solution to bug 136419. Steps to repro: Using the attached document, right-click on the Text Frame to select it and show the context menu, select "Unfloat Frame Content" Results: Crash Note the frame content has a shape object anchored to the text inside of it. I think the reason for the crash is that pAnchorPage is nullptr for the shape object here. Please see sw/source/core/layout/layact.cxx SwLayAction::FormatContent
This is reproducible in Version: 26.2.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 620(Build:0) CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_FI); UI: en-GB Calc: threaded
Additional information : this is reproducible from current Version: 26.8.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 680(Build:0) CPU threads: 12; OS: Windows 11 X86_64 (build 26200); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_FI); UI: en-GB Calc: threaded up to Version: 24.2.8.0.0+ (X86_64) / LibreOffice Community Build ID: 2a06848352e0ba2e35bc84f8491d06cece32e707 CPU threads: 12; OS: Windows 10.0 Build 26200; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_FI); UI: en-US Calc: threaded while this can't be replicated on much older versions as it doesn't show "unfloat frame content" on the context menu starting from Version: 7.6.8.0.0+ (X86_64) / LibreOffice Community Build ID: 3a0801282a0aabc64a15f9afc3aedeac6226a979 CPU threads: 12; OS: Windows 10.0 Build 26200; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_FI); UI: en-US Calc: threaded
Created attachment 204647 [details] Demonstration of the patch Effort to fix this bug is here: https://gerrit.libreoffice.org/c/core/+/195650
Also crash in Version: 26.2.0.2 (X86_64) Build ID: 750d5fef117734aeeb00d37a069d6c814e9eb8ce CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded