GNOME Bugzilla – Bug 796556
On Ubuntu 14.04, crash when pressing tab in register
Last modified: 2018-06-30 00:11:46 UTC
I'm newly using gnucash 3.x (git-maint as of today); for daily work I still (have to) use the gnucash 2.6 branch. Finally I was able to build git-maint on my Ubuntu-14.04 system. However, when opening a register, trying to enter a new transaction, I clicked on the date of the new empty line, then (because the date was fine) I pressed Tab, I got a crash. This happens both for ENABLE_REGISTER2=on or =off. The attached backtrace is for ENABLE_REGISTER2=on.
+ Trace 238639
Updated backtrace with more dbg installed below. This is libgtk-3-0-dbg_3.10.8-0ubuntu1.4_amd64.deb, as mentioned on Ubuntu 14.04, yes indeed rather ancient but branch-2.6 runs fine there.
+ Trace 238640
Clicking on the second trace link shows that this is probably a duplicate of bug 795014, which is reported against Gtk at https://gitlab.gnome.org/GNOME/gtk/issues/61. Indeed, I can reproduce it only if I set the locale to de_DE and GTK_IM_MODULES=xim (though I didn't try other IMs). With GTK_IM_MODULES unset and with the locale still at de_DE the bug isn't triggered. See if GnuCash still crashes for you with it unset. As an aside, you definitely don't want to enable Reg2. Other than the minimum porting necessary to get it to build it has gotten no attention whatever after the Gtk3 conversion.
Unfortunately even with GTK_IM_MODULES unset I still run into this bug. (Now ENABLE_REGISTER2=off.) Still trying...
+ Trace 238641
... but turns out GTK_IM_MODULE="gtk-im-context-simple" does the trick, as inferred from here https://unix.stackexchange.com/questions/260601/understanding-setting-up-different-input-methods Thanks for the pointer!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=796556. Please update any external references or bookmarks.