Bug 231077 - Krita metadata editor is disabled when build with a different Qt version than the one running
Summary: Krita metadata editor is disabled when build with a different Qt version than...
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-17 10:51 UTC by Frank Schaefer
Modified: 2011-10-16 14:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Schaefer 2010-03-17 10:51:23 UTC
Application: krita (2.1.1)
KDE Platform Version: 4.4.1 (KDE 4.4.1) "release 227"
Qt Version: 4.6.2
Operating System: Linux 2.6.32.10-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

-- Information about the crash:
Iit seems like the picture type doesn't matter (tested with multiple PNG- and JPG-pictures).

The crash can be reproduced every time.

 -- Backtrace:
Application: Krita (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb54bbb20 (LWP 9219))]

Thread 2 (Thread 0xada91b90 (LWP 9224)):
#0  0xb58c63da in clock_gettime () from /lib/librt.so.1
#1  0xb6a901cb in ?? () from /usr/lib/libQtCore.so.4
#2  0xb6a9560b in ?? () from /usr/lib/libQtCore.so.4
#3  0xb6a9565a in ?? () from /usr/lib/libQtCore.so.4
#4  0xb6a97790 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0xb6a64eca in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0xb6a65312 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0xb695c438 in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0xb1c647c6 in KisProjection::run (this=0x88d4ea0) at /usr/src/debug/koffice-2.1.1/krita/image/kis_projection.cc:76
#9  0xb695f21e in ?? () from /usr/lib/libQtCore.so.4
#10 0xb68e51b5 in start_thread () from /lib/libpthread.so.0
#11 0xb5c453ae in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb54bbb20 (LWP 9219)):
[KCrash Handler]
#6  0xb5320313 in QFormInternal::domPropertyToVariant(QFormInternal::QAbstractFormBuilder*, QMetaObject const*, QFormInternal::DomProperty const*) () from /usr/lib/libplasma.so.3
#7  0xb52c2857 in QFormInternal::QAbstractFormBuilder::toVariant(QMetaObject const*, QFormInternal::DomProperty*) () from /usr/lib/libplasma.so.3
#8  0xb52dc5fe in QFormInternal::QFormBuilder::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) () from /usr/lib/libplasma.so.3
#9  0xb52b98c0 in QFormInternal::FormBuilderPrivate::applyProperties(QObject*, QList<QFormInternal::DomProperty*> const&) () from /usr/lib/libplasma.so.3
#10 0xb52c8d6b in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/libplasma.so.3
#11 0xb52ddc58 in QFormInternal::QFormBuilder::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/libplasma.so.3
#12 0xb52b87b3 in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomWidget*, QWidget*) () from /usr/lib/libplasma.so.3
#13 0xb52c38a4 in QFormInternal::QAbstractFormBuilder::create(QFormInternal::DomUI*, QWidget*) () from /usr/lib/libplasma.so.3
#14 0xb52dc33b in QFormInternal::QFormBuilder::create(QFormInternal::DomUI*, QWidget*) () from /usr/lib/libplasma.so.3
#15 0xb52b94f1 in QFormInternal::FormBuilderPrivate::create(QFormInternal::DomUI*, QWidget*) () from /usr/lib/libplasma.so.3
#16 0xadb86cb6 in QFormInternal::QAbstractFormBuilder::load (this=0xad50320, dev=0xbffbc610, parentWidget=0xbffbc778) at ../lib/uilib/abstractformbuilder.cpp:221
#17 0xadb701fa in QUiLoader::load (this=0xbffbc604, device=0xbffbc610, parentWidget=0xbffbc778) at quiloader.cpp:664
#18 0xadb6c4ea in KisMetaDataEditor (this=0xbffbc778, parent=0x883de28, originalStore=0x81607c8) at /usr/src/debug/koffice-2.1.1/krita/plugins/extensions/metadataeditor/kis_meta_data_editor.cc:77
#19 0xadb6ae63 in metadataeditorPlugin::slotEditLayerMetaData (this=0xb52e158) at /usr/src/debug/koffice-2.1.1/krita/plugins/extensions/metadataeditor/metadataeditor.cc:80
#20 0xadb6b0b5 in metadataeditorPlugin::qt_metacall (this=0xb52e158, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbffbc8bc)
    at /usr/src/debug/koffice-2.1.1/build/krita/plugins/extensions/metadataeditor/metadataeditor.moc:74
#21 0xb6a6bd85 in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#22 0xb6a7abe9 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#23 0xb5f2b939 in QAction::triggered(bool) () from /usr/lib/libQtGui.so.4
#24 0xb5f2dbef in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQtGui.so.4
#25 0xb63cecb4 in ?? () from /usr/lib/libQtGui.so.4
#26 0xb63d4fdb in ?? () from /usr/lib/libQtGui.so.4
#27 0xb63d5fb2 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQtGui.so.4
#28 0xb6d5b4a5 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#29 0xb5f91ae0 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#30 0xb63d76cf in QMenu::event(QEvent*) () from /usr/lib/libQtGui.so.4
#31 0xb5f3239c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#32 0xb5f3a57d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#33 0xb6d721ad in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#34 0xb6a668bb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#35 0xb5f39511 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#36 0xb5fc5f46 in ?? () from /usr/lib/libQtGui.so.4
#37 0xb5fc4fc5 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#38 0xb5ff1cb1 in ?? () from /usr/lib/libQtGui.so.4
#39 0xb6a64eca in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb6a65312 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0xb6a67b09 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#42 0xb5f32447 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#43 0xb780ca9d in kdemain (argc=1, argv=0x80a83c8) at /usr/src/debug/koffice-2.1.1/krita/main.cc:49
#44 0x0804e895 in _start ()

Possible duplicates by query: bug 214954.

Reported using DrKonqi
Comment 1 Cyrille Berger 2010-03-17 11:58:15 UTC
Was krita build with Qt 4.6 or Qt 4.5 ?
Comment 2 Frank Schaefer 2010-03-17 12:20:57 UTC
Qt 4.6.2
Comment 3 Sven Langkamp 2010-03-17 12:35:37 UTC
Could be the same problem as in bug 182810.
Comment 4 Cyrille Berger 2010-03-24 18:26:25 UTC
SVN commit 1107048 by berger:

Disable metadata editor if run with a version of Qt that is different
from the one used to build.

This is mostly caused by QtUiTools being a static library. And
unfortunately Nokia is unwilling to change that situation
http://bugreports.qt.nokia.com/browse/QTBUG-437

CCBUG: 231077


 M  +5 -0      metadataeditor.cc  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1107048
Comment 5 Cyrille Berger 2010-03-24 18:27:59 UTC
In the future we should probably use QML instead of QtUiTools
Comment 6 Frank Schaefer 2010-03-25 12:02:10 UTC
Hmm...interesting.
But I'm pretty sure that my KOffice-packages are build with the same Qt-version I'm using. The KDE and KOffice-packages depend on the Qt4.6.2-packages in the same repo.
Comment 7 Halla Rempt 2011-10-16 14:01:00 UTC
I'm going to close this bug as out of scope; if the fix committed by Cyrille wouldn't have worked, we would have seen this report more often. Either Qt Software fixes their uitools library, or we embark on a rewrite of the metadata editors, the former is "upstream" the latter is unlikely to happen.