Bug 334187 - Seg-fault & crash when selecting New
Summary: Seg-fault & crash when selecting New
Status: RESOLVED WORKSFORME
Alias: None
Product: calligraplan
Classification: Applications
Component: general (show other bugs)
Version: 2.8.1
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Dag Andersen
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2014-05-01 16:11 UTC by kwintus
Modified: 2018-09-19 14:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (8.10 KB, text/plain)
2015-10-04 20:33 UTC, kwintus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kwintus 2014-05-01 16:11:11 UTC
After opening the program if I click on New the program seg-faults. The behaviour has been consistent across the last two updates.

Reproducible: Always

Steps to Reproduce:
1.Open Plan
2.Click on New
3.
Actual Results:  
Instant crash of program

Expected Results:  
A new plan instance

Application: Plan (calligraplan), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[KCrash Handler]
#5  0x00000000028ce518 in ?? ()
#6  0x0000003c9d780249 in QMetaObject::cast(QObject*) const () from /lib64/libQtCore.so.4
#7  0x0000003e18ea5e23 in KPlato::ResourceItemModel::parent(QModelIndex const&) const () from /lib64/libkplatomodels.so.13
#8  0x0000003c9f93d431 in QSortFilterProxyModelPrivate::source_to_proxy(QModelIndex const&) const () from /lib64/libQtGui.so.4
#9  0x0000003c9f93d54d in QSortFilterProxyModel::mapFromSource(QModelIndex const&) const () from /lib64/libQtGui.so.4
#10 0x0000003c9f935764 in QSortFilterProxyModel::parent(QModelIndex const&) const () from /lib64/libQtGui.so.4
#11 0x0000003c9f8f4fc2 in QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () from /lib64/libQtGui.so.4
#12 0x0000003c9f8f8b52 in QTreeView::drawTree(QPainter*, QRegion const&) const () from /lib64/libQtGui.so.4
#13 0x0000003c9f8fc2fc in QTreeView::paintEvent(QPaintEvent*) () from /lib64/libQtGui.so.4
#14 0x0000003c9f417860 in QWidget::event(QEvent*) () from /lib64/libQtGui.so.4
#15 0x0000003c9f7b363e in QFrame::event(QEvent*) () from /lib64/libQtGui.so.4
#16 0x0000003c9f8c11a3 in QAbstractItemView::viewportEvent(QEvent*) () from /lib64/libQtGui.so.4
#17 0x0000003c9f8fffc0 in QTreeView::viewportEvent(QEvent*) () from /lib64/libQtGui.so.4
#18 0x0000003c9d77a036 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#19 0x0000003c9f3c84bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#20 0x0000003c9f3ceaa0 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#21 0x0000003e15260b87 in KoApplication::notify(QObject*, QEvent*) () from /lib64/libkomain.so.13
#22 0x0000003c9d779ecd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#23 0x0000003c9f411f81 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#24 0x0000003c9f4129b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#25 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#26 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#27 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#28 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#29 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#30 0x0000003c9f411b3c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#31 0x0000003c9f4129b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#32 0x0000003c9f411b3c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#33 0x0000003c9f4129b0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#34 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#35 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#36 0x0000003c9f41281f in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#37 0x0000003c9f411b3c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /lib64/libQtGui.so.4
#38 0x0000003c9f5cfb3e in QWidgetBackingStore::sync() () from /lib64/libQtGui.so.4
#39 0x0000003c9f407390 in QWidgetPrivate::syncBackingStore() () from /lib64/libQtGui.so.4
#40 0x0000003c9f4173da in QWidget::event(QEvent*) () from /lib64/libQtGui.so.4
#41 0x0000003c9f7cc003 in QMainWindow::event(QEvent*) () from /lib64/libQtGui.so.4
#42 0x000000336d72c229 in KXmlGuiWindow::event(QEvent*) () from /lib64/libkdeui.so.5
#43 0x0000003c9f3c84dc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#44 0x0000003c9f3ceaa0 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#45 0x0000003e15260b87 in KoApplication::notify(QObject*, QEvent*) () from /lib64/libkomain.so.13
#46 0x0000003c9d779ecd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#47 0x0000003c9d77ce2d in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQtCore.so.4
#48 0x0000003c9d7a7473 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQtCore.so.4
#49 0x0000003c9ca47dc6 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#50 0x0000003c9ca48118 in g_main_context_iterate.isra.22 () from /lib64/libglib-2.0.so.0
#51 0x0000003c9ca481bc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#52 0x0000003c9d7a6d35 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#53 0x0000003c9f464ea6 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtGui.so.4
#54 0x0000003c9d778b2f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#55 0x0000003c9d778e25 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#56 0x0000003c9d77e0a9 in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#57 0x0000003e16601a75 in kdemain () from /lib64/libkdeinit4_calligraplan.so
#58 0x0000003015a21b45 in __libc_start_main () from /lib64/libc.so.6
#59 0x00000000004008e1 in _start ()
Comment 1 Friedrich W. H. Kossebau 2014-10-12 15:41:17 UTC
Hi kwintus. Thanks for reporting this problem. What do you mean exactly by "2.Click on New"? The entry "New" in the submenu "File"?

When selecting this entry I cannot reproduce the crash with the development version of Calligra Plan at least, all works fine.

Can you please try a newer version (2.8.6 is the latest) and tell if this problem still exists?
Comment 2 kwintus 2015-10-04 20:33:36 UTC
Created attachment 94843 [details]
New crash information added by DrKonqi

calligraplan (2.9.7) on KDE Platform 4.14.9 using Qt 4.8.6

- What I was doing when the application crashed: The previous bug report was mine and occured on Fedora 19. I am currently on Fedora 21 KDE Desktop fully updated  with Plan 2.9.7. I had not attempted to use Plan for quite some time but after seeing updates for it today, Oct 4, 1015 decided to see what had changed. I opened the program from the KDE menu and  from the main interface, with "Simple" highlighted in the left screen bar, selected "Basic Project" by double clicking. With the project screen open I clicked on the icon "New" directly under menu item File. Plan crashed instantly and repeatedly with the same sequence.
  Selecting "8 hour day, 40 hour week" or "Plain"  from templates leads to an introduction page but does not open a template. Plan does not crash when selecting "New" via icon or File from the introduction page but returns to the initial interface.

-- Backtrace (Reduced):
#8  0x00007ff19e4d6803 in KPlato::ResourceItemModel::parent(QModelIndex const&) const () from /lib64/libkplatomodels.so.14
#9  0x00007ff1c66bd2a1 in QSortFilterProxyModelPrivate::source_to_proxy(QModelIndex const&) const () from /lib64/libQtGui.so.4
#10 0x00007ff1c66bd5bd in QSortFilterProxyModel::parent(QModelIndex const&) const () from /lib64/libQtGui.so.4
#11 0x00007ff1c6674778 in QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () from /lib64/libQtGui.so.4
#12 0x00007ff1c66778b4 in QTreeView::drawTree(QPainter*, QRegion const&) const () from /lib64/libQtGui.so.4
Comment 3 Andrew Crouthamel 2018-09-19 14:32:55 UTC
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.