Created attachment 149072 [details] Backtrace The following can only be reproduced with a debug build. - Add a word to an empty document. - Change its style to Heading 2. - Position cursor somewhere in the middle of the word, and add Table of Contents (no need to change anything in the dialog). - Undo the ToC insertion. => LibreOffice crashes with an assertion failure: soffice.bin: /build/sources/libreoffice/sw/source/core/crsr/crossrefbookmark.cxx:58: virtual void sw::mark::CrossRefBookmark::SetMarkPos(const SwPosition&): Assertion `rNewPos.nContent.GetIndex() == 0 && "<sw::mark::CrossRefBookmark::SetMarkPos(..)>" " - new bookmark position for cross-reference bookmark doesn't mark start of text node"' failed. Observed using LO 6.3.0.0.alpha0+ (17e5028044edef2b959b73ce1dbe2c9627d1a799) / Ubuntu 18.04.
Thank you for reporting the bug. I can confirm the bug present. LO crashes when TOC is undone. Version: 6.3.0.0.alpha0+ Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87 CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04 Locale: en-US (en_US); UI-Language: en-US Calc: threaded
(In reply to Durgapriyanka from comment #1) > Thank you for reporting the bug. I can confirm the bug present. LO crashes > when TOC is undone. Thanks for checking! Is this a regular daily build? I did not get a crash after undoing in a non-debug build. If you can, please submit a crash report generated with 6.2.0.3. However, I got a crash even in a release build after hitting undo and redo a couple of times, I'll open a separate bug report on that.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/60ea01af8c57f9b03ee1da1196284fa10025c22c%5E%21 tdf#123313 sw: workaround Undo problem with ToX Update It will be available in 6.3.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.
was caused by cross-reference bookmarks; fixed on master
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-6-2": https://git.libreoffice.org/core/+/3e674fdca08b40bb18131c2490832647796d1301%5E%21 tdf#123313 sw: workaround Undo problem with ToX Update It will be available in 6.2.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.
not really fixed unfortunately, will upload new fixes to gerrit shortly...
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/eca4f30e430bf34dd52f7583f962860012933413%5E%21 tdf#123313 sw: towards fixing ToX Update Undo wrt. CrossReference It will be available in 6.3.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.
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/41df42a8dc758571dd7635c358a09bf412051649%5E%21 tdf#38703 i#42807 tdf#123313 sw: add Undo of ToX Update It will be available in 6.3.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.
as Zdenek Crhonek found, the previous commit only avoided the assert on Undo, but then Redo would still assert fixed now on master fixing basically required implementing the feature requested in bug 38703
Michael Stahl committed a patch related to this issue. It has been pushed to "libreoffice-6-2": https://git.libreoffice.org/core/+/ba9561220a2c87557416b7dcf95294bdf3d693ce%5E%21 tdf#123313 sw: towards fixing ToX Update Undo wrt. CrossReference It will be available in 6.2.4. 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.
Zdeněk Crhonek committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/41f427f9b816061d985da31954fdf414b9a39a3d%5E%21 uitest for bug tdf#123313 It will be available in 6.3.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.
Cheap Ammos provide you best ammo deals on a cheap price. You arrive at the best online ammo website that will help you to find best ammo deals at cheap price. We special deals on Handgun Ammo, Rifle Ammo, Shotgun Ammo. We are providing you the live collective data from different brands. We sell cheap ammo in bulk, box and case quantity. Visit our site today!
Cheap Ammos provide you best ammo deals on a cheap price. You arrive at the best online ammo website that will help you to find best ammo deals at cheap price. We special deals on Handgun Ammo, Rifle Ammo, Shotgun Ammo. We are providing you the live collective data from different brands. We sell cheap ammo in bulk, box and case quantity. Visit our site today! https://www.cheapammos.com/handgun-ammo/5-7x28mm-handgun-ammo/, https://www.cheapammos.com/handgun-ammo/7-62x25mm-tokarev-ammo/, https://www.cheapammos.com/rifle-ammo/45-70/
I use to visit this site often http://amsterdamtoursnow.com/tours-in-amsterdam/amsterdam-tours/ . They share many useful articles such as procedures for fixing the issues of computer-related matters. In the current page, they have shared the method to fix undoing ToC insertion in the middle of the word causes an assertion failure problem.
The test exist, set status to Verified.