Created attachment 177642 [details] sample file Issue found by https://gerrit.libreoffice.org/c/core/+/128580 Steps to reproduce: 1. Open sw/qa/extras/ooxmlimport/data/groupshape-relsize.docx or the attached file in a debug build 2. Select all 3. Copy 4. Paste -> Crash Reproduced in Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: 5db574727f4564238a54159a1a0673eaa2884b69 CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3 Locale: es-ES (es_ES.UTF-8); UI: en-US Calc: threaded
Since that is Debug build only, maybe Julien can confirm.
soffice.bin: /home/xisco/libreoffice/sw/source/core/txtnode/atrfld.cxx:713: void SwTextInputField::UpdateTextNodeContent(const rtl::OUString&): Assertion `IsFieldInDoc() && "<SwTextInputField::UpdateTextNodeContent(..)> - misusage as Input Field is not in document content."' failed.
Created attachment 177646 [details] gdb bt On pc Debian x86-64 with master sources updated today, I could reproduce this. I provided a bt + console logs even it can help.
sw/qa/extras/uiwriter/data/tdf77014.odt also hits the same assert
Michael Stahl committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/71e8a947753d359bd5b4d1174f4d6332eaf4a309 tdf#146848 sw: fix assert about input field in undo nodes It will be available in 7.4.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 "libreoffice-7-3": https://git.libreoffice.org/core/commit/c543106985abbaafeae08b7ced11422144f053e4 tdf#146848 sw: fix assert about input field in undo nodes It will be available in 7.3.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.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/2bf59e3b60a0d5c6ebcd4498f5038d6d2e86db62 tdf#146848: sw_uiwriter3: Add unittest It will be available in 7.4.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.
I guess we can close this. @Michael, Thanks for fixing this issue!!