Gnucash 1.8.4: Crash with "could not allocate -147 bytes"

Paul Dickson dickson at permanentmail.com
Sun Jun 15 01:22:13 CDT 2003


I have a gnucash chart-of-account covering all of 2002 up to the present.
I was splitting this into two chart-of-accounts (finally closing 2002),
when I tried to delete a split from a record.  The result was:

>-------

GLib-WARNING **: g_printf_string_upper_bound(): unable to handle `
' while parsing format
 
GLib-ERROR **: could not allocate -147 bytes
aborting...
Aborted (core dumped)
>-------

This was initially under 1.8.1 from RH9.  Today I downloaded the RH8 SRPM
and rebuilt 1.8.4 for RH9.  I still have the same problem.

I was able to get around the problem with emacs by deleting the specific
split and adjusting the remaining values of that record.

I still have the original chart-of-accounts file, if it will help with
debugging.

Below is the record/transaction in question.  The third split is the one I
was deleting.

<gnc:transaction version="2.0.0">
  <trn:id type="guid">7767c2ce7d892e54b87a30886b60b52d</trn:id>
  <trn:currency>
    <cmdty:space>ISO4217</cmdty:space>
    <cmdty:id>USD</cmdty:id>
  </trn:currency>
  <trn:num>831440</trn:num>
  <trn:date-posted>
    <ts:date>2002-11-15 00:00:00 -0700</ts:date>
  </trn:date-posted>
  <trn:date-entered>
    <ts:date>2002-11-16 11:07:24 -0700</ts:date>
  </trn:date-entered>
  <trn:description>John Doe</trn:description>
  <trn:splits>
    <trn:split>
      <split:id type="guid">218cc0db7d93b2a1f3ff6a0713aa6117</split:id>
      <split:memo>Check #7971</split:memo>
      <split:reconciled-state>n</split:reconciled-state>
      <split:value>5500/100</split:value>
      <split:quantity>5500/100</split:quantity>
      <split:account type="guid">e08090106f89a72b98f93ba8ac258ca1</split:account>
    </trn:split>
    <trn:split>
      <split:id type="guid">44b2be7305ef6004f63224550f34145c</split:id>
      <split:memo>Membership</split:memo>
      <split:reconciled-state>n</split:reconciled-state>
      <split:value>-2800/100</split:value>
      <split:quantity>-2800/100</split:quantity>
      <split:account type="guid">0b1ac8763ff2f561643e3119b7fdaf68</split:account>
    </trn:split>
    <trn:split>
      <split:id type="guid">59870124ca0da7837c48a2f1f1da45c4</split:id>
      <split:memo>Membership 25%</split:memo>
      <split:reconciled-state>n</split:reconciled-state>
      <split:value>-700/100</split:value>
      <split:quantity>-700/100</split:quantity>
      <split:account type="guid">7890b507cfcdd18233899fdb0c2887eb</split:account>
    </trn:split>
    <trn:split>
      <split:id type="guid">f533d277679f57fd1f2eacd735aef679</split:id>
      <split:memo>Sky &amp; Telescope Magazine</split:memo>
      <split:reconciled-state>n</split:reconciled-state>
      <split:value>-2000/100</split:value>
      <split:quantity>-2000/100</split:quantity>
      <split:account type="guid">9077239e8d0a1c3761198ba5aeb4aa27</split:account>
    </trn:split>
  </trn:splits>
</gnc:transaction>

Please cc: me about any queries regarding the chart-of-accounts, as I
might not see the entries from this mailing list immediately.

	-Paul Dickson


More information about the gnucash-user mailing list