Bug 307772 - report crash when click to design mode
Summary: report crash when click to design mode
Status: CLOSED WAITINGFORINFO
Alias: None
Product: KEXI
Classification: Applications
Component: Reports and Printouts (other bugs)
Version First Reported In: 2.5.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Adam Pigg
URL:
Keywords:
Depends on:
Blocks: 335689
  Show dependency treegraph
 
Reported: 2012-10-03 12:47 UTC by robert leleu
Modified: 2016-01-29 19:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description robert leleu 2012-10-03 12:47:55 UTC
Application: kexi (2.5.0 (Calligra 2.5.0))
KDE Platform Version: 4.9.1
Qt Version: 4.8.1
Operating System: Linux 3.2.0-23-generic-pae i686
Distribution: Ubuntu 12.04 LTS

-- Information about the crash:
- What I was doing when the application crashed: designing a report (which is bugged). The crash occurred when I clicked to come back from data mode to design mode.

-- 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 0xb3e17740 (LWP 2216))]

Thread 3 (Thread 0xac592b40 (LWP 2222)):
#0  0xb65c2850 in g_main_context_iteration@plt () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#1  0xb672b8e7 in QEventDispatcherGlib::processEvents (this=0xabc00468, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#2  0xb66f750d in QEventLoop::processEvents (this=0xac592240, flags=...) at kernel/qeventloop.cpp:149
#3  0xb66f77a9 in QEventLoop::exec (this=0xac592240, flags=...) at kernel/qeventloop.cpp:204
#4  0xb65e094c in QThread::exec (this=0x863bf50) at thread/qthread.cpp:501
#5  0xb66d4b5d in QInotifyFileSystemWatcherEngine::run (this=0x863bf50) at io/qfilesystemwatcher_inotify.cpp:248
#6  0xb65e3de0 in QThreadPrivate::start (arg=0x863bf50) at thread/qthread_unix.cpp:298
#7  0xb54d4d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#8  0xb64c1ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 2 (Thread 0xab3bdb40 (LWP 2223)):
#0  0xb77da424 in __kernel_vsyscall ()
#1  0xb54d896b in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i386-linux-gnu/libpthread.so.0
#2  0xb64cf3dc in pthread_cond_wait () from /lib/i386-linux-gnu/libc.so.6
#3  0xb02ef029 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0xb02ef06f in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0xb54d4d4c in start_thread () from /lib/i386-linux-gnu/libpthread.so.0
#6  0xb64c1ace in clone () from /lib/i386-linux-gnu/libc.so.6

Thread 1 (Thread 0xb3e17740 (LWP 2216)):
[KCrash Handler]
#7  value (this=0x54, akey=...) at /usr/include/qt4/QtCore/qhash.h:609
#8  table (name=..., this=0x0) at /build/buildd/calligra-2.5.0/kexi/kexidb/connection.cpp:132
#9  KexiDB::Connection::tableSchema (this=0x8682b60, tableName=...) at /build/buildd/calligra-2.5.0/kexi/kexidb/connection.cpp:2999
#10 0xabd81af9 in KexiDBReportData::getSchema (this=0x8845e18) at /build/buildd/calligra-2.5.0/kexi/plugins/reports/kexidbreportdata.cpp:113
#11 0xabd8547f in KexiSourceSelector::sourceData (this=0x88237e0) at /build/buildd/calligra-2.5.0/kexi/plugins/reports/kexisourceselector.cpp:148
#12 0xabd85738 in KexiSourceSelector::setConnectionData (this=0x88237e0, c=...) at /build/buildd/calligra-2.5.0/kexi/plugins/reports/kexisourceselector.cpp:105
#13 0xabd80071 in KexiReportDesignView::afterSwitchFrom (this=0x885a7f8, mode=Kexi::DataViewMode) at /build/buildd/calligra-2.5.0/kexi/plugins/reports/kexireportdesignview.cpp:159
#14 0xb7632e25 in KexiWindow::switchToViewMode (this=0x8666e18, newViewMode=Kexi::DesignViewMode, staticObjectArgs=0x0, proposeOpeningInTextViewModeBecauseOfProblems=@0xbfae0e2f: false) at /build/buildd/calligra-2.5.0/kexi/core/KexiWindow.cpp:664
#15 0xb76342ac in KexiWindow::switchToViewMode (this=0x8666e18, newViewMode=Kexi::DesignViewMode) at /build/buildd/calligra-2.5.0/kexi/core/KexiWindow.cpp:740
#16 0xb76cd14a in KexiMainWindow::switchToViewMode (this=0x81c3498, window=..., viewMode=Kexi::DesignViewMode) at /build/buildd/calligra-2.5.0/kexi/main/KexiMainWindow.cpp:2894
#17 0xb7632a8b in KexiWindow::switchToViewModeInternal (this=0x8666e18, newViewMode=Kexi::DesignViewMode) at /build/buildd/calligra-2.5.0/kexi/core/KexiWindow.cpp:730
#18 0xb7638627 in KexiView::slotSwitchToViewModeInternal (this=0x886d6c8, mode=Kexi::DesignViewMode) at /build/buildd/calligra-2.5.0/kexi/core/KexiView.cpp:643
#19 0xb76386b3 in KexiView::slotSwitchToDesignViewModeInternal (this=0x886d6c8) at /build/buildd/calligra-2.5.0/kexi/core/KexiView.cpp:628
#20 0xb7638882 in qt_static_metacall (_a=0xbfae1028, _id=8, _o=0x886d6c8, _c=<optimized out>) at /build/buildd/calligra-2.5.0/obj-i686-linux-gnu/kexi/core/KexiView.moc:74
#21 KexiView::qt_static_metacall (_o=0x886d6c8, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0xbfae1028) at /build/buildd/calligra-2.5.0/obj-i686-linux-gnu/kexi/core/KexiView.moc:60
#22 0xb670f6b1 in QMetaObject::activate (sender=0x887d2a0, m=0xb75f07c8, local_signal_index=4, argv=0xbfae1028) at kernel/qobject.cpp:3547
#23 0xb739c9dd in QAbstractButton::toggled (this=0x887d2a0, _t1=true) at .moc/release-shared/moc_qabstractbutton.cpp:227
#24 0xb7092017 in QAbstractButton::setChecked (this=0x887d2a0, checked=true) at widgets/qabstractbutton.cpp:768
#25 0xb70921b0 in QAbstractButton::nextCheckState (this=0x887d2a0) at widgets/qabstractbutton.cpp:1022
#26 0xb716a420 in QToolButton::nextCheckState (this=0x887d2a0) at widgets/qtoolbutton.cpp:1142
#27 0xb7091c57 in QAbstractButtonPrivate::click (this=0x8793b60) at widgets/qabstractbutton.cpp:530
#28 0xb7091f56 in QAbstractButton::mouseReleaseEvent (this=0x887d2a0, e=0xbfae1744) at widgets/qabstractbutton.cpp:1123
#29 0xb716a4ad in QToolButton::mouseReleaseEvent (this=0x887d2a0, e=0xbfae1744) at widgets/qtoolbutton.cpp:718
#30 0xb6cbf1ac in QWidget::event (this=0x887d2a0, event=0xbfae1744) at kernel/qwidget.cpp:8362
#31 0xb70911f9 in QAbstractButton::event (this=0x887d2a0, e=0xbfae1744) at widgets/qabstractbutton.cpp:1082
#32 0xb716bbdc in QToolButton::event (this=0x887d2a0, event=0xbfae1744) at widgets/qtoolbutton.cpp:1160
#33 0xb6c64ed4 in notify_helper (e=0xbfae1744, receiver=0x887d2a0, this=0x80bff08) at kernel/qapplication.cpp:4559
#34 QApplicationPrivate::notify_helper (this=0x80bff08, receiver=0x887d2a0, e=0xbfae1744) at kernel/qapplication.cpp:4531
#35 0xb6c6b024 in QApplication::notify (this=0x80bff08, receiver=0x887d2a0, e=0xbfae1744) at kernel/qapplication.cpp:4102
#36 0xb583a2a1 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#37 0xb66f897e in QCoreApplication::notifyInternal (this=0x80b3560, receiver=0x887d2a0, event=0xbfae1744) at kernel/qcoreapplication.cpp:876
#38 0xb6c65e95 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#39 QApplicationPrivate::sendMouseEvent (receiver=0x887d2a0, event=0xbfae1744, alienWidget=0x887d2a0, nativeWidget=0x837f588, buttonDown=0xb75f9cf4, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#40 0xb6cf2074 in QETWidget::translateMouseEvent (this=0x837f588, event=0xbfae1bfc) at kernel/qapplication_x11.cpp:4617
#41 0xb6cf0c0d in QApplication::x11ProcessEvent (this=0x80b3560, event=0xbfae1bfc) at kernel/qapplication_x11.cpp:3732
#42 0xb6d1deac in x11EventSourceDispatch (s=0x80b79e8, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#43 0xb5401cda in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#44 0xb54020e5 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#45 0xb54021c1 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#46 0xb672b887 in QEventDispatcherGlib::processEvents (this=0x8069e88, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#47 0xb6d1daaa in QGuiEventDispatcherGlib::processEvents (this=0x8069e88, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#48 0xb66f750d in QEventLoop::processEvents (this=0xbfae1ef4, flags=...) at kernel/qeventloop.cpp:149
#49 0xb66f77a9 in QEventLoop::exec (this=0xbfae1ef4, flags=...) at kernel/qeventloop.cpp:204
#50 0xb66fceba in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#51 0xb6c62a74 in QApplication::exec () at kernel/qapplication.cpp:3820
#52 0x080486cd in main (argc=1, argv=0xbfae2004) at /build/buildd/calligra-2.5.0/kexi/main.cpp:36

Reported using DrKonqi
Comment 1 robert leleu 2012-10-03 13:28:21 UTC
don't take in account
the query used to feed the report was defectuous.
It showed twice a same field.
Comment 2 Jarosław Staniek 2012-10-03 19:29:34 UTC
Thanks for the report. Regardless of the reason, in ideal world the app should not crash so if you attach sample query that causes the crash we would be able to improve.
Comment 3 robert leleu 2012-10-03 19:43:36 UTC
I corrected it
I try to reprduce in a sample database.


la 03/10/2012 21:29, Jarosław Staniek skribis (esperanto estas la unua 
internacia lingvo)
> https://bugs.kde.org/show_bug.cgi?id=307772
>
> --- Comment #2 from Jarosław Staniek <staniek@kde.org> ---
> Thanks for the report. Regardless of the reason, in ideal world the app should
> not crash so if you attach sample query that causes the crash we would be able
> to improve.
>
Comment 4 Jarosław Staniek 2012-10-03 19:49:23 UTC
Yes, I noticed you corrected it. Since you're good at finding and analyzing issues, in the future I propose to first back up the database after crash like that before any attempts to fix the issue. This way reproduction can be much easier.
Comment 5 Jarosław Staniek 2014-06-27 21:56:42 UTC
@Robert
"the query used to feed the report was defectuous. It showed twice a same field"
Looks like a bug that we fixed in 2.8.3 or so.
Comment 6 robert leleu 2014-06-28 10:15:14 UTC
indeed

I use the neon kexi, and I had not recently experienced this bug.