GnuCash
Contact   Instructions
Bug 796591 - Crash on keyboard entry in register when not clicking or tabbing first
Summary: Crash on keyboard entry in register when not clicking or tabbing first
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Register (show other bugs)
Version: 3.1
Hardware: Other Mac OS
: Normal normal
Target Milestone: future
Assignee: ui
QA Contact: ui
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-14 16:12 EDT by Tyler Andersen
Modified: 2018-06-29 15:06 EDT (History)
4 users (show)

See Also:


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

Description Tyler Andersen 2018-06-14 16:12:59 EDT
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 19:26:58 EDT
I can't replicate this crash. Please attach a crash report from Console.
Comment 2 Tyler Andersen 2018-06-29 13:19:29 EDT
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 13:20:00 EDT
Created attachment 372889 [details]
Crash report, 6/14/18
Comment 4 Tyler Andersen 2018-06-29 13:20:17 EDT
Created attachment 372890 [details]
Crash report, 6/14/18 additional
Comment 5 John Ralls 2018-06-29 13:34:11 EDT
You've edited out some important information. Please attach the whole file.
Comment 6 Tyler Andersen 2018-06-29 13:40:17 EDT
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 13:44:41 EDT
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 13:56:27 EDT
Ah, that's been fixed in 3.2. Please test it.
Comment 9 Tyler Andersen 2018-06-29 14:15:40 EDT
Acknowledged and verified successfully. Apologies for filing a dupe.
Comment 10 John Ralls 2018-06-29 15:06:51 EDT
Not actually a dupe, the problem was reported on the mailing list.

Note You need to log in before you can comment on or make changes to this bug.