Bug 335689

Summary: Unexpected crash when opening design of new report
Product: [Applications] KEXI Reporter: Ian Balchin <inksi>
Component: GeneralAssignee: Jarosław Staniek <staniek>
Status: CLOSED WAITINGFORINFO    
Severity: crash    
Priority: NOR    
Version First Reported In: 2.9 Alpha   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Bug Depends on: 307772    
Bug Blocks:    

Description Ian Balchin 2014-06-02 08:01:56 UTC
Application: kexi (2.9 Pre-Alpha)
KDE Platform Version: 4.8.5 (4.8.5) (Compiled from sources)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-23-generic i686
Distribution: Linux Mint 13 Maya

-- Information about the crash:
I had just opened the database, on postgresql server, and right-clicked to start a new report design at which action kexi crashed

-- Backtrace:
Application: Kexi (kexi), signal: Segmentation fault
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0xb7728980 (LWP 2367))]

Thread 2 (Thread 0x9f98cb40 (LWP 2387)):
#0  0x02209dc8 in __pthread_mutex_lock (mutex=0x9f000550) at pthread_mutex_lock.c:92
#1  0x03e176d4 in pthread_mutex_lock (mutex=0x9f000550) at forward.c:182
#2  0x017913f0 in g_mutex_lock () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0x01751676 in g_main_context_prepare () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0x01751f6f in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#5  0x017521c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#6  0x009818e7 in QEventDispatcherGlib::processEvents (this=0x9f000468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#7  0x0094d50d in QEventLoop::processEvents (this=0x9f98c240, flags=...) at kernel/qeventloop.cpp:149
#8  0x0094d7a9 in QEventLoop::exec (this=0x9f98c240, flags=...) at kernel/qeventloop.cpp:204
#9  0x0083694c in QThread::exec (this=0x954c208) at thread/qthread.cpp:501
#10 0x0092ab5d in QInotifyFileSystemWatcherEngine::run (this=0x954c208) at io/qfilesystemwatcher_inotify.cpp:248
#11 0x00839de0 in QThreadPrivate::start (arg=0x954c208) at thread/qthread_unix.cpp:298
#12 0x02207d4c in start_thread (arg=0x9f98cb40) at pthread_create.c:308
#13 0x03e09bae in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb7728980 (LWP 2367)):
[KCrash Handler]
#7  0x00b079bf in QHash<QString, KexiDB::TableSchema*>::value (this=0x3300ba, akey=...) at /usr/include/qt4/QtCore/qhash.h:609
#8  0x00b0656b in KexiDB::ConnectionPrivate::table (this=0x330066, name=...) at /home/inksi/kde4/src/calligra/libs/db/connection.cpp:130
#9  0x00afef1a in KexiDB::Connection::tableSchema (this=0x93be7a0, tableName=...) at /home/inksi/kde4/src/calligra/libs/db/connection.cpp:3066
#10 0x040bd417 in KexiDBReportData::getSchema (this=0x97fe168) at /home/inksi/kde4/src/calligra/kexi/plugins/reports/kexidbreportdata.cpp:137
#11 0x040bcd50 in KexiDBReportData::KexiDBReportData (this=0x97fe168, qstrSQL=..., pDb=0x93be7a0) at /home/inksi/kde4/src/calligra/kexi/plugins/reports/kexidbreportdata.cpp:54
#12 0x040c15f2 in KexiSourceSelector::sourceData (this=0x92a47a8) at /home/inksi/kde4/src/calligra/kexi/plugins/reports/kexisourceselector.cpp:177
#13 0x040c11ad in KexiSourceSelector::setConnectionData (this=0x92a47a8, c=...) at /home/inksi/kde4/src/calligra/kexi/plugins/reports/kexisourceselector.cpp:134
#14 0x040bc8fa in KexiReportDesignView::afterSwitchFrom (this=0x959b938, mode=Kexi::AllViewModes) at /home/inksi/kde4/src/calligra/kexi/plugins/reports/kexireportdesignview.cpp:160
#15 0x00bf0506 in KexiWindow::switchToViewMode (this=0x924cdf0, newViewMode=Kexi::DesignViewMode, staticObjectArgs=0x0, proposeOpeningInTextViewModeBecauseOfProblems=@0xbfb3fc7e: false) at /home/inksi/kde4/src/calligra/kexi/core/KexiWindow.cpp:531
#16 0x00bff151 in KexiPart::Part::openInstance (this=0x94ea528, parent=0x9501768, item=..., viewMode=Kexi::DesignViewMode, staticObjectArgs=0x0) at /home/inksi/kde4/src/calligra/kexi/core/kexipart.cpp:284
#17 0x00be39b8 in KexiProject::openObject (this=0x974cf78, parent=0x9501768, item=..., viewMode=Kexi::DesignViewMode, staticObjectArgs=0x0) at /home/inksi/kde4/src/calligra/kexi/core/kexiproject.cpp:863
#18 0x002f336d in KexiMainWindow::openObject (this=0x9192700, item=0x93f0540, viewMode=Kexi::DesignViewMode, openingCancelled=@0xbfb3fe3f: false, staticObjectArgs=0x0, errorMessage=0x0) at /home/inksi/kde4/src/calligra/kexi/main/KexiMainWindow.cpp:3098
#19 0x002f3b38 in KexiMainWindow::newObject (this=0x9192700, info=0x916e0b0, openingCancelled=@0xbfb3fe3f: false) at /home/inksi/kde4/src/calligra/kexi/main/KexiMainWindow.cpp:3241
#20 0x002fadd2 in KexiMainWindow::newObject (this=0x9192700, info=0x916e0b0) at /home/inksi/kde4/src/calligra/kexi/main/KexiMainWindow.h:490
#21 0x002f7b71 in KexiMainWindow::qt_static_metacall (_o=0x9192700, _c=QMetaObject::InvokeMetaMethod, _id=49, _a=0xbfb3fff8) at /home/inksi/kde4/build/calligra/kexi/main/KexiMainWindow.moc:473
#22 0x009656b1 in QMetaObject::activate (sender=0x9448350, m=0x7a8d30, local_signal_index=2, argv=0xbfb3fff8) at kernel/qobject.cpp:3547
#23 0x00757c38 in KexiProjectNavigator::newItem (this=0x9448350, _t1=0x916e0b0) at /home/inksi/kde4/build/calligra/kexi/widget/moc_KexiProjectNavigator.cpp:206
#24 0x00763d73 in KexiProjectNavigator::slotNewObject (this=0x9448350) at /home/inksi/kde4/src/calligra/kexi/widget/navigator/KexiProjectNavigator.cpp:412
#25 0x00757948 in KexiProjectNavigator::qt_static_metacall (_o=0x9448350, _c=QMetaObject::InvokeMetaMethod, _id=20, _a=0xbfb40158) at /home/inksi/kde4/build/calligra/kexi/widget/moc_KexiProjectNavigator.cpp:130
#26 0x009656b1 in QMetaObject::activate (sender=0x94511c0, m=0x16ea3f8, local_signal_index=1, argv=0xbfb40158) at kernel/qobject.cpp:3547
#27 0x00d6b9bd in QAction::triggered (this=0x94511c0, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#28 0x00d6bc5b in QAction::activate (this=0x94511c0, event=QAction::Trigger) at kernel/qaction.cpp:1257
#29 0x0122d4a3 in QMenuPrivate::activateCausedStack (this=0x93b07b0, causedStack=..., action=0x94511c0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#30 0x0123437f in QMenuPrivate::activateAction (this=0x93b07b0, action=0x94511c0, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#31 0x01237065 in QMenu::mouseReleaseEvent (this=0x93b0790, e=0xbfb40994) at widgets/qmenu.cpp:2360
#32 0x0305425c in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#33 0x00dcd1ac in QWidget::event (this=0x93b0790, event=0xbfb40994) at kernel/qwidget.cpp:8362
#34 0x01235aec in QMenu::event (this=0x93b0790, e=0xbfb40994) at widgets/qmenu.cpp:2469
#35 0x00d72ed4 in notify_helper (e=0xbfb40994, receiver=0x93b0790, this=0x8fff118) at kernel/qapplication.cpp:4559
#36 QApplicationPrivate::notify_helper (this=0x8fff118, receiver=0x93b0790, e=0xbfb40994) at kernel/qapplication.cpp:4531
#37 0x00d79024 in QApplication::notify (this=0x8fff118, receiver=0x93b0790, e=0xbfb40994) at kernel/qapplication.cpp:4102
#38 0x02f75e01 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#39 0x0094e97e in QCoreApplication::notifyInternal (this=0x8ff5ee0, receiver=0x93b0790, event=0xbfb40994) at kernel/qcoreapplication.cpp:876
#40 0x00d73e95 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 QApplicationPrivate::sendMouseEvent (receiver=0x93b0790, event=0xbfb40994, alienWidget=0x0, nativeWidget=0x93b0790, buttonDown=0x1707cf4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#42 0x00e00822 in QETWidget::translateMouseEvent (this=0x93b0790, event=0xbfb40e4c) at kernel/qapplication_x11.cpp:4553
#43 0x00dfec5d in QApplication::x11ProcessEvent (this=0x8ff5ee0, event=0xbfb40e4c) at kernel/qapplication_x11.cpp:3734
#44 0x00e2befc in x11EventSourceDispatch (s=0x8fff298, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#45 0x01751d46 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#46 0x017520e5 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#47 0x017521c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#48 0x00981887 in QEventDispatcherGlib::processEvents (this=0x8fff728, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#49 0x00e2bafa in QGuiEventDispatcherGlib::processEvents (this=0x8fff728, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x0094d50d in QEventLoop::processEvents (this=0xbfb41140, flags=...) at kernel/qeventloop.cpp:149
#51 0x0094d7a9 in QEventLoop::exec (this=0xbfb41140, flags=...) at kernel/qeventloop.cpp:204
#52 0x01231bd7 in QMenu::exec (this=0x93b0790, p=..., action=0x0) at widgets/qmenu.cpp:2113
#53 0x00763621 in KexiProjectNavigator::contextMenuEvent (this=0x9448350, event=0xbfb414ec) at /home/inksi/kde4/src/calligra/kexi/widget/navigator/KexiProjectNavigator.cpp:318
#54 0x00dcdf43 in QWidget::event (this=0x9448350, event=0xbfb414ec) at kernel/qwidget.cpp:8529
#55 0x00d72ed4 in notify_helper (e=0xbfb414ec, receiver=0x9448350, this=0x8fff118) at kernel/qapplication.cpp:4559
#56 QApplicationPrivate::notify_helper (this=0x8fff118, receiver=0x9448350, e=0xbfb414ec) at kernel/qapplication.cpp:4531
#57 0x00d78960 in QApplication::notify (this=0x9448350, receiver=0x9449870, e=0xbfb4174c) at kernel/qapplication.cpp:4181
#58 0x02f75e01 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#59 0x0094e97e in QCoreApplication::notifyInternal (this=0x8ff5ee0, receiver=0x9449870, event=0xbfb4174c) at kernel/qcoreapplication.cpp:876
#60 0x00e00145 in sendSpontaneousEvent (event=0xbfb4174c, receiver=0x9449870) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#61 QETWidget::translateMouseEvent (this=0x91d6c78, event=0xbfb41bdc) at kernel/qapplication_x11.cpp:4624
#62 0x00dfec5d in QApplication::x11ProcessEvent (this=0x8ff5ee0, event=0xbfb41bdc) at kernel/qapplication_x11.cpp:3734
#63 0x00e2befc in x11EventSourceDispatch (s=0x8fff298, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#64 0x01751d46 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#65 0x017520e5 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#66 0x017521c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#67 0x00981887 in QEventDispatcherGlib::processEvents (this=0x8fff728, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#68 0x00e2bafa in QGuiEventDispatcherGlib::processEvents (this=0x8fff728, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#69 0x0094d50d in QEventLoop::processEvents (this=0xbfb41ed4, flags=...) at kernel/qeventloop.cpp:149
#70 0x0094d7a9 in QEventLoop::exec (this=0xbfb41ed4, flags=...) at kernel/qeventloop.cpp:204
#71 0x00952eba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#72 0x00d70a74 in QApplication::exec () at kernel/qapplication.cpp:3820
#73 0x08048796 in main (argc=1, argv=0xbfb41fe4) at /home/inksi/kde4/src/calligra/kexi/main.cpp:36

Reported using DrKonqi
Comment 1 Jarosław Staniek 2014-06-27 19:19:40 UTC
*** Bug 335693 has been marked as a duplicate of this bug. ***
Comment 2 Jarosław Staniek 2014-06-27 19:32:31 UTC
Still cannot reproduce. Could you please create a new project with the same server and retry similar action?

For Pre-Alpha 2.9 I recommend 'git pull --rebase' and make install.
Comment 3 Jarosław Staniek 2014-06-27 19:32:59 UTC
Waiting for more info.
Comment 4 Jarosław Staniek 2014-06-27 19:42:17 UTC
#307772 looks like related, similar backtrace...
Comment 5 Ian Balchin 2014-06-29 11:21:15 UTC
(In reply to comment #2)
> Still cannot reproduce. Could you please create a new project with the same
> server and retry similar action?
> 
> For Pre-Alpha 2.9 I recommend 'git pull --rebase' and make install.

I have just gone back to my Pre-Alpha 2.9 as was already installed, meaning I did not do the above. 

At present the crash does not show itself, but will present results when this does happen.
Comment 6 Jarosław Staniek 2014-06-29 19:46:02 UTC
Closing with waitforinfo flag. Can repoen if something new happens.