Page 1 of 1

[Solved] Read-Error in content.xml for Impress documents

Posted: Tue Sep 27, 2022 7:29 am
by JaredB
Good evening,

I created a series of seven OpenOffice Impress documents for a coaching course. 5 of the 7 of the them became corrupted with the error "Read-Error. Format error discovered in the file in sub-document content.xml at position 2,57240(row,col)." The specific error number is different for each document. Each document is only ten slides long, but they contain coaching diagram images. Unfortunately the documents are too large to upload here.

Is there anything that I can do to recover the documents? And why would it only change five of the seven when they are all largely the same.

Thank you.

 Edit: Changed subject, was Read-Error 
Make your post understandable by others 
-- MrProgrammer, forum moderator 

Re: Read-Error

Posted: Tue Sep 27, 2022 7:59 am
by Hagar Delest
Hi and welcome to the forum!

Plenty of topics about that here. Try: [Tutorial] Format error discovered in sub-document.

Re: Read-Error

Posted: Tue Sep 27, 2022 10:53 am
by John_Ha
This is a bug in AOO, but not in LO, which corrupts the file when
  • Edit > Changes ..., is set to RECORD, and
  • a user deletes a range of text which includes two comments each of which is attached to a range of text.
Other sequences may also cause the problem but the above procedure is re-produceable.

See Issue 128356 - Track Changes and Annotations on text range can cause corruption. Applies to 4.x (all versions?)

I therefore strongly recommend users who use tracked changes to move to LibreOffice.

Re: Read-Error

Posted: Tue Sep 27, 2022 12:52 pm
by robleyd
This may not be the case with an Impress document which is what the OP has problems with.

Re: Read-Error

Posted: Tue Sep 27, 2022 1:06 pm
by John_Ha
JaredB wrote: Tue Sep 27, 2022 7:29 am Unfortunately the documents are too large to upload here.
Upload them to a file share site such as mediafire, Dropbox or Google Drive.
JaredB wrote: Tue Sep 27, 2022 7:29 am Is there anything that I can do to recover the documents? And why would it only change five of the seven when they are all largely the same.
They can almost certainly be recovered. We don't know all the ways in which the bug is triggered but it is definitely a bug in AOO.
robleyd wrote: Tue Sep 27, 2022 12:52 pm This may not be the case with an Impress document which is what the OP has problems with.
True. The Writer method is reproduceable but, as I said, "Other sequences may also cause the problem". The buggy code is identical for Writer and Impress.

Re: Read-Error

Posted: Tue Sep 27, 2022 7:24 pm
by JaredB

Re: Read-Error in content.xml for Impress documents

Posted: Tue Sep 27, 2022 8:53 pm
by cwolan
Could you check if any of the files available at this linkresemble the lost slide set?

Re: Read-Error in content.xml for Impress documents

Posted: Tue Sep 27, 2022 8:57 pm
by JaredB
When shared, the files contain the text content, but lose all formatting and images. As soon as you try to view it as a slide it crashes.

Re: Read-Error in content.xml for Impress documents

Posted: Tue Sep 27, 2022 10:40 pm
by John_Ha
Try this repaired file. It opened OK for me in AOO and worked as a presentation. Note that I added qqqqq to some text so as to find the error in the file - you need to remove it.

The error was one I have not seen before where the attribute draw:mirror-vertical was repeated, the first time being FALSE, the second being TRUE. As draw:mirror-horizontal was set to FALSE, and as the TRUE was the second instance, I deleted the TRUE instance. YOu will need to check your presentation still looks OK.

Re: Read-Error in content.xml for Impress documents

Posted: Tue Sep 27, 2022 11:01 pm
by JaredB
The repaired file is perfect. Thank you so much.

Re: Read-Error in content.xml for Impress documents

Posted: Tue Sep 27, 2022 11:37 pm
by John_Ha
I'll do the others as well if no-one beats me too it :super:

Re: Read-Error in content.xml for Impress documents

Posted: Wed Sep 28, 2022 12:32 am
by John_Ha
These all had the identical error and now work for me: (2) Role of HM.odp, (3) Role of CD.odp, (4) Role of FB.odp and (5) Role of Goalkeeper.odp

All opened with AOO and the presentations worked.

Showing that a problem has been solved helps others searching so, if your problem is now solved, please view your first post in this thread and click the Edit button (top right in the post) and add [Solved] in front of the subject.

Re: [Solved] Read-Error in content.xml for Impress documents

Posted: Wed Sep 28, 2022 5:41 am
by JaredB
I can't thank you enough.