Description: Headings identified by heading styles (heading 1, heading 2, etc.) in Writer appear in the navigator and have been draggable in previous LO versions, allowing you to rearrange document sections. (Very uselful feature for the composition of longer documents.) Now dragging headings in Writer navigator crashes LO Writer. Steps to Reproduce: 1. Create a Writer document with headings using styles (heading 1, heading 2, etc.) 2. Open the Navigator 3. Activate "Content Navigation View" 4. Drag a heading above or below another to move document sections around Actual Results: LO crashes Expected Results: The heading should not crash. Reproducible: Always User Profile Reset: Yes Additional Info: The header should stays in the place where you have dragged it, and the corresponding text section should have moved in the document to its newly assigned place.
I can't confrm with Version: 24.8.1.2 (X86_64) / LibreOffice Community Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6 CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: default; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL threaded So perhaps related to macOS or resolved in actual version. So could you please retest with LO 24.8 or with actual master? Does it also happen, if you use the arrow button to move headings up or down? => NEEDINFO
Created attachment 197031 [details] Sample file for reproducing the bug
Created attachment 197032 [details] Crash log in local master build
I have submitted the following patch that fixes the bug in my local master build: https://gerrit.libreoffice.org/c/core/+/174873 However, I am not familiar with the Writer code that the patch changes so someone familiar with the Writer code should review my patch before it is committed.
Created attachment 197048 [details] Better sample file for reproducing the bug I uploaded the wrong file to attachment #197031 [details] so I have uploaded a smaller file that contains paragraphs set to the Heading 1, 2, and 3 styles.
Jim Raykowski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/dfeefe2e97a5412a445a3a508acb2d9ae05138e5 tdf#163191 Fix crash when dragging headings in Writer navigator 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.
Jim, thanks, it is working on a saved document. Tested with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: dfeefe2e97a5412a445a3a508acb2d9ae05138e5 CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded BUT, it is not working if you open a new document and try to test the bug. After the document is saved, everything works fine.
Jim, should I open a new bug?
(In reply to BogdanB from comment #7) > BUT, it is not working if you open a new document and try to test the bug. > After the document is saved, everything works fine. With the fix, I do not see any crash with a new Writer document on macOS in my local master build. Version: 25.2.0.0.alpha0+ (AARCH64) / LibreOffice Community Build ID: 633fad32611e39620218319327428050405a6b1a CPU threads: 8; OS: macOS 15.0.1; UI render: Skia/Metal; VCL: osx Locale: en-CA (en_CA.UTF-8); UI: en-US Calc: threaded
(In reply to Patrick (volunteer) from comment #9) > (In reply to BogdanB from comment #7) > > BUT, it is not working if you open a new document and try to test the bug. > > After the document is saved, everything works fine. > > With the fix, I do not see any crash with a new Writer document on macOS in > my local master build. > > Version: 25.2.0.0.alpha0+ (AARCH64) / LibreOffice Community > Build ID: 633fad32611e39620218319327428050405a6b1a > CPU threads: 8; OS: macOS 15.0.1; UI render: Skia/Metal; VCL: osx > Locale: en-CA (en_CA.UTF-8); UI: en-US > Calc: threaded I commented the wrong bug, it's another one resolved by Jim. I will mark all my recent comment fom this bug as obsolete, after I will send this reply.
No more crash in Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: dfeefe2e97a5412a445a3a508acb2d9ae05138e5 CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded Crash in (for testing) Version: 24.8.2.1 (X86_64) / LibreOffice Community Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13 CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded
Jim Raykowski committed a patch related to this issue. It has been pushed to "libreoffice-24-8": https://git.libreoffice.org/core/commit/f7b102bc705d3bd98f7d2efa52c24eb6e2573642 tdf#163191 Fix crash when dragging headings in Writer navigator It will be available in 24.8.3. 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.
Jim, I have reported the bug with unsaved document here: https://bugs.documentfoundation.org/show_bug.cgi?id=163448
I have just verified this functionality in Writer 24.8.3.2. Writer no longer crashes. Moving titles with the "Move heading down" and "Move heading up" buttons in the navigator pane is possible. It is also possible to drag the titles freely with click-drag-drop. Version: 24.8.3.2 (AARCH64) / LibreOffice Community Build ID: 48a6bac9e7e268aeb4c3483fcf825c94556d9f92 CPU threads: 12; OS: macOS 14.7.1; UI render: Skia/Metal; VCL: osx Locale: fr-CH (fr_CH.UTF-8); UI: en-US Calc: threaded