Skip to content

Instantly share code, notes, and snippets.

View jralls's full-sized avatar

John Ralls jralls

View GitHub Profile
@jralls
jralls / bz.py
Created June 28, 2018 22:29
GnuCash bug update script.
from __future__ import print_function
import time
import bugzilla
URL = "bugzilla.gnome.org"
bzapi = bugzilla.Bugzilla(URL)
if not bzapi.logged_in:
print("You need to log in to %s" % URL)
bzapi.interactive_login()
PS C:\Users\René Romijn> & 'C:\Program Files (x86)\gnucash\bin\gnucash.exe' --debug --logto=gnucash.trace
(gnucash.exe:13056): gnc.core-utils-WARNING **: 13:39:11.536: C:\Users\René Romijn\AppData\Roaming is not a suitable base directory for the user data. Trying temporary directory instead.
(Error: C:\Users\René Romijn\AppData\Roaming is a descendant of a non-existing home directory. As GnuCash will never create a home directory this path can't be used: Permission denied: "C:\Users\René Romijn\AppData\Roaming")
3:2018/04/19 13-39-12:gwen(13056):C:/gcdev64/gnucash/maint/src/gwenhywfar-4.20.0/src/base/i18n.c: 120: No translation found for WIN32 locale [English_United States.1252]
(gnucash.exe:13056): Gdk-WARNING **: 13:39:14.954: gdkwindow-win32.c:2303: GetClientRect failed with code 1400: Invalid window handle.
Found Finance::Quote version 1.47
(gnucash.exe:13056): Gtk-WARNING **: 13:39:31.470: Allocating size to GncMainWindow 0c0802b8 without calling gtk_widget_get_preferred_width/height(). How does the
@jralls
jralls / gist:124311cdc8d44134c90a5d666f4854dd
Created April 13, 2018 19:52
GDB transcript showing scm_to_utf8_string() misbehavior.
Thread 1 hit Breakpoint 1, gnc_extension_name (extension=0x10e703c0)
at C:/gcdev64/gnucash/unstable/src/gnucash-git/gnucash/gnome-utils/gnc-menu-extensions.c:117
117 initialize_getters();
Thread 1 hit Breakpoint 2, gnc_scm_call_1_to_string (func=0xeb137a0,
arg=0x10e703c0)
at C:/gcdev64/gnucash/unstable/src/gnucash-git/libgnucash/core-utils/gnc-guile-utils.c:141
141 return gnc_scm_to_utf8_string(value);
$18 = (gchar *) 0xfba96e8 "Saldo (Sal▒rio)"
(gdb) s
@jralls
jralls / Exception-experiments.patch
Last active October 22, 2017 18:59
Backtrace of GncNumeric abort
From 68ab5ae680d52b677696384377bfe63b13be0360 Mon Sep 17 00:00:00 2001
From: John Ralls <jralls@ceridwen.us>
Date: Sun, 22 Oct 2017 11:52:42 -0700
Subject: [PATCH] Exception experiments.
---
libgnucash/engine/gnc-numeric.cpp | 178 ++++++++++++++++++--------------
libgnucash/engine/gnc-numeric.hpp | 3 +
libgnucash/engine/test/test-numeric.cpp | 15 +++
3 files changed, 118 insertions(+), 78 deletions(-)