Description: Every time I try to remove the spaces from this document and resave it, Libreoffice crashes. I have no idea why. Please help. Steps to Reproduce: 1. remove the spaces from the document 2. save it 3.writer libreoffice crashes Actual Results: remove spaces. it crashes after saving. Expected Results: crashed Reproducible: Always User Profile Reset: Yes Additional Info: not crashed
Created attachment 169934 [details] screenshot of the message displayed after it crashes
Created attachment 169935 [details] another screenshot after it crashes
Created attachment 169936 [details] another screenshot after it crashes
the same thing was happening with the 2nd newest release of libreoffice. I downloaded and installed the newer version because I thought it might solve the problem. It didn't. Please let me know how to fix this issue
Without the doc Word or at minimum the crash report, there's nothing that can be done.
(In reply to Julien Nabet from comment #5) > Without the doc Word or at minimum the crash report, there's nothing that > can be done. it says the crash report was sent to the document foundation
(In reply to Will from comment #6) > (In reply to Julien Nabet from comment #5) > > Without the doc Word or at minimum the crash report, there's nothing that > > can be done. > > it says the crash report was sent to the document foundation I will upload the document
Created attachment 169953 [details] The document that I was trying to save when writer crashed.
[Automated Action] NeedInfo-To-Unconfirmed
Hi Will, I was able to replicate this issue in: Version: 7.1.0.3 / LibreOffice Community Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Created attachment 169974 [details] bt with debug symbols On pc Debian x86-64 with master sources updated today, I got an assertion. Just remove 1 space and try to save in docx
Bibisected with linux-64-6.4 to https://git.libreoffice.org/core/commit/d71cf6390a89ea6a4fab724e3a7996f28ca33661 tdf#99602 writerfilter: import subscript into character style and superscripts (aka escapements, but who knows that term). The document certainly has a ton of superscript formatting. Adding Cc: to Justin Luth
My patch is an import patch, so it seems to be exposing a problem on the export side. That said, I don't see everything in Word being considered to be in superscript. I wonder why not, since: <w:docDefaults> <w:rPrDefault> <w:rPr> <w:position w:val="18"/> ... </w:rPr> </w:rPrDefault> </w:docDefaults> Are they making some kind of exception in this case? (There are a few other character properties here, so this is not a unique entry...)
Proposed fix at https://gerrit.libreoffice.org/c/core/+/111403
(In reply to Justin L from comment #14) > Proposed fix at https://gerrit.libreoffice.org/c/core/+/111403 Thanks, I built and verified the fix.
There are two nearly identical methods HasItem and GetItem. GetItem assumes that it MUST be available. See bug 112169 for a similar situation (although I think that one also had numbering as a trigger point as well as docDefaults). A more generic fix is probably to set m_pISet to something like mrExport.m_rDoc.GetAttrPool() in DocxAttributeOutput::DocDefaults.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/76d2a9fd461dde817fbb1c5d4aa830cb2c42b504 tdf#140572 docx export: avoid DocDefault superscript crash It will be available in 7.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.
Thank you all for your help! much appreciated.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-7-0": https://git.libreoffice.org/core/commit/2f26a9c9242b8443f0fb987822404027053a98ff tdf#140572 docx export: avoid DocDefault superscript crash It will be available in 7.0.6. 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.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/2465b0467d57ca325e820f13efeb40e69386b4a1 tdf#140572 docx export: avoid DocDefault superscript crash It will be available in 7.1.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.
(In reply to Justin L from comment #13) > I don't see everything in Word being considered to be in superscript. Not marking as fixed yet since there is a patch in the queue to avoid making everything superscript. https://gerrit.libreoffice.org/c/core/+/111442
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/861ca1f5030f2f6b7fbdc3bb3ded3d11130673ed tdf#140572 writerfilter: ignore position in docDefaults It will be available in 7.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.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-7-0-5": https://git.libreoffice.org/core/commit/24ad70e40191c3f04ab96fc97e6cd80706ee7e31 tdf#140572 docx export: avoid DocDefault superscript crash It will be available in 7.0.5. 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.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-7-1": https://git.libreoffice.org/core/commit/633e72f078f99eb9f27e4ff623111ab634ff6fe1 tdf#140572 writerfilter: ignore position in docDefaults It will be available in 7.1.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.