On 2018.02.09 17:39, Jack wrote:
I'm leaving this threaded, since it is related, but it can be treated
independently.
Start kmymoney 5.0.0 with no opened file ("kmymoney -n")
Create a new file
- I entered no personal information
- I chose US Dollar as currency
- I chose the template with no categories
- no starting checking account
- save the file
- create new account - investment account with brokerage account
- edit brokerage account to add starting balance
- save file
- File/Close -> crash with error about uncaught exception related to
the investment account.
It is not clear to me how this relates to the issue of the ofx import
creating a category as a closed account, because I cannot reproduce
that yet. I do have a sample ofx file which imports two
transactions, in process creating a category "_DIVIDEND" (which is
not mentioned in the ofx file.) but the category and both
transactions are editable. However, the above crash does occur if
trying to close the file I've attached that ofx file, just in case,
but I suspect finding the cause of this crash is higher priority.
(Note that I have edited the ofx file to alter the account number,
and to remove the positions and balances of equities.)
The crash is repeatable, and output to the console is:
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt.
You must not let any exception whatsoever propagate through Qt code.
If that is not possible, in Qt 5 you must at least reimplement
QCoreApplication::notify() and catch all exceptions there.
terminate called after throwing an instance of 'MyMoneyException'
Aborted