save bug

Sebastien Millet milletse at club-internet.fr
Wed Sep 17 19:51:41 CDT 2003


Le 17 Sep 2003 10:07:27 -0400, Derek Atkins <warlord at MIT.EDU> écrivait :

> Is there anything that gnucash outputs to the terminal?  (you _HAVE_
> run gnucash from the terminal, RIGHT?)

Hm, not this time, but i managed to reproduce the
problem (after only 1 try) with GnuCash launched from the terminal.

Here is the output with a successful save :

Transactions: Total: 734, Loaded: 740
Accounts: Total: 228, Loaded: 233
Books: Total: 0, Loaded: 0
Commodities: Total: 0, Loaded: 0
Scheduled Tansactions: Total: 6, Loaded: 5
Transactions: Total: 734, Loaded: 740
Accounts: Total: 228, Loaded: 233
Books: Total: 0, Loaded: 0
Commodities: Total: 0, Loaded: 0
Scheduled Tansactions: Total: 6, Loaded: 6
Warning: gnc_file_be_write_to_file: unable to chown filename
/home/sebmil/Mes Documents/GnuCash: Opération non permise

The chown error is normal, because a Samba mount can't change owner.
The saved file has a size of 102937 bytes.
Now, here is the output with a defective save (i just created a new
account and saved the file) :

Transactions: Total: 734, Loaded: 740
Accounts: Total: 229, Loaded: 234
Books: Total: 0, Loaded: 0
Commodities: Total: 0, Loaded: 0
Scheduled Tansactions: Total: 6, Loaded: 5
Transactions: Total: 734, Loaded: 740
Accounts: Total: 229, Loaded: 234
Books: Total: 0, Loaded: 0
Commodities: Total: 0, Loaded: 0
Scheduled Tansactions: Total: 6, Loaded: 6
Warning: gnc_file_be_write_to_file: unable to chown filename
/home/sebmil/Mes Documents/GnuCash: Opération non permise

No difference other than one more account.
The saved file has a size of 81920 bytes.

Just after, i click the "save" button one more time, and this time the
save is successful, with a file of 102982 bytes and this output :

Transactions: Total: 734, Loaded: 740
Accounts: Total: 229, Loaded: 234
Books: Total: 0, Loaded: 0
Commodities: Total: 0, Loaded: 0
Scheduled Tansactions: Total: 6, Loaded: 5
Transactions: Total: 734, Loaded: 740
Accounts: Total: 229, Loaded: 234
Books: Total: 0, Loaded: 0
Commodities: Total: 0, Loaded: 0
Scheduled Tansactions: Total: 6, Loaded: 6
Warning: gnc_file_be_write_to_file: unable to chown filename
/home/sebmil/Mes Documents/GnuCash: Opération non permise

Exactly the same as above.

After 16 tries, i wasn't able to reproduce the problem on a local ext2
partition. Maybe it has something to do with the chown error, like
aborting the save too early when the error occurs (race condition ?).

It may linked to new account creation, since i can easily
trigger the bug by this mean, but not always. One time i just
reconciled an account and saved a corrupted file. Other times i just
loaded good backup and tried "save as" on my main file, which would also
randomly produce corrupted save.

I will keep using GnuCash launched from the terminal and with the main
file on a local ext2 partition, to see if the problem triggers in the
future.

Hope this helps.

> 
> -derek
> 
> Nigel Titley <nigel at titley.com> writes:
> 
> > On Wed, 2003-09-17 at 02:57, Sebastien Millet wrote:
> > > Le Tue, 16 Sep 2003 17:23:07 -0400, Rick Ziegler
> > > <rick at zieglernet.org> écrivait :
> > > 
> > > > Hi Sebastien!
> > > > 
> > > > That sounds eerily similar to 
> > > > http://bugzilla.gnome.org/show_bug.cgi?id=110606
> > > 
> > > This bug report mainly shows that GnuCash is "not reporting save
> > > failure".
> > > I think the problem i have has informations to add since
> > > everytime it fails, the data file is exactly 81920B = 80KB large,
> > > it can't be a hazard, maybe something to investigate in that.
> > > Makes me think of a buffer, say 40KB which is committed to disk
> > > two times successfully and then the save aborts for some reason.
> > 
> > Could I suggest that you add your additional information to bug
> > #110606,
> > so that whoever eventually tackles it has all the information in one
> > place?
> > 
> > Nigel
> > -- 
> > Nigel Titley <nigel at titley.com>
> > 
> > _______________________________________________
> > gnucash-user mailing list
> > gnucash-user at lists.gnucash.org
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> 
> -- 
>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>        Member, MIT Student Information Processing Board  (SIPB)
>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>        warlord at MIT.EDU                        PGP key available
> 




More information about the gnucash-user mailing list