Bug 819371

Summary: All Calligra Products segfault when opening a new doc / new from template
Product: [Fedora] Fedora Reporter: Ravishankar Srinivasan <ravis>
Component: calligraAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 17CC: awilliam, ltinkl, lukast.dev, rdieter, robatino, satellit
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: AcceptedBlocker
Fixed In Version: calligra-2.4.1-3.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-12 16:20:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 765956    

Description Ravishankar Srinivasan 2012-05-07 05:15:49 UTC
Description of problem:

All calligra components have the same issue i,e words, sheets and stage. Open each app and create new doc from pre-existing template. Observe the segfault

Version-Release number of selected component (if applicable):

[ravis@fatboy ~]$ uname -a
Linux fatboy 3.3.4-4.fc17.x86_64 #1 SMP Fri May 4 17:25:07 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[ravis@fatboy ~]$ rpm -qa | grep calligra
calligra-words-libs-2.4.1-1.fc17.x86_64
calligra-core-2.4.1-1.fc17.x86_64
calligra-sheets-libs-2.4.1-1.fc17.x86_64
calligra-stage-libs-2.4.1-1.fc17.x86_64
calligra-libs-2.4.1-1.fc17.x86_64
calligra-sheets-2.4.1-1.fc17.x86_64
calligra-stage-2.4.1-1.fc17.x86_64
calligra-kdchart-2.4.1-1.fc17.x86_64
calligra-words-2.4.1-1.fc17.x86_64


How reproducible:

Open any of the calligra apps and create a new doc from template

Steps to Reproduce:
1.
2.
3.
  
Actual results:

Segfault

Expected results:

Open without any error or segfault

Additional info:

Application: Calligra Words (calligrawords), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fef14eda880 (LWP 1456))]

Thread 2 (Thread 0x7fef03f3b700 (LWP 1457)):
#0  0x0000003fcdae8e9f in poll () from /lib64/libc.so.6
#1  0x00000037d6847984 in ?? () from /lib64/libglib-2.0.so.0
#2  0x00000037d6847aa4 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00000037dbda3a06 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#4  0x00000037dbd7495f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#5  0x00000037dbd74be8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#6  0x00000037dbc785a0 in QThread::exec() () from /lib64/libQtCore.so.4
#7  0x00000037dbd553df in ?? () from /lib64/libQtCore.so.4
#8  0x00000037dbc7b53b in ?? () from /lib64/libQtCore.so.4
#9  0x0000003fcde07d14 in start_thread () from /lib64/libpthread.so.0
#10 0x0000003fcdaf194d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fef14eda880 (LWP 1456)):
[KCrash Handler]
#5  0x0000003fe2efde50 in KoColorSet::nColors() () from /lib64/libpigmentcms.so.9
#6  0x0000003fe685bba6 in KoColorSetWidget::KoColorSetWidgetPrivate::fillColors() () from /lib64/libkowidgets.so.9
#7  0x0000003fe685c02b in KoColorSetWidget::setColorSet(KoColorSet*) () from /lib64/libkowidgets.so.9
#8  0x0000003fe685b623 in KoColorPopupAction::KoColorPopupAction(QObject*) () from /lib64/libkowidgets.so.9
#9  0x00007fef09c47d31 in ?? () from /usr/lib64/kde4/calligradockers.so
#10 0x00007fef09c4fd80 in ?? () from /usr/lib64/kde4/calligradockers.so
#11 0x0000003fe5ea5bb5 in KoMainWindow::createDockWidget(KoDockFactoryBase*) () from /lib64/libkomain.so.9
#12 0x0000003fe5ec2f7b in KoView::KoView(KoDocument*, QWidget*) () from /lib64/libkomain.so.9
#13 0x00007fef09eba2b0 in KWView::KWView(QString const&, KWDocument*, QWidget*) () from /lib64/libwordsprivate.so.9
#14 0x00007fef09eae572 in KWDocument::createViewInstance(QWidget*) () from /lib64/libwordsprivate.so.9
#15 0x0000003fe5e7908a in KoDocument::createView(QWidget*) () from /lib64/libkomain.so.9
#16 0x0000003fe5ea69a1 in KoMainWindow::setRootDocument(KoDocument*) () from /lib64/libkomain.so.9
#17 0x0000003fe5e7c358 in KoDocument::deleteOpenPane(bool) () from /lib64/libkomain.so.9
#18 0x0000003fe5e7cc92 in KoDocument::openTemplate(KUrl const&) () from /lib64/libkomain.so.9
#19 0x00000037dbd8c09f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib64/libQtCore.so.4
#20 0x0000003fe5ee04b5 in ?? () from /lib64/libkomain.so.9
#21 0x00000037dbd8c09f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib64/libQtCore.so.4
#22 0x0000003fe5edefb2 in ?? () from /lib64/libkomain.so.9
#23 0x0000003fe5ee984f in ?? () from /lib64/libkomain.so.9
#24 0x00000037dbd8c09f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /lib64/libQtCore.so.4
#25 0x00000037d8cce9f5 in QAbstractItemView::doubleClicked(QModelIndex const&) () from /lib64/libQtGui.so.4
#26 0x00000037d8d1972d in QTreeView::mouseDoubleClickEvent(QMouseEvent*) () from /lib64/libQtGui.so.4
#27 0x00000037d8819d1a in QWidget::event(QEvent*) () from /lib64/libQtGui.so.4
#28 0x00000037d8bc3a66 in QFrame::event(QEvent*) () from /lib64/libQtGui.so.4
#29 0x00000037d8cd1023 in QAbstractItemView::viewportEvent(QEvent*) () from /lib64/libQtGui.so.4
#30 0x00000037d8d14651 in QTreeView::viewportEvent(QEvent*) () from /lib64/libQtGui.so.4
#31 0x00000037dbd75ac6 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#32 0x00000037d87ca44c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#33 0x00000037d87cf20b in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#34 0x00000037daa45a56 in KApplication::notify(QObject*, QEvent*) () from /lib64/libkdeui.so.5
#35 0x00000037dbd7595e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#36 0x00000037d87cb2bb in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /lib64/libQtGui.so.4
#37 0x00000037d8845994 in ?? () from /lib64/libQtGui.so.4
#38 0x00000037d8844721 in QApplication::x11ProcessEvent(_XEvent*) () from /lib64/libQtGui.so.4
#39 0x00000037d886a73c in ?? () from /lib64/libQtGui.so.4
#40 0x00000037d68475cc in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#41 0x00000037d68479e8 in ?? () from /lib64/libglib-2.0.so.0
#42 0x00000037d6847aa4 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#43 0x00000037dbda39e6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#44 0x00000037d886a41e in ?? () from /lib64/libQtGui.so.4
#45 0x00000037dbd7495f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#46 0x00000037dbd74be8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#47 0x00000037dbd79718 in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#48 0x0000003fe7802bf5 in kdemain () from /lib64/libkdeinit4_calligrawords.so
#49 0x0000003fcda21735 in __libc_start_main () from /lib64/libc.so.6
#50 0x0000000000400881 in _start ()


Sorry can't attach debug logs. It asked me to download 1G worth of debuginfo RPM. I am on a 128Kbps line:-)

Comment 1 Lukas Tvrdy 2012-05-07 07:06:39 UTC
I remember this problem and it was fixed in the meantime in Calligra master.

Comment 3 Ravishankar Srinivasan 2012-05-07 07:19:26 UTC
Thanks Lukas! Any idea when this is going to hit Fedora repos?

Comment 4 Rex Dieter 2012-05-07 12:10:59 UTC
I'll apply the patch asap, hopefully within a few hours.

Comment 5 Rex Dieter 2012-05-07 12:12:01 UTC
nominating blocker, these apps often crash on initial launch.

Comment 6 Adam Williamson 2012-05-07 15:27:23 UTC
Discussed at 2012-05-07 QA meeting acting as a blocker review meeting. Accepted as a blocker per criterion "All applications listed under the Applications menu or category must withstand a basic functionality test and not crash after a few minutes of normal use".



-- 
Fedora Bugzappers volunteer triage team
https://fedoraproject.org/wiki/BugZappers

Comment 7 Rex Dieter 2012-05-07 15:27:57 UTC
Arg, cherry-picking that upstream patch against stock calligra-2.4.1 FTBFS (error appended).  Upstreams' calligra-2.4 branch seems to build ok, so perhaps there is some intermediate fixes that are required too.

any help would be appreciated.

--------------------------

In file included from /usr/include/QtCore/QPointer:1:0,
                 from /builddir/build/BUILD/calligra-2.4.1/libs/widgets/KoColorSetWidget.cpp:34:
/usr/include/QtCore/qpointer.h: In instantiation of 'QPointer<T>::operator T*() const [with T = KoColorSet]':
/builddir/build/BUILD/calligra-2.4.1/libs/widgets/KoColorSetWidget.cpp:85:17:   required from here
/usr/include/QtCore/qpointer.h:78:57: error: invalid static_cast from type 'QObject*' to type 'KoColorSet*'
/usr/include/QtCore/qpointer.h: In instantiation of 'T* QPointer<T>::operator->() const [with T = KoColorSet]':
/builddir/build/BUILD/calligra-2.4.1/libs/widgets/KoColorSetWidget.cpp:86:43:   required from here
/usr/include/QtCore/qpointer.h:74:57: error: invalid static_cast from type 'QObject*' to type 'KoColorSet*'
/usr/include/QtCore/qpointer.h: In instantiation of 'QPointer<T>& QPointer<T>::operator=(T*) [with T = KoColorSet]':
/builddir/build/BUILD/calligra-2.4.1/libs/widgets/KoColorSetWidget.cpp:170:19:   required from here
/usr/include/QtCore/qpointer.h:68:11: error: comparison between distinct pointer types 'QObject*' and 'KoColorSet*' lacks a cast
/usr/include/QtCore/qpointer.h:68:23: error: no matching function for call to 'QMetaObject::changeGuard(QObject**, KoColorSet*&)'
/usr/include/QtCore/qpointer.h:68:23: note: candidate is:
In file included from /usr/include/QtGui/qwindowdefs.h:45:0,
                 from /usr/include/QtGui/qwidget.h:45,
                 from /usr/include/QtGui/qaction.h:47,
                 from /usr/include/QtGui/qwidgetaction.h:45,
                 from /usr/include/QtGui/QWidgetAction:1,
                 from /builddir/build/BUILD/calligra-2.4.1/libs/widgets/KoColorSetWidget.h:24,
                 from /builddir/build/BUILD/calligra-2.4.1/libs/widgets/KoColorSetWidget.cpp:20:
/usr/include/QtCore/qobjectdefs.h:371:17: note: static void QMetaObject::changeGuard(QObject**, QObject*)
/usr/include/QtCore/qobjectdefs.h:371:17: note:   no known conversion for argument 2 from 'KoColorSet*' to 'QObject*'

Comment 8 Fedora Update System 2012-05-07 17:39:29 UTC
calligra-2.4.1-3.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/calligra-2.4.1-3.fc17

Comment 9 Fedora Update System 2012-05-07 22:25:55 UTC
Package calligra-2.4.1-3.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing calligra-2.4.1-3.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-7448/calligra-2.4.1-3.fc17
then log in and leave karma (feedback).

Comment 10 Fedora Update System 2012-05-12 16:20:23 UTC
calligra-2.4.1-3.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.