GNOME Bugzilla – Bug 794809
Crash in open file dialog
Last modified: 2018-05-12 14:08:50 UTC
Created attachment 370295 [details] Crash dump Hitting any key in the Open File Dialog will crash Gnucash 2.7.8
Created attachment 370296 [details] Trace file
Seems to be Mac-only and a problem with the Gtk file chooser rather than with GnuCash.
Are all Mac versions affected? Above crash dump says: Mac OS X 10.13.3 (17D102)
I haven't tested on all (supported) Mac versions, but I can't think of any reason it would matter.
This is an implementation mismatch between submitHits in gncsearchenginequartz.c, which sends a char* of the path, and hits_added in gtksearchengine.c that expects a GtkSearchHit*. Trying to dereference a char* naturally crashes.
Could this be related? https://gitlab.gnome.org/GNOME/pygobject/issues/161
Only insofar as the crashes have the same user trigger. This crash is a segfault cause by trying to use the contents of a string as a pointer. The python crash is due to an uncaught transcoding exception. I don't know what is encoding 30 but I'd guess that it's not UTF8 (which is must be to interface with gtk and glib) and that there's a character in the file path that can't be represented in that encoding.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/1043.
*** Bug 796045 has been marked as a duplicate of this bug. ***