Bug 283524 - Crash using File->Save as database and select "QSQLite - SQLite Version 3"
Summary: Crash using File->Save as database and select "QSQLite - SQLite Version 3"
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 09:37 UTC by Burkhard Lück
Modified: 2011-12-28 20:23 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 Burkhard Lück 2011-10-07 09:37:04 UTC
Application: kmymoney (4.6.90-svn1257670)
KDE Platform Version: 4.7.2 (4.7.2) (Compiled from sources)
Qt Version: 4.7.0
Operating System: Linux 2.6.38-11-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
- What I was doing when the application crashed:

Start kmymoney (trunk r 1257670)
File->Save as database
Click on "QSQLite - SQLite Version 3" -> crash

$ kmymoney --version
xxQt: 4.7.0
KDE Development Platform: 4.7.2 (4.7.2)
xxKMyMoneyxx: 4.6.90-svn1257670
xx

The crash can be reproduced every time.

-- Backtrace:
Application: xxKMyMoneyxx (kmymoney), signal: Aborted
[KCrash Handler]
#6  0x00007f3a865b8d05 in raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f3a865bcab6 in abort () at abort.c:92
#8  0x00007f3a8842e0fd in qt_message_output (msgType=QtFatalMsg, buf=0x3922da8 "ASSERT: \"(mode & KFile::Files) == 0\" in file /home/kdedev/svn/kdelibs/kio/kfile/kurlrequester.cpp, line 394") at global/qglobal.cpp:2259
#9  0x00007f3a8842e2fc in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=0x7f3a885fde58 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff015510f0) at global/qglobal.cpp:2305
#10 0x00007f3a8842eb68 in qFatal (msg=0x7f3a885fde58 "ASSERT: \"%s\" in file %s, line %d") at global/qglobal.cpp:2488
#11 0x00007f3a8842dc63 in qt_assert (assertion=0x7f3a8935b50d "(mode & KFile::Files) == 0", file=0x7f3a8935b4d8 "/home/kdedev/svn/kdelibs/kio/kfile/kurlrequester.cpp", line=394) at global/qglobal.cpp:2004
#12 0x00007f3a892fc2e4 in KUrlRequester::setMode(QFlags<KFile::Mode>) () from /home/kdedev/kdedev/lib/libkio.so.5
#13 0x00000000006c7ed0 in KSelectDatabaseDlg::slotDriverSelected (this=0x25b3820, driver=<value optimized out>) at /home/kdedev/svn/extragear/office/kmymoney/kmymoney/dialogs/kselectdatabasedlg.cpp:199
#14 0x00000000006f7490 in KSelectDatabaseDlg::qt_metacall (this=0x25b3820, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff01551520) at /home/kdedev/svn/extragear/build/office/kmymoney/kmymoney/dialogs/moc_kselectdatabasedlg.cpp:75
#15 0x00007f3a885774f9 in QMetaObject::metacall (object=0x25b3820, cl=QMetaObject::InvokeMetaMethod, idx=73, argv=0x7fff01551520) at kernel/qmetaobject.cpp:237
#16 0x00007f3a8858e7f7 in QMetaObject::activate (sender=0x326e320, m=0x7f3a880d4e80, local_signal_index=1, argv=0x7fff01551520) at kernel/qobject.cpp:3280
#17 0x00007f3a87a5be2d in QListWidget::itemClicked (this=0x326e320, _t1=0x2779300) at .moc/debug-shared/moc_qlistwidget.cpp:198
#18 0x00007f3a87a595a1 in QListWidgetPrivate::_q_emitItemClicked (this=0x35a8900, index=...) at itemviews/qlistwidget.cpp:1079
#19 0x00007f3a87a5bb4a in QListWidget::qt_metacall (this=0x326e320, _c=QMetaObject::InvokeMetaMethod, _id=14, _a=0x7fff01551720) at .moc/debug-shared/moc_qlistwidget.cpp:142
#20 0x00007f3a8ab6ec94 in KListWidget::qt_metacall(QMetaObject::Call, int, void**) () from /home/kdedev/kdedev/lib/libkdeui.so.5
#21 0x00007f3a885774f9 in QMetaObject::metacall (object=0x326e320, cl=QMetaObject::InvokeMetaMethod, idx=84, argv=0x7fff01551720) at kernel/qmetaobject.cpp:237
#22 0x00007f3a8858e7f7 in QMetaObject::activate (sender=0x326e320, m=0x7f3a880d31a0, local_signal_index=1, argv=0x7fff01551720) at kernel/qobject.cpp:3280
#23 0x00007f3a879e8981 in QAbstractItemView::clicked (this=0x326e320, _t1=...) at .moc/debug-shared/moc_qabstractitemview.cpp:331
#24 0x00007f3a879dc871 in QAbstractItemView::mouseReleaseEvent (this=0x326e320, event=0x7fff015527c0) at itemviews/qabstractitemview.cpp:1789
#25 0x00007f3a879fe94d in QListView::mouseReleaseEvent (this=0x326e320, e=0x7fff015527c0) at itemviews/qlistview.cpp:796
#26 0x00007f3a8735056b in QWidget::event (this=0x326e320, event=0x7fff015527c0) at kernel/qwidget.cpp:8187
#27 0x00007f3a87852c13 in QFrame::event (this=0x326e320, e=0x7fff015527c0) at widgets/qframe.cpp:557
#28 0x00007f3a8790e69b in QAbstractScrollArea::viewportEvent (this=0x326e320, e=0x7fff015527c0) at widgets/qabstractscrollarea.cpp:1043
#29 0x00007f3a879db555 in QAbstractItemView::viewportEvent (this=0x326e320, event=0x7fff015527c0) at itemviews/qabstractitemview.cpp:1619
#30 0x00007f3a8790f31b in QAbstractScrollAreaPrivate::viewportEvent (this=0x35a8900, event=0x7fff015527c0) at widgets/qabstractscrollarea_p.h:100
#31 0x00007f3a8790f426 in QAbstractScrollAreaFilter::eventFilter (this=0x3687660, o=0x35a8f40, e=0x7fff015527c0) at widgets/qabstractscrollarea_p.h:116
#32 0x00007f3a8856ee31 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x1ede020, receiver=0x35a8f40, event=0x7fff015527c0) at kernel/qcoreapplication.cpp:847
#33 0x00007f3a872da8bd in QApplicationPrivate::notify_helper (this=0x1ede020, receiver=0x35a8f40, e=0x7fff015527c0) at kernel/qapplication.cpp:4393
#34 0x00007f3a872d877e in QApplication::notify (this=0x1eda750, receiver=0x35a8f40, e=0x7fff015527c0) at kernel/qapplication.cpp:3960
#35 0x00007f3a8abae0b8 in KApplication::notify(QObject*, QEvent*) () from /home/kdedev/kdedev/lib/libkdeui.so.5
#36 0x00007f3a8856eb16 in QCoreApplication::notifyInternal (this=0x1eda750, receiver=0x35a8f40, event=0x7fff015527c0) at kernel/qcoreapplication.cpp:732
#37 0x00007f3a872dd08f in QCoreApplication::sendSpontaneousEvent (receiver=0x35a8f40, event=0x7fff015527c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#38 0x00007f3a872d6c4e in QApplicationPrivate::sendMouseEvent (receiver=0x35a8f40, event=0x7fff015527c0, alienWidget=0x35a8f40, nativeWidget=0x25b3820, buttonDown=0x7f3a880ffe48, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3057
#39 0x00007f3a8738d1e4 in QETWidget::translateMouseEvent (this=0x25b3820, event=0x7fff01553230) at kernel/qapplication_x11.cpp:4403
#40 0x00007f3a87389939 in QApplication::x11ProcessEvent (this=0x1eda750, event=0x7fff01553230) at kernel/qapplication_x11.cpp:3414
#41 0x00007f3a873c78f9 in x11EventSourceDispatch (s=0x1ee2ac0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x00007f3a7fc87bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f3a7fc883a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f3a7fc88639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f3a885adf53 in QEventDispatcherGlib::processEvents (this=0x1e8fe60, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#46 0x00007f3a873c8020 in QGuiEventDispatcherGlib::processEvents (this=0x1e8fe60, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#47 0x00007f3a8856bb38 in QEventLoop::processEvents (this=0x7fff015535e0, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007f3a8856bc8e in QEventLoop::exec (this=0x7fff015535e0, flags=...) at kernel/qeventloop.cpp:201
#49 0x00007f3a8796970b in QDialog::exec (this=0x25b3820) at dialogs/qdialog.cpp:552
#50 0x00000000006c8342 in KSelectDatabaseDlg::exec (this=0x25b3820) at /home/kdedev/svn/extragear/office/kmymoney/kmymoney/dialogs/kselectdatabasedlg.cpp:157
#51 0x0000000000484a55 in KMyMoneyApp::slotSaveAsDatabase (this=0x2074f60) at /home/kdedev/svn/extragear/office/kmymoney/kmymoney/kmymoney.cpp:1780
#52 0x000000000049fcc5 in KMyMoneyApp::qt_metacall (this=0x2074f60, _c=QMetaObject::InvokeMetaMethod, _id=115, _a=0x7fff01554070) at /home/kdedev/svn/extragear/build/office/kmymoney/kmymoney/kmymoney.moc:520
#53 0x00007f3a885774f9 in QMetaObject::metacall (object=0x2074f60, cl=QMetaObject::InvokeMetaMethod, idx=161, argv=0x7fff01554070) at kernel/qmetaobject.cpp:237
#54 0x00007f3a8858e7f7 in QMetaObject::activate (sender=0x20bca10, m=0x7f3a880b9400, local_signal_index=1, argv=0x7fff01554070) at kernel/qobject.cpp:3280
#55 0x00007f3a872c87c0 in QAction::triggered (this=0x20bca10, _t1=false) at .moc/debug-shared/moc_qaction.cpp:263
#56 0x00007f3a872c7a02 in QAction::activate (this=0x20bca10, event=QAction::Trigger) at kernel/qaction.cpp:1256
#57 0x00007f3a878aac60 in QMenuPrivate::activateCausedStack (this=0x21bbca0, causedStack=..., action=0x20bca10, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#58 0x00007f3a878ab148 in QMenuPrivate::activateAction (this=0x21bbca0, action=0x20bca10, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1085
#59 0x00007f3a878af996 in QMenu::mouseReleaseEvent (this=0x210c0d0, e=0x7fff01554f30) at widgets/qmenu.cpp:2301
#60 0x00007f3a8aca1e94 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /home/kdedev/kdedev/lib/libkdeui.so.5
#61 0x00007f3a8735056b in QWidget::event (this=0x210c0d0, event=0x7fff01554f30) at kernel/qwidget.cpp:8187
#62 0x00007f3a878b00c8 in QMenu::event (this=0x210c0d0, e=0x7fff01554f30) at widgets/qmenu.cpp:2410
#63 0x00007f3a872da8e6 in QApplicationPrivate::notify_helper (this=0x1ede020, receiver=0x210c0d0, e=0x7fff01554f30) at kernel/qapplication.cpp:4397
#64 0x00007f3a872d877e in QApplication::notify (this=0x1eda750, receiver=0x210c0d0, e=0x7fff01554f30) at kernel/qapplication.cpp:3960
#65 0x00007f3a8abae0b8 in KApplication::notify(QObject*, QEvent*) () from /home/kdedev/kdedev/lib/libkdeui.so.5
#66 0x00007f3a8856eb16 in QCoreApplication::notifyInternal (this=0x1eda750, receiver=0x210c0d0, event=0x7fff01554f30) at kernel/qcoreapplication.cpp:732
#67 0x00007f3a872dd08f in QCoreApplication::sendSpontaneousEvent (receiver=0x210c0d0, event=0x7fff01554f30) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#68 0x00007f3a872d6c4e in QApplicationPrivate::sendMouseEvent (receiver=0x210c0d0, event=0x7fff01554f30, alienWidget=0x0, nativeWidget=0x210c0d0, buttonDown=0x7f3a880ffe48, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3057
#69 0x00007f3a8738ce95 in QETWidget::translateMouseEvent (this=0x210c0d0, event=0x7fff015559a0) at kernel/qapplication_x11.cpp:4337
#70 0x00007f3a87389939 in QApplication::x11ProcessEvent (this=0x1eda750, event=0x7fff015559a0) at kernel/qapplication_x11.cpp:3414
#71 0x00007f3a873c78f9 in x11EventSourceDispatch (s=0x1ee2ac0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#72 0x00007f3a7fc87bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#73 0x00007f3a7fc883a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#74 0x00007f3a7fc88639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#75 0x00007f3a885adf53 in QEventDispatcherGlib::processEvents (this=0x1e8fe60, flags=...) at kernel/qeventdispatcher_glib.cpp:415
#76 0x00007f3a873c8020 in QGuiEventDispatcherGlib::processEvents (this=0x1e8fe60, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#77 0x00007f3a8856bb38 in QEventLoop::processEvents (this=0x7fff01555d40, flags=...) at kernel/qeventloop.cpp:149
#78 0x00007f3a8856bc8e in QEventLoop::exec (this=0x7fff01555d40, flags=...) at kernel/qeventloop.cpp:201
#79 0x00007f3a8856f212 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#80 0x00007f3a872d7974 in QApplication::exec () at kernel/qapplication.cpp:3673
#81 0x0000000000455603 in runKMyMoney (splash=<value optimized out>, a=<value optimized out>) at /home/kdedev/svn/extragear/office/kmymoney/kmymoney/main.cpp:282
#82 0x00000000004576ed in main (argc=1, argv=0x7fff01556978) at /home/kdedev/svn/extragear/office/kmymoney/kmymoney/main.cpp:181

Reported using DrKonqi
Comment 1 Yuri Chornoivan 2011-10-07 10:16:52 UTC
Works without crash here:

Application: kmymoney (4.6.90-svn1257676)
KDE Platform Version: 4.6.5 (Mageia packages)
Qt Version: 4.7.3
Operating System: Linux 2.6.38.8-desktop-5.mga i686
Distribution: Mageia 1.0
Comment 2 Thomas Baumgart 2011-10-09 17:17:04 UTC
Could it be, that it is your local version of KURLRequestor? Why is it asserting "(mode & KFile::Files) == 0"? No wonder it crashes, as we call it with "mode = KFile::Files'.

#11 0x00007f3a8842dc63 in qt_assert (assertion=0x7f3a8935b50d "(mode &
KFile::Files) == 0", file=0x7f3a8935b4d8
"/home/kdedev/svn/kdelibs/kio/kfile/kurlrequester.cpp", line=394) at
global/qglobal.cpp:2004
Comment 3 Burkhard Lück 2011-10-11 03:02:33 UTC
git status shows no local changes in my kdelibs checkout
Comment 4 Thomas Baumgart 2011-12-26 12:41:23 UTC
Well, it's not your personal copy, but looks like there has been a change in KDE. KUrlRequester does not like the setting we choose. Otherwise, this could have never worked:

http://lxr.kde.org/source/kde/kdelibs/kio/kfile/kurlrequester.cpp#394 vs.

http://lxr.kde.org/source/extragear/office/kmymoney-git/kmymoney/dialogs/kselectdatabasedlg.cpp#198

We need to figure out how to solve the problem.
Comment 5 Fernando Vilas 2011-12-28 16:41:42 UTC
I just pushed a fix to use bitwise-or in combining the KFile::Mode flags into master. It fixed it for me. Please test.
Comment 6 Fernando Vilas 2011-12-28 19:12:10 UTC
Git commit 1e4fe7995b3a43299ebd38d2375c8f00a98f22f7 by Fernando Vilas.
Committed on 28/12/2011 at 20:11.
Pushed by fvilas into branch 'master'.

M  +1    -1    kmymoney/dialogs/kselectdatabasedlg.cpp

http://commits.kde.org/kmymoney/1e4fe7995b3a43299ebd38d2375c8f00a98f22f7
Comment 7 Thomas Baumgart 2011-12-28 20:23:42 UTC
Git commit ffd054d7f9f3ee92cd9d63e05cbf6e3325f2cf44 by Thomas Baumgart, on behalf of Fernando Vilas.
Committed on 28/12/2011 at 20:11.
Pushed by tbaumgart into branch '4.6'.
(cherry picked from commit 1e4fe7995b3a43299ebd38d2375c8f00a98f22f7)

M  +1    -1    kmymoney/dialogs/kselectdatabasedlg.cpp

http://commits.kde.org/kmymoney/ffd054d7f9f3ee92cd9d63e05cbf6e3325f2cf44