2021-09-11 GnuCash IRC logs

00:16:58 *** FH_thecat has quit IRC
00:22:11 *** Mechtilde has joined #gnucash
00:29:08 *** David has quit IRC
00:29:27 *** David has joined #gnucash
01:12:48 *** frakturfreak has quit IRC
01:13:05 *** sbluhm has joined #gnucash
01:27:31 *** frakturfreak has joined #gnucash
01:28:04 *** sbluhm has quit IRC
01:52:47 *** fell has quit IRC
01:54:06 *** fell has joined #gnucash
01:54:07 *** ChanServ sets mode: +o fell
02:07:10 *** raeburn has quit IRC
02:11:04 *** Mechtilde has quit IRC
02:12:39 *** David has quit IRC
02:13:22 *** David has joined #gnucash
03:13:33 *** bertbob has joined #gnucash
03:13:34 *** ChanServ sets mode: +v bertbob
03:14:22 *** fabior has joined #gnucash
03:37:01 *** Mechtilde has joined #gnucash
03:49:55 <chris> about last reverted commit: it plugs leak but causes double-free somewhere else. it's safest to revert completely.
03:51:23 *** Mechtilde has quit IRC
04:05:24 *** Mechtilde has joined #gnucash
04:15:09 *** chris has quit IRC
04:26:53 *** Mechtilde has quit IRC
04:27:11 *** Mechtilde has joined #gnucash
04:30:50 *** gjanssens has joined #gnucash
04:30:50 *** ChanServ sets mode: +o gjanssens
04:30:57 <gjanssens> .
04:43:43 *** User has joined #gnucash
04:48:52 *** Mechtilde has quit IRC
04:51:30 *** fabior has quit IRC
04:55:55 *** Mechtilde has joined #gnucash
04:58:57 *** Mechtilde has quit IRC
05:03:35 *** Mechtilde has joined #gnucash
05:11:00 *** Mechtilde has quit IRC
05:12:50 *** Mechtilde has joined #gnucash
05:13:46 *** fabior has joined #gnucash
05:23:58 *** FH_thecat has joined #gnucash
05:28:06 *** fabior has quit IRC
05:29:41 *** Hrisfur has joined #gnucash
05:29:42 *** ChanServ sets mode: +v Hrisfur
05:58:47 *** chris has joined #gnucash
05:58:47 *** ChanServ sets mode: +v chris
06:03:18 *** Mechtilde has quit IRC
06:17:28 *** Mechtilde has joined #gnucash
06:20:11 *** Aussie_matt has joined #gnucash
06:36:09 *** Hrisfur has quit IRC
06:36:13 *** Hrisfur has joined #gnucash
06:36:13 *** ChanServ sets mode: +v Hrisfur
06:53:10 *** Mechtilde has quit IRC
06:53:31 *** Mechtilde has joined #gnucash
07:03:10 *** Mechtilde has joined #gnucash
07:23:57 *** Bambuzel has quit IRC
07:25:16 *** Bambuzel has joined #gnucash
07:25:16 *** ChanServ sets mode: +v Bambuzel
07:25:28 *** Bambuzel has quit IRC
07:31:15 <Hrisfur> I've been trying to add the following to my custom report. Calculate for a given account how much was the income and expence in a certain period. I expected that I could somehow intersect transactions (or splits) between the given account, and all income accounts. But can't find how to do this.
07:31:15 <Hrisfur> I've also looked at the cash-flow barchart report (https://github.com/Gnucash/gnucash/blob/maint/gnucash/report/reports/standard/cash-flow.scm) which kinda does this but I have difficulty to understand how it exactly achieves this. My results should be simpler as I'm not interested on the income and expence on intervals. Only over the whole period. I think that the interesting stuff happens around line 249. But I cannot find the 'cash-flow-calc-money-in-
07:31:15 <Hrisfur> calles.
07:31:58 <Hrisfur> ahh the message was to long, and i made a mistake in the url. Let me try again
07:33:37 <Hrisfur> I've looke at the cash-flow barchart report (), which does something similar to what I want. Especially line 149 seems interesting https://github.com/Gnucash/gnucash/blob/d0f7daf4cfd02db17c03e3946e145a13760cd3d0/gnucash/report/reports/standard/cashflow-barchart.scm#L249 but I do not understand where this function comes from and how it is defined.
07:42:15 *** flips has joined #gnucash
07:42:16 *** ChanServ sets mode: +v flips
07:42:37 *** Hrisfur has quit IRC
07:51:02 <chris> @tell hrisfur reports/cash-flow-calc.scm
07:51:02 <gncbot> chris: The operation succeeded.
07:51:07 <chris> hmm
07:57:33 *** Mechtilde has quit IRC
08:11:43 *** Mechtilde has joined #gnucash
08:29:54 <warlord> chris, maybe set it to NULL after you free?
08:37:02 <chris> warlord: it's not a double-free, it's a weirdness in qof_query_add_guid_match which collects utf8 strings but the guid char* shows as "�i0VUU"
08:38:44 *** Hrisfur has joined #gnucash
08:38:44 *** ChanServ sets mode: +v Hrisfur
08:39:18 <chris> here's the swigged function with a %typemap(freearg) logger https://pastebin.com/raw/JbMK3E4r - you'll see arg2 is gnc_query_scm2path(s_1) which returns a GSList of char* but the char* in this case is weird
08:41:56 <Hrisfur> chris: Thanks for the advice, I should have expected that it was imported from a different script when it did not appear inside the report itself.
08:41:56 <gncbot> Hrisfur: Sent 50 minutes ago: <chris> reports/cash-flow-calc.scm
08:41:57 <gncbot> Hrisfur: Sent 50 minutes ago: <chris> reports/cash-flow-calc.scm
09:04:23 *** Hrisfur has quit IRC
09:04:28 *** Hrisfur has joined #gnucash
09:04:28 *** ChanServ sets mode: +v Hrisfur
09:35:10 *** Aussie_matt has quit IRC
09:48:12 *** Pegasus_RPG has joined #gnucash
09:50:42 *** David has quit IRC
09:51:01 *** David has joined #gnucash
09:51:55 *** gncbot has joined #gnucash
09:58:44 *** Pegasus_RPG has quit IRC
09:58:46 *** Pegasus_RPG has joined #gnucash
10:07:06 *** Jimraehl1 has joined #gnucash
10:07:36 *** Jimraehl1 has quit IRC
10:08:33 *** Mechtilde has quit IRC
10:09:54 *** andreas^ has joined #gnucash
10:09:54 *** ChanServ sets mode: +v andreas^
10:11:12 <andreas^> I just keep failing here. I'm attempting to install Debian in QEMU. I'm running with "qemu-system-x86_64 debian.img" and once the boot interface loads and I select Graphical Install, the system panics and says there is a write error for initramfs.
10:11:12 <gncbot> andreas^: Sent 1 week, 1 day, 1 hour, and 28 minutes ago: <warlord> There is a (default) configuration option that reverses the balance display of normally-negative accounts. You can set that however you desire.
10:11:47 <andreas^> I've looked at the documentation and it should work like this.
10:18:06 <andreas^> ok it seems the -m parameter helped.
10:21:21 *** Mechtilde has joined #gnucash
10:26:26 *** Mechtilde has quit IRC
12:21:16 *** Hrisfur1 has joined #gnucash
12:21:16 *** ChanServ sets mode: +v Hrisfur1
12:21:43 *** andreas^ has quit IRC
12:23:07 *** Jeanl_ has joined #gnucash
12:23:10 *** Hrisfur has quit IRC
12:24:17 *** Hrisfur1 has quit IRC
12:24:20 *** Hrisfur has joined #gnucash
12:24:21 *** ChanServ sets mode: +v Hrisfur
12:25:10 *** Jeanl has quit IRC
12:26:09 *** Jeanl_ has quit IRC
12:26:11 <jralls> chris, a guid isn't a char*, it's an uint128_t.
12:38:35 <jralls> chris And one could legitimately contain a 0 byte which would produce a short string.
12:39:36 <jralls> Or not have one at all which would cause the string reading function to keep going until it found a 0 byte.
12:45:26 <jralls> But that's probably not what went wrong. https://github.com/Gnucash/gnucash/blob/d0f7daf4cfd02db17c03e3946e145a13760cd3d0/libgnucash/engine/qofquery.cpp#L646 shows that qof_quuery_build_param_list takes varargs advertised as const char*, indicating that it's not supposed to take ownership.
12:47:02 <jralls> You called g_slist_free_full, freeing the contents of the GSList as well as the list itself, but if the list doesn't own the contents, meaning that they're freed somewhere else, then you'll end up with a double free.
12:48:17 <jralls> And once they're freed all bets are off on what they might point to.
12:49:14 *** gjanssens has quit IRC
12:53:33 *** gjanssens has joined #gnucash
12:53:33 *** ChanServ sets mode: +o gjanssens
13:11:57 *** Hrisfur1 has joined #gnucash
13:11:57 *** ChanServ sets mode: +v Hrisfur1
13:12:22 *** Hrisfur has quit IRC
13:12:22 *** Hrisfur1 is now known as Hrisfur
13:14:19 *** David has quit IRC
13:14:41 *** David has joined #gnucash
13:24:53 *** FH_thecat has quit IRC
13:26:37 *** sbluhm has joined #gnucash
13:38:38 *** sbluhm has quit IRC
13:39:54 *** sbluhm has joined #gnucash
13:46:18 *** camcil has joined #gnucash
13:46:18 *** ChanServ sets mode: +v camcil
13:47:12 <camcil> Is it a conscious decision to not have estimating/quoting abilities, or a feature that just has not been implemented yet?
13:47:24 *** sbluhm has quit IRC
14:08:38 *** Hamaryns has joined #gnucash
14:08:38 *** ChanServ sets mode: +v Hamaryns
14:11:49 *** Hrisfur has quit IRC
14:26:25 *** jralls_afk has joined #gnucash
14:26:25 *** ChanServ sets mode: +o jralls_afk
14:26:43 *** jralls has quit IRC
14:28:31 *** Hamaryns has quit IRC
14:31:10 *** Mechtilde has joined #gnucash
14:52:35 *** jralls_afk is now known as jralls
14:56:24 <jralls> camcil, dunno about intent. Warlord might. Regardless of whether it was deliberate or not it's unlikely to get implemented any time soon.
14:58:57 <jralls> camcil, One could argue that quoting and even converting a quote to a contract is out of scope for an accounting package: https://www.accountingcoach.com/blog/entry-when-contract-signed
14:59:01 *** jervin has joined #gnucash
14:59:11 *** sbluhm has joined #gnucash
15:06:43 *** jervin has quit IRC
15:39:25 *** frakturfreak has quit IRC
15:42:40 *** camcil has quit IRC
15:44:09 *** jervin has joined #gnucash
15:44:51 *** jervin has quit IRC
15:47:13 *** sbluhm has quit IRC
15:50:32 *** Mechtilde has quit IRC
16:14:40 *** frakturfreak has joined #gnucash
16:38:24 *** field^Zzz3 has joined #gnucash
16:42:33 *** celeste has quit IRC
16:43:25 *** field^Zzz3 has quit IRC
17:30:55 *** gjanssens has quit IRC
17:39:35 *** mikee has quit IRC
17:40:46 *** mikee has joined #gnucash
17:41:06 *** JayC has quit IRC
20:07:03 *** gncbot has joined #gnucash
20:26:28 *** celeste has joined #gnucash
20:26:29 *** ChanServ sets mode: +v celeste
20:49:30 *** Aussie_matt has joined #gnucash
20:58:00 *** Aussie_matt has quit IRC
21:01:24 *** Aussie_matt has joined #gnucash
21:03:54 *** David has quit IRC
21:04:13 *** David has joined #gnucash
22:04:30 <chris> jralls: from my understanding of SWIG, the QofQueryParamList are converted in swig-engine.c from SCM to GSList using gnc_query_scm2path which creates a GSlist of strdup'd chars. So I was confused why g_slist_free_full would fail. I still am.
22:06:17 * chris happy to leave this stone unturned however
22:56:29 <chris> oh i see - qof_query_add_term will take the GSList* param_list and NOT duplicate it
23:00:16 <chris> i.e.qof_query_add_guid_list_match calls qof_query_add_guid_list_match which calls qof_query_add_term which takes param_list
23:11:03 *** User has quit IRC
23:15:23 *** Jeanl has joined #gnucash
23:29:29 *** FH_thecat has joined #gnucash
23:38:15 *** storyjesse has joined #gnucash