gnucash keeps dying

Derek Atkins warlord at MIT.EDU
Thu Aug 5 11:52:32 EDT 2004


"Robert E. Harvey, M.D." <rharvey at cox-internet.com> writes:

> OK,  that worked!

Great.

> 1.  I get these messages when starting gnucash f om the command line:
>
> user at dragonfly user $ /usr/bin/gconfd-1 &
> [1] 10162
> user at dragonfly user $ gnucash
>  ** CRITICAL **: file gnc-transaction-xml-v2.c: line 443
> (set_tran_date): assertion `tm' failed.
>
> What gives with the "**CRITICAL..." message?

It means you have a broken transaction in your data file that's missing
a timestamp (or has an invalid timestamp).  We don't know what causes
this to happen -- most likely something in the 1.6->1.8 upgrade path
but it's unclear at this time.

What you could do is modify src/backend/file/gnc-transaction-xml-v2.c
around line 443 and in the case of an error print out the transaction
guid.  Then you could search your XML file and find the culprit.

> 2.  If I try to run gnucash from the menu (after the install on my
> Gentoo system) gnucash dies if I try to  use any report or help tool.
> So I guess I'll have to write a little shell script like this:
>
> #!/bin/bash
> /usr/bin/gconfd-1
> gnucash
>
> and attach it to the the menu.  (seems a little tedious).  After a
> little web search on gconfd,  it appears to be a work in progress as
> an  app that can be used with or without Gnome, but must be used with
> gtk.  That fact underscores the point (to me, anyway) that Gnucash is
> pretty much on the cutting edge of programming technology (I remember,
> when as a Red Hat user, I had tons of trouble trying to get Gnucash
> properly compiled from source with all those elusive dependencies)

Yep.  This issue should go away once we finish the g2 port...  The
real culprit here is gtkhtml.  Gnucash does not call gconfd itself.
This also explains why it dies when you try to run a report, because
that's when gtkhtml actually executes.

> Thanks for your help.

You're welcome.

-derek

> Derek Atkins wrote:
>
>>First, please cc gnucash-user on all replies.
>>
>>Second, try running gconfd-1 in the background.
>>
>>This is all in the FAQ.
>>
>>-derek
>>
>>"Robert E. Harvey, M.D." <rharvey at cox-internet.com> writes:
>>
>>
>>
>>>I just ran /usr/bin/gconfd-1. It ran about 10 minutes before returning
>>>to the command line. Upon starting gnucash, I still get the same error
>>>message:
>>>
>>>** CRITICAL **: file gnc-transaction-xml-v2.c: line 443
>>>(set_tran_date): assertion `tm' failed.
>>>
>>>and gnucash dies when trying to access the help menu f rom within the
>>>program.
>>>
>>>Anything else to try?
>>>
>>>Thanks.
>>>
>>>Derek Atkins wrote:
>>>
>>>
>>>
>>>>Please read what I wrote.  gconfd-2 != gconfd-1.
>>>>
>>>>-derek
>>>>
>>>>"Robert E. Harvey, M.D." <rharvey at cox-internet.com> writes:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>Derek,
>>>>>I can find nothing useful in the FAQ to help solve this problem.
>>>>>gconfd-2 is running on my gentoo system.  I have removed  all
>>>>>scheduled transactions and the probem is still there.  I'll pay you
>>>>>for your time if you'll help me solve this problem.
>>>>>
>>>>>Bob
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>on startup and trying to access the report writer still results in
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>gnucash dying.  Has anyone had experience with this error message
>>>>>>>and gnucash dying.  And, more importantly, how do I fix it?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>This is described in the FAQ.  You need to run gconfd-1.
>>>>>

-- 
       Derek Atkins                 617-623-3745
       derek at ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant


More information about the gnucash-user mailing list