GNOME Bugzilla – Bug 795040
GnuCash crashes when searching for a newly created bill
Last modified: 2018-06-30 00:07:31 UTC
Created a new vendor bill and posted for payment same day. Saved. Selected Find Bill, Company Name and input the name (Virgin Mobile). GnuCash crashes each time no matter how few or how many letters are used in the Search function.
Created attachment 370615 [details] gnucash dump file part 1
Created attachment 370616 [details] gnucash dump file part 2
Created attachment 371383 [details] Minimal failing example Happens here too. I've attached a minimal failing example. A search for the Vendor 'Test', causes gnuCash to crash (Windows, git 3.0-88-gc44316073+). Manually changing line 144 in my example file from <ts:date>2018-04-25 00:00:00 +0000</ts:date> to <ts:date>2018-04-25 00:00:01 +0000</ts:date> Seems to get the search working again. Unfortunately, making such a simple change to my actual file does not work.
Thanks for the input. I was worrying that the bug would not get any traction with only my report. Yes, it is repeatable every time. I wonder if the reason the bug exists is the new mechanism for paying bills in the drop down menu somehow messing with the older method in previous versions.
Your bug did attract my attention. Sorry for not informing you of this. It's closely related to bug 795031 in which I referred to this one. It looks like there's an issue with how dates are handled internally and different parts of the code expect different formats. I'm chasing this, but it will take me some time. So far there is no evidence the new mechanism for paying bill has anything to do with it. The problems seem to be lower level. But with this consider your bug officially confirmed :)
Thanks for the reply Geert. Good to know the bug is actively being worked on. For now, I just don't ever try to "find" or search for any bill or vendor anymore. I am able to pay bills through the new pay invoices menu option as a workaround. I'm sure the bug will get squashed in the future and I can once again search without crashing GnuCash.
I have just committed a number of fixes regarding invoice date handling which I hope should fix this bug. Can you test again with tomorrow's nightly build ?
So I don't have to figure out where the nightly build resides . . . can someone post a link or the URL?
https://code.gnucash.org/builds/win32/maint. They're usually done by 03:30 Eastern US time.
Thanks I'll give the nightly a try tomorrow then.
I've given "3.0-94-g74fd6e046+ (2018-04-26)" a go and it works for me. Thanks for the quick fix.
I too have tried all the actions that previously caused the program to dump crash. Everything completed as expected. No crashes. Thanks for the quick fix. Now muscle memory used for common tasks doesn't get me into trouble on this new 3.0 release. Good Job!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=795040. Please update any external references or bookmarks.