[GNC] Zero value in Report

Patrick James patrickjames14 at comcast.net
Sat May 23 01:32:24 EDT 2026


Question: Does it have a bug number?

This seems to fit:

"regardless of the precision there's an unhandled overflow exception in GncNumeric. We need to address that, all exceptions must be handled by C++ because an unhandled exception calls exit().

The problem that got fixed was the creation of prices with max-precision fractions from Finance::Quote, but it's still conceivable that such a price could be created with a normal transaction, especially in crypto currencies or mutual funds with 10^-9 SCUs. In light of that perhaps the no-round multiplication in pricedb's convert_balance is unwise."
Comment 5 by John Ralls.

https://bugs.gnucash.org/show_bug.cgi?id=797384#c5


> On 05/22/2026 10:09 PM PDT Fred Tydeman <tydeman.fred at gmail.com> wrote:
> 
>  
> I believe this issue (does it have a bug number?) is causing my current
> problem I reported today.
> Is there a way to limit the number of digits recorded for COP currency?
> 
> On Mon, Feb 9, 2026 at 2:55 AM John Ralls <jralls at ceridwen.us> wrote:
> 
> > Fred,
> >
> > I’m able to reproduce the problem thanks to a copy of your file you sent
> > me a couple of years ago for diagnosing a (still open) bug. The problem is
> > that you’ve managed to overflow GnuCash’s number system because the large
> > amount of COP in the TheCut transaction and the high precision of the
> > errant exchange rates. .000247466 is represented in GnuCash as 247466/10E10
> > and the COP value of TheCut is N*10E8/10E10. Reducing the COP exchange
> > rate’s precision by just one digit, to .00024747, prevents the overflow.
> > The overflow is causing a 0 to get passed as one of the currency values.
> > You should have divide by 0 warnings in your trace file.
> >
> > We have int128/int128 computation to avoid exactly that kind of overflow
> > so somewhere that’s getting bypassed. I just need to figure out where.
> >
> > Regards,
> > John Ralls
> >
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


More information about the gnucash-user mailing list