https://bugs.kde.org/show_bug.cgi?id=390716
--- Comment #3 from Alexandre <alexandre...@gmail.com> --- I have the same problem but only on my gentoo. On ubuntu I tried Qt 5.10.1 on 18.04 and kmymoney 5.0 works. In this trace the kmy file is empty (without accounts) and I am trying to create the first account by "New account". The error is: ASSERT failure in QVector<T>::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qvector.h, line 424 A gdb backtrace follows: GNU gdb (Gentoo 8.1 p1) 8.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <https://bugs.gentoo.org/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from kmymoney...done. (gdb) run Starting program: /usr/bin/kmymoney [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". [New Thread 0x7fffd8e47700 (LWP 28078)] Qt: Session management error: Could not open network socket [New Thread 0x7fffd2edc700 (LWP 28079)] WebConnect: Try to connect to WebConnect server WebConnect: Connect to server failed WebConnect: Starting server failed. Try to remove stale socket. WebConnect: Running in server mode Plugins: checkprinting loaded Plugins: csvexporter loaded Plugins: csvimporter loaded Plugins: gncimporter loaded Plugins: icalendarexporter loaded Plugins: kbanking loaded Plugins: kbanking pluged Plugins: ofximporter loaded Plugins: qifexporter loaded Plugins: qifimporter loaded Plugins: reconciliation report loaded Online plugins found 2 Cost center model created with items 0 Payees model created with items 0 reading file start parsing file startDocument reading securities endDocument [New Thread 0x7fffc2ad4700 (LWP 28082)] [New Thread 0x7fff821cf700 (LWP 28083)] [New Thread 0x7fff81570700 (LWP 28084)] [New Thread 0x7fff80d6f700 (LWP 28085)] [New Thread 0x7fff7bfff700 (LWP 28086)] [New Thread 0x7fff7b7fe700 (LWP 28087)] ASSERT failure in QVector<T>::at: "index out of range", file ../../include/QtCore/../../src/corelib/tools/qvector.h, line 424 Thread 1 "kmymoney" received signal SIGABRT, Aborted. __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 51 } (gdb) where #0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51 #1 0x00007fffef789a57 in __GI_abort () at abort.c:90 #2 0x00007ffff050a6df in QMessageLogger::fatal(char const*, ...) const () from /usr/lib64/libQt5Core.so.5 #3 0x00007ffff0504f3a in qt_assert_x(char const*, char const*, char const*, int) () from /usr/lib64/libQt5Core.so.5 #4 0x00007ffff058bdaa in QVector<int>::at(int) const () from /usr/lib64/libQt5Core.so.5 #5 0x00007ffff06aec0c in QSortFilterProxyModelPrivate::can_create_mapping(QModelIndex const&) const [clone .part.45] () from /usr/lib64/libQt5Core.so.5 [0/1837] #6 0x00007ffff06b2535 in QSortFilterProxyModelPrivate::_q_sourceColumnsAboutToBeInserted(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5 #7 0x00007ffff06b69da in QSortFilterProxyModel::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib64/libQt5Core.so.5 #8 0x00007ffff071919e in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5 #9 0x00007ffff068ad2e in QAbstractItemModel::columnsAboutToBeInserted(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /usr/lib64/libQt5Core.so.5 #10 0x00007ffff0691c0c in QAbstractItemModel::beginInsertColumns(QModelIndex const&, int, int) () from /usr/lib64/libQt5Core.so.5 #11 0x00007ffff12c8f26 in ?? () from /usr/lib64/libQt5Gui.so.5 #12 0x00007ffff12ca475 in ?? () from /usr/lib64/libQt5Gui.so.5 #13 0x00007ffff12ca734 in QStandardItem::insertColumns(int, int) () from /usr/lib64/libQt5Gui.so.5 #14 0x00007ffff12cb9e0 in QStandardItem::insertRow(int, QList<QStandardItem*> const&) () from /usr/lib64/libQt5Gui.so.5 #15 0x0000555555a2cf48 in QStandardItem::insertRow (this=0x55555665cba0, arow=0, aitem=0x555556fe18d0) at /usr/include/qt5/QtGui/qstandarditemmodel.h:317 #16 0x0000555555a2cfbc in QStandardItem::appendRow (this=0x55555665cba0, aitem=0x555556fe18d0) at /usr/include/qt5/QtGui/qstandarditemmodel.h:320 #17 0x0000555555a2ac7e in AccountsModel::slotObjectAdded (this=0x5555565825e0, objType=eMyMoney::File::Object::Account, obj=0x5555584f1890) at /home/alexandr/Projects/kmymoney-full/kmymoney/kmymoney/models/accountsmodel.cpp:903 #18 0x000055555568c55b in QtPrivate::FunctorCall<QtPrivate::IndexesList<0, 1>, QtPrivate::List<eMyMoney::File::Object, MyMoneyObject const*>, void, void (AccountsModel::*)(eMyMoney::File::Object, MyMoneyObject const*)>::call (f= (void (AccountsModel::*)(AccountsModel * const, eMyMoney::File::Object, const MyMoneyObject *)) 0x555555a2ab1c <AccountsModel::slotObjectAdded(eMyMoney::File::Object, MyMoneyObject const*)>, o=0x5555565825e0, arg=0x7fffffffc110) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:136 #19 0x000055555568ae0c in QtPrivate::FunctionPointer<void (AccountsModel::*)(eMyMoney::File::Object, MyMoneyObject const*)>::call<QtPrivate::List<eMyMoney::File::Object, MyMoneyObject const*>, void> (f= (void (AccountsModel::*)(AccountsModel * const, eMyMoney::File::Object, const MyMoneyObject *)) 0x555555a2ab1c <AccountsModel::slotObjectAdded(eMyMoney::File::Object, MyMoneyObject const*)>, o=0x5555565825e0, arg=0x7fffffffc110) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:169 #20 0x0000555555688a18 in QtPrivate::QSlotObject<void (AccountsModel::*)(eMyMoney::File::Object, MyMoneyObject const*), QtPrivate::List<eMyMoney::File::Object, MyMoneyObject const*>, void>::impl (which=1, this_=0x555556692d60, r=0x5555565825e0, a=0x7fffffffc110, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:398 #21 0x00007ffff0718fb0 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5 #22 0x00007ffff604cb51 in MyMoneyFile::objectAdded (this=0x7ffff62c4a90 <MyMoneyFile::file>, _t1=<incomplete type>, _t2=0x5555584f1890) at /home/alexandr/Projects/kmymoney-full/build-5.0/kmymoney/mymoney/kmm_mymoney_autogen/EWIEGA46WW/moc_mymoneyfile.cpp:235 #23 0x00007ffff5f81faa in MyMoneyFile::commitTransaction (this=0x7ffff62c4a90 <MyMoneyFile::file>) at /home/alexandr/Projects/kmymoney-full/kmymoney/kmymoney/mymoney/mymoneyfile.cpp:452 #24 0x00007ffff5faa303 in MyMoneyFileTransaction::commit (this=0x7fffffffc230) at /home/alexandr/Projects/kmymoney-full/kmymoney/kmymoney/mymoney/mymoneyfile.cpp:3735 #25 0x00005555557ff9be in NewAccountWizard::Wizard::newAccount (account=...) at /home/alexandr/Projects/kmymoney-full/kmymoney/kmymoney/wizards/newaccountwizard/knewaccountwizard.cpp:430 #26 0x00005555556ee6da in KAccountsView::slotNewAccount (this=0x5555564b1010) at /home/alexandr/Projects/kmymoney-full/kmymoney/kmymoney/views/kaccountsview.cpp:234 #27 0x00005555556f3f24 in QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, void (KAccountsView::*)()>::call(void (KAccountsView::*)(), KAccountsView*, void**) ( f=(void (KAccountsView::*)(KAccountsView * const)) 0x5555556ee68a <KAccountsView::slotNewAccount()>, o=0x5555564b1010, arg=0x7fffffffc5b0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:136 #28 0x00005555556f3dd8 in QtPrivate::FunctionPointer<void (KAccountsView::*)()>::call<QtPrivate::List<>, void>(void (KAccountsView::*)(), KAccountsView*, void**) (f=(void (KAccountsView::*)(KAccountsView * const)) 0x5555556ee68a <KAccountsView::slotNewAccount()>, o=0x5555564b1010, arg=0x7fffffffc5b0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:169 #29 0x00005555556f3a96 in QtPrivate::QSlotObject<void (KAccountsView::*)(), QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) (which=1, this_=0x5555564b12f0, r=0x5555564b1010, a=0x7fffffffc5b0, ret=0x0) at /usr/include/qt5/QtCore/qobjectdefs_impl.h:398 #30 0x00007ffff0718fb0 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5 #31 0x00007ffff1719e12 in QAction::triggered(bool) () from /usr/lib64/libQt5Widgets.so.5 #32 0x00007ffff171c55c in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQt5Widgets.so.5 #33 0x00007ffff189b8bc in ?? () from /usr/lib64/libQt5Widgets.so.5 #34 0x00007ffff18a2d8b in ?? () from /usr/lib64/libQt5Widgets.so.5 #35 0x00007ffff18a3b9f in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5 #36 0x00007ffff175f3a8 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #37 0x00007ffff18a5e9b in QMenu::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #38 0x00007ffff172063c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #39 0x00007ffff172833f in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #40 0x00007ffff06e9c07 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5 #41 0x00007ffff1727312 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5 #42 0x00007ffff177a0da in ?? () from /usr/lib64/libQt5Widgets.so.5 #43 0x00007ffff177c989 in ?? () from /usr/lib64/libQt5Widgets.so.5 #44 0x00007ffff172063c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #45 0x00007ffff1727de4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5 #46 0x00007ffff06e9c07 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5 #47 0x00007ffff0fea89b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5 #48 0x00007ffff0fec485 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5 #49 0x00007ffff0fc69eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5 #50 0x00007fffdb43c02b in ?? () from /usr/lib64/libQt5XcbQpa.so.5 #51 0x00007ffff06e832b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5 #52 0x00007ffff06f1e34 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5 #53 0x00005555556317f7 in runKMyMoney (a=..., splash=std::unique_ptr<QSplashScreen> containing 0x0, file=..., noFile=false) at /home/alexandr/Projects/kmymoney-full/kmymoney/kmymoney/main.cpp:317 #54 0x0000555555630d45 in main (argc=1, argv=0x7fffffffd4d8) at /home/alexandr/Projects/kmymoney-full/kmymoney/kmymoney/main.cpp:231 (gdb) quit A debugging session is active. Inferior 1 [process 28074] will be killed. Quit anyway? (y or n) y -- You are receiving this mail because: You are the assignee for the bug.