Description: All ODG documents created with v 5.4.1 or 5.3.6 will not open. Trying to open files results in error: "Read Error. Format error discovered in the file in sub-document content.xml at position 2,4256(row,col)." Steps to Reproduce: 1.Open Libre Office 2.When presented with Recent Files thumbnails, click on a thumbnail to open document Actual Results: Document does not open. Window appears with error: "Read Error. Format error discovered in the file in sub-document content.xml at position 2,4256(row,col)." Expected Results: Open the document. Reproducible: Always User Profile Reset: No Additional Info: Opened Libre Office in Safe Mode. Problem not resolved. Attempting to open documents yielded same result. User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Created attachment 136329 [details] screenshot of error
@Neil : no repro with Version: 5.4.1.2 Build ID: ea7cb86e6eeb2bf3a5af73a8f7777ac570321527 CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; Locale: fr-FR (fr_FR.UTF-8); Calc: group when attempting to open a simple ODG file made in LO536 containing some of the pre-made shapes from the draw objects menu. We need more information, and preferably a document that shows the issue or detailed steps as to what the ODG file contains.
@Neil : the XML error you report indicates that the file was somehow corrupted when it was saved, or at least when its last state before some catastrophic event (power outage, dodgy RAM, LO crash, etc) was saved from memory to disk or to a remote file share. What were the specific conditions under which these ODG files were saved ? - network / cloud save ? - USB key or external storage save ? If you unzip the ODG file and examine the content.xml file at the line and point indicated in the error message, what do you see ?
Created attachment 139022 [details] This one is the one modified using the zip/xml technique This one is the one modified using the zip/xml technique
Created attachment 139023 [details] This is the original file after copying the content from LibreOffice Draw This is the original file after copying the content from LibreOffice Draw
Hope that both attachments would be helpfull.
(In reply to César Biosca. from comment #5) > Created attachment 139023 [details] > This is the original file after copying the content from LibreOffice Draw > > This is the original file after copying the content from LibreOffice Draw This file refuses to open for me in Version: 5.4.5.1 Build ID: 79c9829dd5d8054ec39a82dc51cd9eff340dbee8 Threads CPU : 4; OS : Mac OS X 10.13.3; UI Render : par défaut; Locale : fr-FR (fr_FR.UTF-8); Calc: group I just get a grey document window in which the file attempts to load, and this then disappears without any error message. If I try to open the same file in Version: 5.3.7.2 Build ID: 6b8ed514a9f8b44d37a1b96673cbbdd077e24059 Threads CPU : 4; Version de l'OS :Mac OS X 10.13.3; UI Render : par défaut; Moteur de mise en page : nouveau; Locale : fr-FR (fr_FR.UTF-8); Calc: group I get the following message : Erreur de lecture. Erreur de format dans le fichier du sous-document content.xml à la position 2,4174(row,col).
I get the same error message in LO330, so the problem lies with the particular ODT document and not LibreOffice in general. Something you have done, or something which has happened to your computer, has caused this file to become corrupt. The way to fix that is to unzip the file and correct it at the location indicated in the error message. Several possible reasons are known that might cause these problems: - reading/writing to a USB or external disk - from my own experience, MacOS isn't very reliable at maintaining multiple USB connected storage devices correctly and will sometimes disconnect them for no apparent reason - reading/writing to a network storage that suddenly goes offline (e.g. power cut, network connection down, etc) Whatever the case, the files have been corrupted. In theory, they can be repaired by correcting/removing the additional XML tags that have been inserted erroneously.
Created attachment 147980 [details] Repaired file The original file is corrupt. It has parts '="nonzero"' where it should be 'svg:fill-rule="nonzero"'. I have repaired that. I think, that there is no error in LibreOffice and the issue should be closed. In case a reproducible way to create such damaged file is found, it can be reopened.