[Solved] Format error discovered in … content.xml

Discuss the word processor
Post Reply
cfremantle
Posts: 7
Joined: Wed Apr 07, 2021 8:28 pm

[Solved] Format error discovered in … content.xml

Post by cfremantle »

Hi I'm hoping someone can help - I'm getting
Format error discovered in the file in sub-document content.xml at 2,3304(row,col)
I'd just done a significant revision of my Phd main essay text and it crashed.
Any advice appreciated. I have checked advice in previous posts, followed the paths into appdata and only found 0kb versions.
I thought the autosave was sufficient, but it appears not.
C
Last edited by MrProgrammer on Wed Apr 07, 2021 11:53 pm, edited 4 times in total.
Reason: Tagged ✓ [Solved]
Chris
Open Office 4.1.9
Windows 10 Home
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: read error

Post by Hagar Delest »

Hi and welcome to the forum!

See this query.
There are some instructions to fix such issue. If you don't feel the courage, you'll have to upload the file somewhere so that we can have a look.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
cfremantle
Posts: 7
Joined: Wed Apr 07, 2021 8:28 pm

Re: Read error

Post by cfremantle »

Thanks
I'll have a look at get back if I get stuck
Chris
Chris
Open Office 4.1.9
Windows 10 Home
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Read error

Post by RoryOF »

Please work on a copy of your file, a copy made at system level. If you make a mistake and damage the copy, then there is the original available for expert examination.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
cfremantle
Posts: 7
Joined: Wed Apr 07, 2021 8:28 pm

Re: Read error

Post by cfremantle »

Hi
I'm not confident that I understand what to do and I'm not too proud to ask for help
I'm attaching the file and hoping you can do something.
Chris
Attachments
Fremantle%20Framing%20Essay%202nd%20version%2005042021.odt_1.odt
(68.29 KiB) Downloaded 192 times
Chris
Open Office 4.1.9
Windows 10 Home
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Read error

Post by RoryOF »

Please try the attached file
Attachments
Fremantle_repaired.odt
(68.18 KiB) Downloaded 193 times
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
FJCC
Moderator
Posts: 9248
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Read error

Post by FJCC »

Try this version.
Attachments
Fremantle Framing Essay 2nd version 05042021.odt_1_fjcc.odt
(70.34 KiB) Downloaded 181 times
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
cfremantle
Posts: 7
Joined: Wed Apr 07, 2021 8:28 pm

Re: Read error

Post by cfremantle »

Wow I can't thank you enough! You will get a mention in the Acknowledgements! I had had a good session today and put quite a lot of good words in...
Chris
Chris
Open Office 4.1.9
Windows 10 Home
User avatar
robleyd
Moderator
Posts: 5055
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [Solved] Format error discovered in … content.xml

Post by robleyd »

I thought the autosave was sufficient, but it appears not.
AutoSave isn't what you appear to think it is; it is in fact called Save AutoRecovery Information and saves the information that allows AOO to recover your open documents if AOO is terminated unexpectedly. It DOES NOT replace a normal save, either via Ctrl+S, File | Save or the save icon on your toolbar.

Any important documents should be backed up regularly; you might consider installing the Timestamped backup extension, which will allow you to make multiple, timestamped backups of your document. Note that this must be invoked separately from your normal Save.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.1.2; SlackBuild for 24.2.1 by Eric Hameleers
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Format error discovered in … content.xml

Post by John_Ha »

Tools > Options > Load/Save > Create a backup copy ..., does create a backup copy.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
User avatar
RoryOF
Moderator
Posts: 34586
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: [Solved] Format error discovered in … content.xml

Post by RoryOF »

John_Ha wrote:Tools > Options > Load/Save > Create a backup copy ..., does create a backup copy.
Agreed, John, but it doesn't save multiple backups. For any serious work, and one's thesis, or (God help us!) The Great American Novel, must surely be considered serious works, multiple backups must surely be of importance, at least covering the last few editing sessions, if not continuously from the commencement of the work.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Format error discovered in … content.xml

Post by John_Ha »

Agreed too, but ...

... using AOO automatically to save one backup of the previous version of every file will do 99.9% of what any user needs and stop us having to repair so many files.

If I had my way, it would be enabled by default so as to protect users.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
cfremantle
Posts: 7
Joined: Wed Apr 07, 2021 8:28 pm

Re: [Solved] Format error discovered in … content.xml

Post by cfremantle »

Hi
I've installed the backup you suggest.
What should I do to my document to stop it locking up again?
Chris
Chris
Open Office 4.1.9
Windows 10 Home
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Format error discovered in … content.xml

Post by John_Ha »

cfremantle wrote:What should I do to my document to stop it locking up again?
It's an AOO bug Issue 127745 - Read Error: Format error discovered ... at n,nnnn (row,col) which has now been fixed for release in the next release.

I can force the bug by
  • having Edit > Record changes set ON, and
  • deleting two or more comments where each comment is attached to a range of text
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
cfremantle
Posts: 7
Joined: Wed Apr 07, 2021 8:28 pm

Re: [Solved] Format error discovered in … content.xml

Post by cfremantle »

Hi
Yes I kind of got that reading through, but what I'm wondering is what remedial action to take?
Save it as a doc and use Word?
I can't turn off track changes (supervisors need to see), but if I 'accept changes' on all the deleted notes, or don't delete notes, I can avoid the issue?
Chris
Chris
Open Office 4.1.9
Windows 10 Home
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Format error discovered in … content.xml

Post by John_Ha »

It's actually Issue 128356 - Track Changes and Annotations on text range can cause corruption. Applies to 4.x (all versions?) which has been fixed.
cfremantle wrote:I'm wondering is what remedial action to take?
Switch Edit > Record changes to OFF ..., before deleting any comments attached to a range of text. Then switch it back ON.

Or use LibreOffice where the bug has already been fixed. fred.odt in the bug report is correctly handled by LO but is corrupted by AOO.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
cfremantle
Posts: 7
Joined: Wed Apr 07, 2021 8:28 pm

Re: [Solved] Format error discovered in … content.xml

Post by cfremantle »

Many thanks
Presumably 'undeleting' comments might also work if I needed to keep them?
Chris
Chris
Open Office 4.1.9
Windows 10 Home
John_Ha
Volunteer
Posts: 9583
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK

Re: [Solved] Format error discovered in … content.xml

Post by John_Ha »

cfremantle wrote:Presumably 'undeleting' comments might also work if I needed to keep them?
I don't know. Try it with a test file.
LO 6.4.4.2, Windows 10 Home 64 bit

See the Writer Guide, the Writer FAQ, the Writer Tutorials and Writer for students.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
Post Reply