After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795040 - GnuCash crashes when searching for a newly created bill
GnuCash crashes when searching for a newly created bill
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Business
3.0
Other Windows
: Normal blocker
: future
Assigned To: Geert Janssens
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2018-04-06 20:46 UTC by Keith Myers
Modified: 2018-06-30 00:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnucash dump file part 1 (3.43 MB, application/octet-stream)
2018-04-06 21:00 UTC, Keith Myers
Details
gnucash dump file part 2 (3.10 MB, application/octet-stream)
2018-04-06 21:01 UTC, Keith Myers
Details
Minimal failing example (6.24 KB, application/xml)
2018-04-25 14:50 UTC, Ed Morris
Details

Description Keith Myers 2018-04-06 20:46:35 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.
Comment 1 Keith Myers 2018-04-06 21:00:27 UTC
Created attachment 370615 [details]
gnucash dump file part 1
Comment 2 Keith Myers 2018-04-06 21:01:20 UTC
Created attachment 370616 [details]
gnucash dump file part 2
Comment 3 Ed Morris 2018-04-25 14:50:45 UTC
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.
Comment 4 Keith Myers 2018-04-25 15:24:02 UTC
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.
Comment 5 Geert Janssens 2018-04-25 15:48:04 UTC
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 :)
Comment 6 Keith Myers 2018-04-25 19:15:23 UTC
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.
Comment 7 Geert Janssens 2018-04-26 21:09:57 UTC
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 ?
Comment 8 Keith Myers 2018-04-26 21:45:30 UTC
So I don't have to figure out where the nightly build resides . . .  can someone post a link or the URL?
Comment 9 John Ralls 2018-04-26 21:51:54 UTC
https://code.gnucash.org/builds/win32/maint. They're usually done by 03:30 Eastern US time.
Comment 10 Keith Myers 2018-04-27 02:33:17 UTC
Thanks I'll give the nightly a try tomorrow then.
Comment 11 Ed Morris 2018-04-27 11:34:08 UTC
I've given "3.0-94-g74fd6e046+ (2018-04-26)" a go and it works for me.

Thanks for the quick fix.
Comment 12 Keith Myers 2018-04-27 16:34:29 UTC
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!
Comment 13 John Ralls 2018-06-30 00:07:31 UTC
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.