Bug 296723 - Crash then select report
Summary: Crash then select report
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.6.2
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
: 312666 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-25 06:13 UTC by Denis Stolpovsky
Modified: 2013-01-05 12:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Stolpovsky 2012-03-25 06:13:50 UTC
Application: kmymoney (4.6.2)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.2.0-2-686-pae i686
Distribution: Debian GNU/Linux 6.0-updates (squeeze)

-- Information about the crash:
- What I was doing when the application crashed: I'm select the report from the reports list  "Операции с наличными в этом месяце"

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/i686/cmov/libthread_db.so.1".
[Current thread is 1 (Thread 0xb3c12710 (LWP 22838))]

Thread 2 (Thread 0xb06b7b70 (LWP 22859)):
#0  0xb46eee11 in *__GI_clock_gettime (clock_id=1, tp=0xb06b7028) at ../sysdeps/unix/clock_gettime.c:116
#1  0xb5f787f5 in qt_gettime() () from /usr/lib/libQtCore.so.4
#2  0xb604afa6 in QTimerInfoList::updateCurrentTime() () from /usr/lib/libQtCore.so.4
#3  0xb604b30a in QTimerInfoList::timerWait(timeval&) () from /usr/lib/libQtCore.so.4
#4  0xb6049b63 in timerSourcePrepareHelper(GTimerSource*, int*) () from /usr/lib/libQtCore.so.4
#5  0xb6049bfd in timerSourcePrepare(_GSource*, int*) () from /usr/lib/libQtCore.so.4
#6  0xb4635054 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#7  0xb4635e17 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#8  0xb463640a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#9  0xb604a637 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#10 0xb601b33d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#11 0xb601b581 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#12 0xb5f1e85b in QThread::exec() () from /usr/lib/libQtCore.so.4
#13 0xb5ffbe7d in QInotifyFileSystemWatcherEngine::run() () from /usr/lib/libQtCore.so.4
#14 0xb5f216c3 in QThreadPrivate::start(void*) () from /usr/lib/libQtCore.so.4
#15 0xb6775c39 in start_thread (arg=0xb06b7b70) at pthread_create.c:304
#16 0xb51de12e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb3c12710 (LWP 22838)):
[KCrash Handler]
#7  isEmpty (this=0x14) at /usr/include/qt4/QtCore/qstring.h:708
#8  MyMoneyObjectContainer::account (this=0xa2181f4, id=...) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/mymoney/mymoneyobjectcontainer.cpp:130
#9  0xb7657ea9 in MyMoneyFile::account (this=0xb76cc320, id=...) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/mymoney/mymoneyfile.cpp:642
#10 0x08190efc in reports::ReportAccount::ReportAccount (this=0xbf899c70, accountid=...) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/reports/reportaccount.cpp:58
#11 0x081bb00d in reports::QueryTable::constructSplitsTable (this=0xbfaec50) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/reports/querytable.cpp:1242
#12 0x081c69a5 in reports::QueryTable::init (this=0xbfaec50) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/reports/querytable.cpp:282
#13 0x081c792a in reports::QueryTable::QueryTable (this=0xbfaec50, _report=...) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/reports/querytable.cpp:256
#14 0x08116e05 in KReportsView::KReportTab::updateReport (this=0xc029480) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/views/kreportsview.cpp:183
#15 0x08116ef2 in KReportsView::KReportTab::showEvent (this=0xc029480, event=0xbf89a9b0) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/views/kreportsview.cpp:159
#16 0xb5535fb0 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#17 0xb54db904 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0xb54e0d48 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#19 0xb6b78511 in KApplication::notify (this=0xa22f3b0, receiver=0xc029480, event=0xbf89a9b0) at ../../kdeui/kernel/kapplication.cpp:311
#20 0xb601c31e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#21 0xb553a55d in QWidgetPrivate::show_helper() () from /usr/lib/libQtGui.so.4
#22 0xb553a891 in QWidget::setVisible(bool) () from /usr/lib/libQtGui.so.4
#23 0xb5517a5d in QStackedLayout::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#24 0xb59a186c in QStackedWidget::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#25 0xb59b1231 in QTabWidgetPrivate::_q_showTab(int) () from /usr/lib/libQtGui.so.4
#26 0xb59b14fc in QTabWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#27 0xb6c7e502 in KTabWidget::qt_metacall (this=0xa7abce8, _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0xbf89ac18) at ./ktabwidget.moc:130
#28 0xb60226cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#29 0xb60314d0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#30 0xb59a4f55 in QTabBar::currentChanged(int) () from /usr/lib/libQtGui.so.4
#31 0xb59a8d89 in QTabBar::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#32 0xb59ae93c in QTabWidget::setCurrentIndex(int) () from /usr/lib/libQtGui.so.4
#33 0x08114c16 in KReportsView::addReportTab (this=0xa770a38, report=...) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/views/kreportsview.cpp:1076
#34 0x0811dab5 in KReportsView::qt_metacall (this=0xa770a38, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbf89ade4) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/obj-i486-linux-gnu/kmymoney/views/kreportsview.moc:122
#35 0xb60226cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#36 0xb60314d0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#37 0xb5aefa2d in QTreeWidget::itemDoubleClicked(QTreeWidgetItem*, int) () from /usr/lib/libQtGui.so.4
#38 0xb5aefaad in QTreeWidgetPrivate::_q_emitItemDoubleClicked(QModelIndex const&) () from /usr/lib/libQtGui.so.4
#39 0xb5af80d2 in QTreeWidget::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#40 0xb60226cd in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#41 0xb60314d0 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#42 0xb5a722d5 in QAbstractItemView::doubleClicked(QModelIndex const&) () from /usr/lib/libQtGui.so.4
#43 0xb5abfab4 in QTreeView::mouseDoubleClickEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#44 0xb5535e8d in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#45 0xb593abb5 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#46 0xb59ccdc1 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#47 0xb5a6f07c in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#48 0xb5ab9bd6 in QTreeView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#49 0xb59cf546 in QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#50 0xb601c4b6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#51 0xb54db8d2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#52 0xb54e171b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#53 0xb6b78511 in KApplication::notify (this=0xa22f3b0, receiver=0xa7af740, event=0xbf89b8f8) at ../../kdeui/kernel/kapplication.cpp:311
#54 0xb601c31e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#55 0xb54dc8c0 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#56 0xb556642f in QETWidget::translateMouseEvent(_XEvent const*) () from /usr/lib/libQtGui.so.4
#57 0xb55653c7 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#58 0xb5590f7c in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () from /usr/lib/libQtGui.so.4
#59 0xb4635a3f in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#60 0xb4636170 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#61 0xb463640a in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#62 0xb604a5d7 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#63 0xb5590b9a in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtGui.so.4
#64 0xb601b33d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#65 0xb601b581 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#66 0xb601fcda in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#67 0xb54d9784 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#68 0x0808f4b3 in runKMyMoney (splash=0xbf89c128, a=<optimized out>) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/main.cpp:282
#69 0x0808d9a2 in main (argc=-1217613368, argv=0xa9b45d0) at /build/buildd-kmymoney_4.6.2-1-i386-yArl8z/kmymoney-4.6.2/kmymoney/main.cpp:181

Reported using DrKonqi
Comment 1 Alvaro Soliverez 2012-04-27 21:40:43 UTC
Can you provide an anonymized file to test this? It's most likely a transaction that is erroneous.

Thanks
Comment 2 Alvaro Soliverez 2012-04-30 22:46:18 UTC
Git commit 5cee224d7c23ff6bfaedb9a35b8b88ba82fe5368 by Alvaro Soliverez.
Committed on 27/04/2012 at 23:41.
Pushed by asoliverez into branch 'master'.

Make sure a split is selected when constructing the split table of a
report
REVIEW:104765

M  +7    -0    kmymoney/reports/querytable.cpp

http://commits.kde.org/kmymoney/5cee224d7c23ff6bfaedb9a35b8b88ba82fe5368
Comment 3 Alvaro Soliverez 2012-05-08 22:54:43 UTC
Git commit a7e593cc75e15a2764de728ac64a4aa053adce77 by Alvaro Soliverez.
Committed on 27/04/2012 at 23:41.
Pushed by asoliverez into branch '4.6'.

Make sure a split is selected when constructing the split table of a
report
REVIEW:104765

M  +7    -0    kmymoney/reports/querytable.cpp

http://commits.kde.org/kmymoney/a7e593cc75e15a2764de728ac64a4aa053adce77
Comment 4 Alvaro Soliverez 2013-01-05 12:07:04 UTC
*** Bug 312666 has been marked as a duplicate of this bug. ***