Summary: | Kexi crashed after attempt to change alignment in a text field | ||
---|---|---|---|
Product: | [Applications] KEXI | Reporter: | zwerg8_thorin |
Component: | Forms | Assignee: | Jarosław Staniek <staniek> |
Status: | CLOSED FIXED | ||
Severity: | crash | CC: | adam, albrecht.will, inksi, jagan.daruri, staniek |
Priority: | NOR | Keywords: | drkonqi |
Version: | 2.8.5 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kexi/e0bf198257421eef3a8e615f89219d17ee0a642c | Version Fixed In: | 3.0.2 |
Sentry Crash Report: | |||
Attachments: | attachment-4185-0.html |
Description
zwerg8_thorin
2014-12-31 14:06:48 UTC
Created attachment 90198 [details]
attachment-4185-0.html
Hi, thanks for the report!
By a text field do you mean "Text Box"?
Is your environment Plasma KDE or some other? And what is your widget style?
So far I failed to reproduce (oxygen or breeze or cleanlooks widget style).
It would help if you send a small .kexi file containing form that crashes in explained scenario.
On 01.01.2015 18:42, Jarosław Staniek wrote: > https://bugs.kde.org/show_bug.cgi?id=342371 > > Jarosław Staniek <staniek@kde.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Status|UNCONFIRMED |NEEDSINFO > Resolution|--- |WAITINGFORINFO > CC| |staniek@kde.org > > --- Comment #1 from Jarosław Staniek <staniek@kde.org> --- > Hi, thanks for the report! > By a text field do you mean "Text Box"? > > Is your environment Plasma KDE or some other? And what is your widget style? > So far I failed to reproduce (oxygen or breeze or cleanlooks widget style). > > It would help if you send a small .kexi file containing form that crashes in > explained scenario. > > Hi, thanks for the reply! Yes, I meant a "text box". I have KDE, with Breeze as widget style. For clarification: I had a form open in kexi, based on a data sheet for fictional characters I created. Then I wanted to create another form, based on a query using that same data sheet, specifically for characters with a certain occupation title. I managed to place the text boxes *somewhere* on the blank space, but when I wanted to bring them into the order I wanted, and attempted to change the text alignment in them, KEXI crashed. Every time. Reproduced! At least two text boxes have to be inserted... Thanks! *** Bug 281246 has been marked as a duplicate of this bug. *** More info: the crash manifests also for the image box widget's horizontalAlignment property. [KCrash Handler] #5 0x00007fef7e22bbdc in QByteArray::QByteArray (this=0x7fff1893bbf0, a=...) at /usr/include/qt4/QtCore/qbytearray.h:439 #6 0x00007fef7e26754f in KFormDesigner::PropertyCommand::propertyName (this=0x3312ec0) at dev/src/calligra-2.9/kexi/formeditor/commands.cpp:276 #7 0x00007fef7e242e6d in KFormDesigner::Form::saveAlignProperty (this=0x2d37170, property=...) at dev/src/calligra-2.9/kexi/formeditor/form.cpp:2254 #8 0x00007fef7e23c93e in KFormDesigner::Form::slotPropertyChanged (this=0x2d37170, set=..., p=...) at dev/src/calligra-2.9/kexi/formeditor/form.cpp:1254 #9 0x00007fef7e245fa7 in KFormDesigner::Form::qt_static_metacall (_o=0x2d37170, _c=QMetaObject::InvokeMetaMethod, _id=57, _a=0x7fff1893bf60) at dev/build/calligra-2.9/kexi/formeditor/form.moc:217 #10 0x00007fefb6c8c87a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #11 0x00007fefb5fd204f in KoProperty::Set::propertyChanged (this=0x2d37830, _t1=..., _t2=...) at dev/build/calligra-2.9/libs/koproperty/Set.moc:112 #12 0x00007fefb5fcb68a in KoProperty::Property::emitPropertyChanged (this=0x315c5d0) at dev/src/calligra-2.9/libs/koproperty/Property.cpp:757 #13 0x00007fefb5fca14b in KoProperty::Property::setValue (this=0x315c5d0, value=..., rememberOldValue=true, useComposedProperty=true) at dev/src/calligra-2.9/libs/koproperty/Property.cpp:407 #14 0x00007fefb5fe1c60 in KoProperty::EditorDataModel::setData (this=0x31cdc60, index=..., value=..., role=2) at dev/src/calligra-2.9/libs/koproperty/EditorDataModel.cpp:245 #15 0x00007fefb76eccb3 in QItemDelegate::setModelData(QWidget*, QAbstractItemModel*, QModelIndex const&) const () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #16 0x00007fefb76a0e4e in QAbstractItemView::commitData(QWidget*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #17 0x00007fefb5fdfbe3 in KoProperty::EditorView::commitData (this=0x27cf800, editor=0x34c0d10) at dev/src/calligra-2.9/libs/koproperty/EditorView.cpp:492 #18 0x00007fefb5fe047b in KoProperty::EditorView::qt_static_metacall (_o=0x27cf800, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fff1893c3a0) at dev/build/calligra-2.9/libs/koproperty/EditorView.moc:89 #19 0x00007fefb6c8c87a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #20 0x00007fefb77ff13f in QAbstractItemDelegate::commitData(QWidget*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #21 0x00007fefb6c8c87a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #22 0x00007fefb5fe7e57 in KoProperty::ComboBox::commitData (this=0x34c0d10, _t1=0x34c0d10) at dev/build/calligra-2.9/libs/koproperty/combobox.moc:136 #23 0x00007fefb5fe77ba in KoProperty::ComboBox::slotValueChanged (this=0x34c0d10) at dev/src/calligra-2.9/libs/koproperty/editors/combobox.cpp:218 #24 0x00007fefb5fe7c24 in KoProperty::ComboBox::qt_static_metacall (_o=0x34c0d10, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff1893c660) at dev/build/calligra-2.9/libs/koproperty/combobox.moc:60 #25 0x00007fefb6c8c87a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4 #26 0x00007fefb7573531 in QComboBox::activated(int) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #27 0x00007fefb75735ae in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 #28 0x00007fefb7573b99 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4 Please someone confirm if this has been fixed in 2.9.0 because there were related changes. *** Bug 348976 has been marked as a duplicate of this bug. *** Git commit e0bf198257421eef3a8e615f89219d17ee0a642c by Jaroslaw Staniek. Committed on 01/06/2017 at 20:35. Pushed by staniek into branch '3.0'. Fix possible crashes in form undo/redo, make it properly work with alignment properties of widgets Summary: Undo/redo alignment fixes + limit image set of available alignments in widgets depending on widget class (image box is special) Related: bug 380175, bug 348976 FIXED-IN:3.0.2 Test Plan: See https://bugs.kde.org/show_bug.cgi?id=380175#c0 Reviewers: piggz Reviewed By: piggz Tags: #kexi Differential Revision: https://phabricator.kde.org/D5969 M +12 -2 src/formeditor/WidgetInfo.cpp M +18 -1 src/formeditor/WidgetInfo.h M +54 -49 src/formeditor/form.cpp M +1 -1 src/formeditor/form.h M +3 -0 src/formeditor/form_p.cpp M +14 -4 src/kexiutils/utils.cpp M +4 -1 src/kexiutils/utils.h M +2 -0 src/plugins/forms/kexidbfactory.cpp https://commits.kde.org/kexi/e0bf198257421eef3a8e615f89219d17ee0a642c |