Created attachment 195887 [details] sample document Cannot press delete in a certain position in the document, otherwise Writer will freeze. The position is marked in the uploaded document. There's a "Cannot merge table..." marking, which is related to another bug and is irrelevant to this one.
Repro (the position is found on page 4 in the document). Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 25b61215ca91ec474c46f5ab8af067b4568f0bf9 CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: CL threaded
1. Open the attached file (attachment 195887 [details]) 2. Go to page 6 and press delete
Also with Version: 7.6.3.0.0+ (X86_64) / LibreOffice Community Build ID: 35f19e5cb93ce218787904e99c2bedfd40e725cc 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 threaded No freeze; the delete action is blocked with: Version: 7.0.7.0.0+ (x64) Build ID: 626ea4e62a3e5005fe9825923a1c0c5bdb61cc08 CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win Locale: nl-NL (nl_NL); UI: en-US Calc: CL Deleting the page break first + followed by deleting the line with backspace still doesn't freeze with 7.0.7. It does in master
Something is wrong at opening the file, what are tables on Word, are imported as Frames just after the 'Cannot press Delete here → ' where there is a 'Break of Section' in Word.
Bibisected with linux-64-7.6 to 693ad3aadbf84afa750af73c330fe7e09b38a2e7 tdf#120262 sw floattable, legacy: go outside body only for page frame vert pos
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/5b0256f30ee154edb28b999bc4faba2453fc32b8 tdf#162507 sw floattable: fix not wanted join of two different split anchors It will be available in 25.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.
Writer layout doesn't support anchoring multiple, multi-page floating tables to the same text node. So probably the best way to prevent the hang is to make sure the UI doesn't allow creating such a model, similar to what the DOCX import does. This is done now, very similar to what Word does. (Simply nothing happens on the problematic delete, instead of hanging.)
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-24-8": https://git.libreoffice.org/core/commit/5d8ca53e218ec96f29d66e483541b7304da169cd tdf#162507 sw floattable: fix not wanted join of two different split anchors It will be available in 24.8.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.