Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - "Error writing file"
"Error writing file"
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
Heywood
Red Pill


Joined: Dec 26, 2004
Posts: 7

PostPosted: Sat Nov 07, 2009 6:17 am    Post subject: No joy

Sorry guys, I left a Writer document open for 5 days and just tried saving, and I get the same error as before (Error saving the document [document name]: Error writing file.).

FWIW, the about box says NeoOffice 3.0.1 Patch 0 (but not Patch 0 Test 3). It seems unlikely, but is it possible I originally installed the patch incorrectly (or not at all)? I just re-ran the P0-T3 installer, though, and the info in the about box remains unchanged.

Anyway, if there's any more debug info I can produce to help hunt this down, please let me know.
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Sat Nov 07, 2009 9:13 am    Post subject:

The About box never shows patch-xx-test-nn numbers, only the patch-xx level that the tests then sit on top of.

- padmavyuha
Back to top
narf
The Anomaly


Joined: Jan 21, 2007
Posts: 1075

PostPosted: Sat Nov 07, 2009 9:29 am    Post subject: Re: No joy

Heywood wrote:
Sorry guys, I left a Writer document open for 5 days and just tried saving, and I get the same error as before (Error saving the document [document name]: Error writing file.).


I left 3 documents open for 4 days, one each of Writer, Calc , Impress, and also got the same error message.

-- fran
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Nov 07, 2009 9:44 am    Post subject: Re: No joy

narf wrote:
I left 3 documents open for 4 days, one each of Writer, Calc , Impress, and also got the same error message.


Fortunately, since narf ran this test on a machine we both have access to, I took a look at that machine's /tmp directory after narf's save attempt failed. Sure enough, several of the temporary files created by the OpenOffice.org code have been deleted.

From this, I have to conclude that there is some unknown OpenOffice.org code orunknown Mac OS X process that doing the temporary file deletion as my last test patch properly updated the access time (which is what Mac OS X's /etc/periodic scripts look at) on each temporary file.

Since updating the access time on temporary files did not work, my next approach will be to search for the OpenOffice.org code that fails when its temporary file has been deleted and change that code to create a new temporary file if the current one has been deleted.

I will post again when I have a new test patch ready.

Patrick
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Sat Nov 07, 2009 12:46 pm    Post subject:

I think that I have found the OpenOffice.org code that fails when saving if a temporary file has been deleted and I have changed the OpenOffice.org code to create a new, zero length temporary file in such cases. I have removed my previous "access time update" fix since it does not fix the bug and in this test patch I have replaced that code with my latest OpenOffice.org code modifications.

Can anyone install the test patch and tell us if the fix works for you? To test the fix, you will need to create and save and .odt, .ods, or .odp file and leave that file open for at least 4 days. Then, after 4 days (Wednesday, 11 November 2009 if you start testing today), change some of the content in the file and try to save it. If it saves OK, then the fix works. Note that you can open, edit, save, and close other files. You just need to keep on file open for 4 days to test the fix:

Intel:
http://joe.neooffice.org/test/NeoOffice-3.0.1-Patch-0-Test-7-Intel.dmg
http://joe.neooffice.org/test/NeoOffice-2.2.6-Patch-0-Test-5-Intel.dmg

PowerPC:
http://joe.neooffice.org/test/NeoOffice-3.0.1-Patch-0-Test-7-PowerPC.dmg
http://joe.neooffice.org/test/NeoOffice-2.2.6-Patch-0-Test-5-PowerPC.dmg

Patrick
Back to top
rays
The Anomaly
(earlier version)


Joined: Sep 23, 2004
Posts: 475
Location: Geneva, Switzerland

PostPosted: Wed Nov 11, 2009 1:19 am    Post subject:

Hi Patrick,

I'm just starting a 4-day test today. Hope to have result for you on Monday.

Ray

_________________
Ray Saunders
World Scout Bureau
Back to top
narf
The Anomaly


Joined: Jan 21, 2007
Posts: 1075

PostPosted: Wed Nov 11, 2009 10:15 am    Post subject:

Good news, I just completed a 4 day with NeoOffice 3.0.1 Patch 0, Test Patch 7 and I was able to save to documents that had been left opened. I tested Writer, Calc and Impress.

First I opened the /Applications/Utilities/Terminal application and ran the following command to check the /tmp directory for files created by the OpenOffice.org code:
Code:
ls -l /tmp/sv*

It did not return anything which showed that the temporary files created by the OpenOffice.org code had been deleted.

I made changes to an open document and reran the command and received the following output:

Code:
ls -l /tmp/sv*
total 0
-rw-------   1 franb  wheel  0 Nov 11 09:09 svh6o.tmp

A new temporary file was created.

-- fran
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.