GNOME Bugzilla – Bug 637041
Latest SVN Segmentation fault (core dumped) on
Last modified: 2018-06-29 22:49:21 UTC
* 13:46:37 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed * 13:46:37 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed * 13:46:39 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed * 13:46:39 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed
* 13:50:21 WARN <gnc.backend.dbi> [gnc_module_init_backend_dbi()] No DBD drivers found * 13:52:04 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed * 13:52:04 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed * 13:52:43 WARN <gnc.engine> Multiple pre-payment lots are found. Skipping. * 13:52:43 WARN <gnc.engine> Multiple pre-payment lots are found. Skipping. * 13:52:43 WARN <gnc.engine> Multiple pre-payment lots are found. Skipping. * 13:52:43 WARN <gnc.engine> Multiple pre-payment lots are found. Skipping. * 13:52:43 WARN <gnc.engine> Multiple pre-payment lots are found. Skipping. * 13:52:53 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed * 13:52:53 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed * 13:52:57 CRIT <gnc.business.gnome> gnc_owner_set_owner: assertion `owner != NULL' failed * 13:52:57 CRIT <gnc.business.gnome> gnc_business_commodities: assertion `gncOwnerGetCurrency(owner)' failed
>>Business>>Vendor>>Process Payment Carefully place cursor over the field to the left of a button saying "Bill" Click just once, you can see the cursor is in the field Now click anywhere else on the form, or for that matter the screen Bang!! no more gnucash..
Any chance you could get a Stack Trace? See http://wiki.gnucash.org/wiki/Stack_Trace
Program received signal SIGSEGV, Segmentation fault. 0x05cd3669 in gnc_payment_dialog_invoice_changed (pw=0xa7793d0) at dialog-payment.c:119 119 if (pw->owner.owner.undefined == NULL || pw->owner.owner.undefined != owner->owner.undefined) (gdb) bt
+ Trace 225128
+ Trace 225129
R19850 does not have this problem, I'll check for other versions I have laying around..
R19910 does have this bug, if that helps..
R19860 is the last version to work for me R19861 is the first version this bug shows up I hope this is helpful..
Thanks. That's the patch that was included to fix Bug #635439
Hmm, that's my patch. I'll try to investigate tonight or tomorrow.
Dear Matthijs, I now realized my decision to apply your patch from bug#635439 was probably a bit too fast *for this point in time*. As we are now targetting towards the 2.4.0 release very soon and as the code you touched seems to be much more fragile than initially expected, I decided to revert your patch for now and schedule it to be applied right after the 2.4.0 release is out. I'll attach an appropriate patch to bug#635439 to get the feature back in, but reverting for sure gets rid of any time pressure on you or us concerning this crasher. Sorry for that. *** This bug has been marked as a duplicate of bug 635439 ***
Sounds like a good plan!
I've been trying to fix my patch to prevent this bug, but I can't quite reproduce this here. I've tried a recent trunk revision with my patch applied, as well as running a clean r19909 (before it got reverted). I don't see this crash with either. Also, I can't completely apply your instructions for reproducing this crash: > >>Business>>Vendor>>Process Payment OK > Carefully place cursor over the field to the left of a button saying "Bill" I don't have any buttons saying "Bill" in this dialog. I only see a single label saying "Bill", followed horizontally by in input box and a button labeled "Select...". Do you mean to put the cursor over this input box? > Click just once, you can see the cursor is in the field So you just put the cursor in the field, but don't actually select or type anything? > Now click anywhere else on the form, or for that matter the screen > Bang!! no more gnucash.. That doesn't seem to happen for me... There might be something specific with your gnucash accounts file (perhaps a weird or corrupted bill, in particular one that has an empty invoice ID?). It might help if you could send over your gnucash file, could test with a new and empty file, or could look over the gnucash file yourself to see if there is anything weird (look for "<invoice:id></invoice:id>").
>>Do you mean to put the cursor over this input box? Yes >>So you just put the cursor in the field, but don't actually select or type anything? Yes >>There might be something specific with your gnucash accounts file (perhaps a weird or corrupted bill, in particular one that has an empty invoice ID?) It could be, I'll try and find out if it is related, if it is something in the file, could we make a handler for cases such as that, or is it better to figure out how they got introduced in the first place and implement a bug fix in that area instead, I don't know which way is considered better software development. Send me an email with your information and I'll set up a remote desktop scenario/call. I like your improvement very much and would like to see it back again soon..
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=637041. Please update any external references or bookmarks.