CRIT log when reading file with new name for the first time

John Ralls jralls at ceridwen.us
Sun Jan 4 15:28:17 EST 2015


> On Jan 4, 2015, at 12:07 PM, Sébastien de Menten <sdementen at gmail.com> wrote:
> 
> I noticed in the log /tmp/gnucash.trace that whenever I rename a gnucash
> sqlite file and I open it in gnucash, Gnucash leaves a CRITical warning in
> it:
> 
> * 21:02:56  CRIT <GLib> g_key_file_free: assertion 'key_file != NULL' failed
> * 21:02:56  INFO <gnc.app-utils> [gnc_state_get_current] No pre-existing
> state found, creating new one
> 
> Reading the line just after (that is only there when the CRIT message is
> there), I guess it is because gnucash does not find the file in its
> ~/.gnucash/books folder.
> Could someone confirm it is not that a CRITical  warning ?

That’s a rather rude characteristic of Glib. It’s common to use “g_return_if_fail” or “g_return_val_if_fail” to check invariants at the beginning of functions, but they log a CRIT message in the process when the message is more reasonably a INFO or DEBUG in most cases.

So yeah, you can ignore it.

Regards,
John Ralls





More information about the gnucash-devel mailing list