GnuCash
Contact   Instructions
Bug 797038 - GnuCash hangs loading under XWindows
Summary: GnuCash hangs loading under XWindows
Status: NEW
Alias: None
Product: GnuCash
Classification: Unclassified
Component: User Interface General (show other bugs)
Version: 3.4
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: ui
QA Contact: ui
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-10 13:22 EST by Nathan Bohlmann
Modified: 2019-01-11 17:12 EST (History)
4 users (show)

See Also:


Attachments
hung GNUCash (269.01 KB, image/png)
2019-01-10 13:22 EST, Nathan Bohlmann
no flags Details

Description Nathan Bohlmann 2019-01-10 13:22:44 EST
Created attachment 373120 [details]
hung GNUCash

I am running version 3.4 Build ID: git 3.4.9-g7a13398e4+ (2019-01-03)

This version loads just fine when on the Ubuntu 18.04 desktop.  However, when I try to run it remotely displaying on XQuartz on my mac it hangs.   I have a SSH tunnel with XForwarding turned on and have verified other XWindows applications load just fine.

GnuCash hangs with gnucash/engine showing (see the attached image).

Here is the trace file with --debug turned on..

* 12:15:11  INFO <gnc.gui> [main] System locale returned en_US.UTF-8
* 12:15:11  INFO <gnc.gui> [main] Effective locale set to en_US.UTF-8.
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] The icon theme search path has 10 elements.
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 0: /home/finance/.local/share/icons
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 1: /home/finance/.icons
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 2: /usr/local/share/icons
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 3: /usr/share/icons
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 4: /var/lib/snapd/desktop/icons
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 5: /usr/local/share/pixmaps
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 6: /usr/share/pixmaps
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 7: /var/lib/snapd/desktop/pixmaps
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 8: /usr/local/share/gnucash/icons
* 12:15:12  INFO <gnc.gui> [gnc_load_app_icons] Path 9: /usr/local/share/icons
* 12:15:12  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-days, settings_ptr: 0x56092c8bf300, handler_id: 27
* 12:15:12  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-type-never, settings_ptr: 0x56092c8bf300, handler_id: 28
* 12:15:12  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-type-days, settings_ptr: 0x56092c8bf300, handler_id: 29
* 12:15:12  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: retain-type-forever, settings_ptr: 0x56092c8bf300, handler_id: 30
* 12:15:12  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: file-compression, settings_ptr: 0x56092c8bf300, handler_id: 32
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: account-separator, settings_ptr: 0x56092c8bf300, handler_id: 85
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: reversed-accounts-none, settings_ptr: 0x56092c8bf300, handler_id: 86
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: reversed-accounts-credit, settings_ptr: 0x56092c8bf300, handler_id: 87
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: reversed-accounts-incomeexpense, settings_ptr: 0x56092c8bf300, handler_id: 88
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: currency-choice-locale, settings_ptr: 0x56092c8bf300, handler_id: 89
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: currency-choice-other, settings_ptr: 0x56092c8bf300, handler_id: 90
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: currency-other, settings_ptr: 0x56092c8bf300, handler_id: 91
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general.report, key: currency-choice-locale, settings_ptr: 0x56092cb41f00, handler_id: 92
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general.report, key: currency-choice-other, settings_ptr: 0x56092cb41f00, handler_id: 93
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general.report, key: currency-other, settings_ptr: 0x56092cb41f00, handler_id: 94
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: auto-decimal-point, settings_ptr: 0x56092c8bf300, handler_id: 95
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: auto-decimal-places, settings_ptr: 0x56092c8bf300, handler_id: 97
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: date-format, settings_ptr: 0x56092c8bf300, handler_id: 98
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: date-completion-thisyear, settings_ptr: 0x56092c8bf300, handler_id: 99
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: date-completion-sliding, settings_ptr: 0x56092c8bf300, handler_id: 100
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: date-backmonths, settings_ptr: 0x56092c8bf300, handler_id: 101
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: (null), settings_ptr: 0x56092c8bf300, handler_id: 102
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: tab-close-buttons, settings_ptr: 0x56092c8bf300, handler_id: 103
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: tab-width, settings_ptr: 0x56092c8bf300, handler_id: 104
* 12:15:13  INFO <gnc.engine> [gnc_hook_lookup] no hook lists
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: show-account-color-tabs, settings_ptr: 0x56092c8bf300, handler_id: 111
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: tab-position-top, settings_ptr: 0x56092c8bf300, handler_id: 778
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: tab-position-bottom, settings_ptr: 0x56092c8bf300, handler_id: 779
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: tab-position-left, settings_ptr: 0x56092c8bf300, handler_id: 780
* 12:15:13  INFO <gnc.app-utils.gsettings> [gnc_gsettings_register_cb] schema: general, key: tab-position-right, settings_ptr: 0x56092c8bf300, handler_id: 781
Comment 1 Nathan Bohlmann 2019-01-10 13:53:50 EST
Please note this is NOT a duplicate of 796979 as I do not see a segfault anywhere, just a hang.    Also, none of the remedies suggested in 796979 work for me.
Comment 2 John Ralls 2019-01-10 16:29:48 EST
The next message in my gnucash.trace is a couple of errors from loading modules, then some more gsettings.

Are you able to run gdb on Ubuntu and get a stack trace from the hung process?
Comment 3 Nathan Bohlmann 2019-01-10 16:38:56 EST
I will try that.. may not happen for a day or so..
Comment 4 Nathan Bohlmann 2019-01-10 16:53:30 EST
Okay, here's the best I could do..

(gdb) run
Starting program: /usr/local/bin/gnucash 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".


This is a development version. It may or may not work.
Report bugs and other problems to gnucash-devel@gnucash.org
You can also lookup and file bug reports at https://bugs.gnucash.org
To find the last stable version, please refer to https://www.gnucash.org/
[New Thread 0x7fffd854f700 (LWP 19181)]
[New Thread 0x7fffd7d4e700 (LWP 19182)]
[New Thread 0x7fffd7340700 (LWP 19183)]
[New Thread 0x7fffd6254700 (LWP 19190)]
[New Thread 0x7fffd5a53700 (LWP 19191)]
[New Thread 0x7fffd5252700 (LWP 19192)]
[New Thread 0x7fffd4a51700 (LWP 19193)]
[New Thread 0x7fffbffff700 (LWP 19194)]
[Thread 0x7fffd5a53700 (LWP 19191) exited]
^C
(gdb) backtrace
#0  0x00007ffff525ebf9 in __GI___poll (fds=0x7fffffff93c8, nfds=1, timeout=-1)
    at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fffebe8e747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fffebe9006f in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fffebe901ef in xcb_wait_for_reply64 ()
    at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#4  0x00007ffff0ed06a8 in _XReply () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007ffff0eb580d in XGetImage () at /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007ffff3ab3fe0 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#7  0x00007ffff3ab4b0c in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#8  0x00007ffff3a83d0f in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#9  0x00007ffff3a4b6ef in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#10 0x00007ffff3a4bb7e in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#11 0x00007ffff3a7fb77 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#12 0x00007ffff3a802be in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#13 0x00007ffff3a8033c in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#14 0x00007ffff3a3a021 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#15 0x00007ffff3a83efc in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#16 0x00007ffff3a89f99 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#17 0x00007ffff3a83d0f in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#18 0x00007ffff3a4b6ef in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#19 0x00007ffff3a4bb7e in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#20 0x00007ffff3a7fb77 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#21 0x00007ffff3a802be in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#22 0x00007ffff3a8033c in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#23 0x00007ffff3a3a021 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#24 0x00007ffff3a83efc in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#25 0x00007ffff3a88c32 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#26 0x00007ffff3ab0c92 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#27 0x00007ffff3ab21cf in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#28 0x00007ffff3a96585 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#29 0x00007ffff3a9678c in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#30 0x00007ffff3a97258 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#31 0x00007ffff3a3a340 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#32 0x00007ffff3ab3ad0 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#33 0x00007ffff3a8444a in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#34 0x00007ffff3a425b6 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#35 0x00007ffff3a3bb39 in  () at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#36 0x00007ffff3a34a55 in cairo_fill ()
    at /usr/lib/x86_64-linux-gnu/libcairo.so.2
#37 0x00007ffff6d3dd38 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#38 0x00007ffff6c05aca in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#39 0x00007ffff6d1ad9e in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#40 0x00007ffff6c00f2d in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#41 0x00007ffff6c05b83 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#42 0x00007ffff6d1add1 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#43 0x00007ffff6e14eab in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#44 0x00007ffff6bfbeea in gtk_container_propagate_draw ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#45 0x00007ffff6bfbfd2 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#46 0x00007ffff6bafa34 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#47 0x00007ffff6c00f2d in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#48 0x00007ffff6c05b83 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#49 0x00007ffff6bb2341 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#50 0x00007ffff6e14eab in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#51 0x00007ffff6bfbeea in gtk_container_propagate_draw ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#52 0x00007ffff6bfbfd2 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#53 0x00007ffff6bafa34 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#54 0x00007ffff6c00f2d in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#55 0x00007ffff6c05b83 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#56 0x00007ffff6bb2341 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#57 0x00007ffff6e14eab in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#58 0x00007ffff6bfbeea in gtk_container_propagate_draw ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#59 0x00007ffff6bfbfd2 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#60 0x00007ffff6e22c8f in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#61 0x00007ffff6e14eab in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#62 0x00007ffff6e1df58 in  () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#63 0x00007ffff6cc21b9 in gtk_main_do_event ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#64 0x00007ffff41c2765 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#65 0x00007ffff41d27e5 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#66 0x00007ffff41d39e6 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#67 0x00007ffff41d3be0 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#68 0x00007ffff64af10d in g_closure_invoke ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#69 0x00007ffff64c205e in  () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#70 0x00007ffff64ca715 in g_signal_emit_valist ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#71 0x00007ffff64cb12f in g_signal_emit ()
    at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#72 0x00007ffff41cbac9 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#73 0x00007ffff41b7080 in  () at /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
#74 0x00007ffff73e5c73 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#75 0x00007ffff73e51f5 in g_main_context_dispatch ()
    at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#76 0x00007ffff73e55c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#77 0x00007ffff73e564c in g_main_context_iteration ()
    at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#78 0x00007ffff6cc1425 in gtk_main_iteration ()
    at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#79 0x00007ffff62078f4 in gnc_update_splash_screen ()
    at /usr/local/lib/gnucash/libgncmod-gnome-utils.so
#80 0x0000555555559c49 in load_gnucash_modules ()
#81 0x000055555555a03d in inner_main ()
#82 0x00007ffff7751412 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#83 0x00007ffff771d209 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#84 0x00007ffff77cd458 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#85 0x00007ffff779f353 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#86 0x00007ffff77d7a14 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#87 0x00007ffff77f7bf1 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#88 0x00007ffff7727cc9 in scm_call_4 ()
    at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#89 0x00007ffff77cd2ae in scm_catch_with_pre_unwind_handler ()
    at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#90 0x00007ffff77cd530 in scm_c_catch ()
    at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#91 0x00007ffff771d058 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#92 0x00007ffff771d321 in scm_c_with_continuation_barrier ()
    at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#93 0x00007ffff77ca224 in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#94 0x00007ffff24c3c42 in GC_call_with_stack_base ()
#95 0x00007ffff77ca30d in  () at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#96 0x00007ffff77ca34d in scm_with_guile ()
    at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#97 0x00007ffff77513a3 in scm_boot_guile ()
    at /usr/lib/x86_64-linux-gnu/libguile-2.0.so.22
#98 0x000055555555a72d in main ()
(gdb)
Comment 5 John Ralls 2019-01-10 17:19:51 EST
That looks like something's gone wrong with your X session. Is GnuCash using any resources in /usr/bin/top?
Comment 6 Nathan Bohlmann 2019-01-10 17:28:14 EST
Yes, it is..
Comment 7 Nathan Bohlmann 2019-01-10 17:28:56 EST
And I have no problems with any other X application...
Comment 8 John Ralls 2019-01-11 16:01:06 EST
Are any of the other applications Gtk-based?

If it's actually doing something, as opposed to blocked waiting for a response from the Xserver, then you can try stopping it in the debugger, getting a backtrace, continue, wait a second, and repeat. Do that several times to see if the backtrace changes or if it's always in xcb_wait_for_reply64.

You might also try running it under strace. A list of system calls might point you towards what's failing.
Comment 9 Nathan Bohlmann 2019-01-11 16:22:09 EST
I don't think any others are GTK-based.

To be honest, this is too esoteric of a bug for me, I will just use GnuCash on the Ubuntu desktop.
Comment 10 Nathan Bohlmann 2019-01-11 17:12:28 EST
I am able to run various GNOME tools without incident.   Stuff like gnome-mines, gnome-mahjongg..

Note You need to log in before you can comment on or make changes to this bug.