Apache OpenOffice (AOO) Bugzilla – Issue 45683
section styles make OOo crash (opening sxw)
Last modified: 2005-03-28 16:12:36 UTC
Writer has crashed during work and I can't open file (error reading, can't load)
Created attachment 24119 [details] I can't open this file - somebody can help ?
does it work with OpenOffice.Org 1.1.4 or the latest milestone? http://download.openoffice.org/680/index.html
It happend during normal work (actualy undo command) Programm crasched and I can't open the file (version 1.1.4 ) I have downloaded latest 1.1.9 but still can't open the file. Help !!!
hi, every sxw document is a simple zip file. file.content.xml contains the text. how many pages is the document. how important?
Thanks for info ;-) It was quite important document and probably it had 31 or 34 pages. I have unziped sxw and content.xml is working - but maybe there is some way to display it with previous formating ? Wich type of import format (or software) should I use to open this file ?? Regards
try and find any XML viewer, analyzer, correction tool. you will have to find the crashing error by looking in the sxw=zip file. any computer guy from university or office might help you with this. first analyze and understand the structure, then modify bit by bit and see what happens. I set this issue to new. Maybe tomorrow a developer will have a look at the file.
@mru: can you maybe help? (I promise i will try to not again create "help! please recover document..")
Created attachment 24174 [details] recovered plain-text
attached you'll find the text of your document. Did not have a closer look yet as to what is wrong (content.xml is the problem) - I just removed all the style-decls. You really should use format-templates instead of hard-formatting...
Well done ;-) I am realy impressed by your help and skill. Cheers Michal
Tracked down the problem to the section styles. These will make OOo crash. I'll attach a version of your document without the section styles but with all other formatting styles.
Created attachment 24177 [details] you'll need to reformat your sections. Other formatting should be included...
(to developers): as mentioned before, the section styles will cause the crash. When these are removed, the document can be opened. One example of such a style is the following: <style:style style:name="Sect2" style:family="section"> <style:properties style:writing-mode="lr-tb"> <style:columns fo:column-count="2"> <style:column style:rel-width="6797*" fo:margin-left="0cm" fo:margin-right="3.099cm"/> <style:column style:rel-width="2499*" fo:margin-left="3.099cm" fo:margin-right="0cm"/> </style:columns> </style:properties> </style:style> I'm nor sure whether this is valid (e.g. setting the margin-left to "0cm" prevents the crash) Even if the values are not correct, OOo should not crash but try to recover the document or if that fails refuse to open the document.
Created attachment 24295 [details] can't open file
Created attachment 24296 [details] can't open file
Thank's for help but it happend again :-( Could you tell me how to recover (attached) file and how to avoid such a problem.? Thanks in advance MIchal
>Thank's for help but it happend again :-( Could you tell me how to recover > (attached) file OK, I'll sketch how I try to recover documents. But to not fill this issue with irrelevant information (the way I recover the document is of no interest for the developers that need to fix this issue) I'll attach my procedure as attachment to this issue. (again removing the section styles did help) > and how to avoid such a problem.? I guess you're not only using OOo to create and/or modify the document, but also some external tools. Try to fix these tools. If you really only use OOo, then try to find out what you did right before the document became corrupted. I played around with sections, but failed to create a broken document. Right now, the only thing that can be improved is that when the document already is broken - OOo should not crash but refuse to open the document or try to repair it. Without the information on how to reproduce the creation of broken documents (what does the user need to do in order to have OOo create a broken document), writing broken documents can hardly be avoided (since you don't know what the problem is and where it could be fixed) - hope this is somewhat understandable..
Created attachment 24316 [details] the recovered document - again fixed by removing the section styles. But in this case the zip container was corrupt as well..
Created attachment 24317 [details] Steps undertaken to recover the document
->mgkmgkmgk: I am closing for now. Reopen the issue if you know how to reproduce it.
closed