1.7 & 1.6.1-2 cannot co-exist?

Linas Vepstas linas@linas.org
Mon, 16 Jul 2001 19:07:52 -0500


Hi,

Two remarks:
First --
My guess is that version 1.7 wrote out a file which 1.6.1 cannot read.
The 1.6.1 version should have noticed that the file version was
'too new' and given the 'file too new' popup (in FileDialog.c)
Dres and/or Dave should double-check that the file version number got 
bumped with the currency-handling change, and that the xml code 
is generating the 'file-too-new' errror correctly. (a quick scan,
it seems not to generate it at all ??)


Second -- 
I don't know how to put this politely -- using the unstable version
of any kind of software will get you into binds like this, and possibly
irretreivable data loss.  So, um, ask yourself, if you can't get
yourself out of a bind, are you sure you should be playing with these 
toys?

Anyway, I think the workaround to your problem is to start
gnucash on the command-line as

/usr/bin/gnucash /some/file/with-known-1.6-data/in-it.gnc

Otherwise, gnucash will try to read to last file it read, which 
it can't read ... 

--linas




On Tue, Jul 17, 2001 at 09:14:08AM +1000, Jonathan David Wheelhouse was heard to remark:
> On Mon, Jul 16, 2001 at 11:22:41PM +1000, Jonathan David Wheelhouse wrote:
> > Hi
> > 
> > I ran the development version; it said something about DEM or currency
> > (maybe touching the data file); I don't unfortunately remember
> > exactly. It ran OK.
> > 
> > Then when I ran the stable 1.6.1 version - it kept failing with a
> > 'cannot exec /usr/bin/gnucash'.  I realised that maybe some shared
> > libraries (I think gncengine.so) conflicted; there was some missing
> > symbol (function actually, xacc something or other).  So, I did
> > - make uninstall
> > 
> > But now there are still errors with the stable version: after tip of
> > the day appears there is a dialog box popup "error An error occurred
> > while processing <my data file>".  And (since I ran it from an xterm)
> > there is a whole bunch of text filling up the xterm with things like
> > "((tag gnc:account)".
> 
> OK, some more information for you:
> I ran /usr/bin/gnucash --debug; the following snippet is relevant:
> 
> gnucash: [D] "loading system configuration"
> gnucash: [D] "loading user configuration"
> gnucash: [D] "Running functions on hook "startup-hook
>   #<procedure gnc:reldError: sixtp_sax_start_handler: Tag <gnc:template-transactions> not allowed in current context.
> 
> Error: sixtp_handle_catastrophe: parse failed at
> 
> (stack-frame 0x83282e8
>              (parser 0x8327e70)
>              (tag (null))
>              (data-for-children (nil))
>              (data-from-children)
>              (frame-data (nil)))
>   (stack-frame 0x8326e30
>                (parser 0x8327ed0)
>                (tag gnc-v2)
>                (data-for-children (nil))
> 
> And a strace revealed a similar thing:
> write(2, "Error: sixtp_sax_start_handler: ", 32) = 32
> write(2, "Tag <gnc:template-transactions> "..., 64) = 64
> write(2, "\n", 1)                       = 1
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> read(8, "", 4096)                       = 0
> close(8)                                = 0
> munmap(0x40019000, 4096)                = 0
> write(2, "Error: sixtp_handle_catastrophe:"..., 33) = 33
> write(2, "parse failed at \n", 17)      = 17
> 
> I am a programmer but a poor one on Unix (trying to learn) so I don't
> know where to go from here.  Please help.
> 
> Jonathan
> _______________________________________________
> gnucash-user mailing list
> gnucash-user@lists.gnumatic.com
> http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-user

-- 
Linas Vepstas -- linas@gnumatic.com -- http://www.gnumatic.com/