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 796591 - Crash on keyboard entry in register when not clicking or tabbing first
Crash on keyboard entry in register when not clicking or tabbing first
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Register
3.1
Other Mac OS
: Normal normal
: future
Assigned To: gnucash-ui-maint
gnucash-ui-maint
Depends on:
Blocks:
 
 
Reported: 2018-06-14 20:12 UTC by Tyler Andersen
Modified: 2018-06-30 00:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Crash report, 6/29/18 (18.59 KB, text/plain)
2018-06-29 17:19 UTC, Tyler Andersen
Details
Crash report, 6/14/18 (18.59 KB, text/plain)
2018-06-29 17:19 UTC, Tyler Andersen
Details
Crash report, 6/14/18 additional (18.34 KB, text/plain)
2018-06-29 17:20 UTC, Tyler Andersen
Details
Crash report, 6/29/18, additional (81.25 KB, text/plain)
2018-06-29 17:44 UTC, Tyler Andersen
Details

Description Tyler Andersen 2018-06-14 20:12:55 UTC
3.0-118-gd2ef5fd0f+ (2018-04-28)

Deterministic/repeatable:

- Switch tabs to a different account.
- Start typing. Effect: Crash

It seems on switching tabs, the date field in the current transaction seems to have focus, but is not selected. Note: In previous versions, this wasn't a crash, but had the same underlying problem: focus wasn't where it appeared. 

(In 2.6, typing when switching accounts resulted in the register of an account not visible on the screen being updated.)


If you tab before typing (then back-tab to get back to the date), gnucash will not crash. Nor if you click instead of immediately typing.
Comment 1 John Ralls 2018-06-16 23:26:54 UTC
I can't replicate this crash. Please attach a crash report from Console.
Comment 2 Tyler Andersen 2018-06-29 17:19:25 UTC
Created attachment 372888 [details]
Crash report, 6/29/18

I'm attaching 3 crash reports which I believe to all be the same. I'm 100% certain the June 29th crash report is from this bug, and 90% certain the others are.
Comment 3 Tyler Andersen 2018-06-29 17:19:56 UTC
Created attachment 372889 [details]
Crash report, 6/14/18
Comment 4 Tyler Andersen 2018-06-29 17:20:13 UTC
Created attachment 372890 [details]
Crash report, 6/14/18 additional
Comment 5 John Ralls 2018-06-29 17:34:07 UTC
You've edited out some important information. Please attach the whole file.
Comment 6 Tyler Andersen 2018-06-29 17:40:13 UTC
I haven't edited anything out, that's everything, but I when I went back into console the same reports look very different. Attaching a new crash shortly.
Comment 7 Tyler Andersen 2018-06-29 17:44:37 UTC
Created attachment 372891 [details]
Crash report, 6/29/18, additional

I realize the log indicates:
"""
terminating with uncaught exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::gregorian::bad_year> >: Year is out of valid range: 1400..10000
"""

...realize that if I had pressed the tab key first, this wouldn't have crashed. (I had to go through and fix the year out of range issues before I started using this version of gnucash, I had a couple of stock prices that had bad years)
This is reproducible (for me).

- Open gnucash
- Press "1"
- Crash

(Note that when gnucash opens, it's open to a register, so I should be editing a date field)
Comment 8 John Ralls 2018-06-29 17:56:23 UTC
Ah, that's been fixed in 3.2. Please test it.
Comment 9 Tyler Andersen 2018-06-29 18:15:36 UTC
Acknowledged and verified successfully. Apologies for filing a dupe.
Comment 10 John Ralls 2018-06-29 19:06:47 UTC
Not actually a dupe, the problem was reported on the mailing list.
Comment 11 John Ralls 2018-06-30 00:11:55 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=796591. Please update any external references or bookmarks.