Bug 281246 - Kexi fails when label is text aligned right
Summary: Kexi fails when label is text aligned right
Status: CLOSED DUPLICATE of bug 342371
Alias: None
Product: KEXI
Classification: Applications
Component: General (show other bugs)
Version: 2.3.3 (KOffice 2.3.3)
Platform: Ubuntu Linux
: NOR crash
Target Milestone: 2.9
Assignee: Jarosław Staniek
URL:
Keywords:
: 315198 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-03 03:41 UTC by jagand
Modified: 2015-02-25 21:35 UTC (History)
3 users (show)

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


Attachments
New crash information added by DrKonqi (9.55 KB, text/plain)
2013-03-04 14:01 UTC, Dirk Sarpe
Details
New crash information added by DrKonqi (5.32 KB, text/plain)
2015-02-02 04:20 UTC, Fahad Alduraibi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jagand 2011-09-03 03:41:49 UTC
Application: kexi (2.3.3 (KOffice 2.3.3))
KDE Platform Version: 4.6.2 (4.6.2)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-11-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
I created a form in kexi. I added a label and then did a right align of label text using an option provided. It failed. I repeated the action and result was same. Hence right aligning label test in Kexi will shut the application

-- Backtrace:
Application: Kexi (kexi), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f3a976847a0 (LWP 8894))]

Thread 3 (Thread 0x7f3a87648700 (LWP 8895)):
#0  0x00007f3a95e3ff03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f3a92822104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3a928229f2 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3a87fa7c44 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f3a928493e4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3a92cedd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f3a95e4d04d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f3a73cb1700 (LWP 8897)):
#0  0x00007f3a95e3ff03 in poll () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f3a92822104 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3a92822639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3a96281446 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#4  0x00007f3a96255882 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007f3a96255abc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007f3a9616c924 in QThread::exec() () from /usr/lib/libQtCore.so.4
#7  0x00007f3a96237c2f in ?? () from /usr/lib/libQtCore.so.4
#8  0x00007f3a9616f175 in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007f3a92cedd8c in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007f3a95e4d04d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3a976847a0 (LWP 8894)):
[KCrash Handler]
#6  0x00007f3a71dd0b47 in KFormDesigner::PropertyCommand::propertyName() const () from /usr/lib/libkformdesigner.so.8
#7  0x00007f3a71dabf8b in KFormDesigner::Form::saveAlignProperty(QString const&) () from /usr/lib/libkformdesigner.so.8
#8  0x00007f3a71db064d in KFormDesigner::Form::slotPropertyChanged(KoProperty::Set&, KoProperty::Property&) () from /usr/lib/libkformdesigner.so.8
#9  0x00007f3a71db77b7 in KFormDesigner::Form::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkformdesigner.so.8
#10 0x00007f3a9626b5f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#11 0x00007f3a95362627 in KoProperty::Set::propertyChanged(KoProperty::Set&, KoProperty::Property&) () from /usr/lib/libkoproperty.so.8
#12 0x00007f3a9535f04c in KoProperty::Property::emitPropertyChanged() () from /usr/lib/libkoproperty.so.8
#13 0x00007f3a9535fa50 in KoProperty::Property::setValue(QVariant const&, bool, bool) () from /usr/lib/libkoproperty.so.8
#14 0x00007f3a9536de6d in KoProperty::EditorDataModel::setData(QModelIndex const&, QVariant const&, int) () from /usr/lib/libkoproperty.so.8
#15 0x00007f3a96ca6d00 in QItemDelegate::setModelData(QWidget*, QAbstractItemModel*, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#16 0x00007f3a96c5b1e0 in QAbstractItemView::commitData(QWidget*) () from /usr/lib/libQtGui.so.4
#17 0x00007f3a9536bee1 in KoProperty::EditorView::commitData(QWidget*) () from /usr/lib/libkoproperty.so.8
#18 0x00007f3a9536d3d5 in KoProperty::EditorView::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkoproperty.so.8
#19 0x00007f3a9626b5f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#20 0x00007f3a96dc379f in QAbstractItemDelegate::commitData(QWidget*) () from /usr/lib/libQtGui.so.4
#21 0x00007f3a96dc391f in QAbstractItemDelegate::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#22 0x00007f3a96ca75c5 in QItemDelegate::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#23 0x00007f3a9626b5f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0x00007f3a95372a3f in KoProperty::ComboBox::commitData(QWidget*) () from /usr/lib/libkoproperty.so.8
#25 0x00007f3a95372b6b in KoProperty::ComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkoproperty.so.8
#26 0x00007f3a9626b5f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#27 0x00007f3a96b1f721 in QComboBox::activated(int) () from /usr/lib/libQtGui.so.4
#28 0x00007f3a96b1f7a2 in ?? () from /usr/lib/libQtGui.so.4
#29 0x00007f3a96b20737 in ?? () from /usr/lib/libQtGui.so.4
#30 0x00007f3a96b23bc7 in QComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#31 0x00007f3a93bf0cb5 in KComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#32 0x00007f3a95372a85 in KoProperty::ComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkoproperty.so.8
#33 0x00007f3a9626b5f8 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#34 0x00007f3a96dbd952 in ?? () from /usr/lib/libQtGui.so.4
#35 0x00007f3a96b1ae81 in ?? () from /usr/lib/libQtGui.so.4
#36 0x00007f3a96256627 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#37 0x00007f3a967449c1 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#38 0x00007f3a96749dc3 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#39 0x00007f3a93b4d866 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#40 0x00007f3a9625649c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#41 0x00007f3a96745a1d in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQtGui.so.4
#42 0x00007f3a967c73e4 in ?? () from /usr/lib/libQtGui.so.4
#43 0x00007f3a967c5ab7 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#44 0x00007f3a967ee842 in ?? () from /usr/lib/libQtGui.so.4
#45 0x00007f3a92821bcd in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007f3a928223a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f3a92822639 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f3a962813ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0x00007f3a967ee4de in ?? () from /usr/lib/libQtGui.so.4
#50 0x00007f3a96255882 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#51 0x00007f3a96255abc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#52 0x00007f3a96259ecb in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#53 0x0000000000400899 in _start ()

Reported using DrKonqi
Comment 1 Jarosław Staniek 2011-12-03 23:48:35 UTC
Nobody in the team was able to reproduce this. It would help a lot if you test on Kexi 2.4 beta2 or later version.
Comment 2 Jarosław Staniek 2011-12-04 21:15:14 UTC
Better backgrace from Adam Pigg:

Application: Kexi (kexi), signal: Segmentation fault
[KCrash Handler]
#6  ref (this=0xffffff00ffffff) at /usr/include/QtCore/qatomic_x86_64.h:121
#7  QByteArray (a=..., this=0x7fff54dabb10) at /usr/include/QtCore/qbytearray.h:422
#8  KFormDesigner::PropertyCommand::propertyName (this=0xe031e0) at /home/piggz/.local/src/calligra/kexi/formeditor/commands.cpp:272
#9  0x00007fcbc5a3a05f in KFormDesigner::Form::saveAlignProperty (this=0xd4d640, property=<optimized out>) at /home/piggz/.local/src/calligra/kexi/formeditor/form.cpp:3165
#10 0x00007fcbc5a3eb37 in KFormDesigner::Form::slotPropertyChanged (this=0xd4d640, set=<optimized out>, p=...) at /home/piggz/.local/src/calligra/kexi/formeditor/form.cpp:1871
#11 0x00007fcbc5a445e7 in KFormDesigner::Form::qt_metacall (this=0xd4d640, _c=QMetaObject::InvokeMetaMethod, _id=65, _a=0x7fff54dabef0) at /home/piggz/.local/src/calligra-build/kexi/formeditor/form.moc:260
#12 0x00007fcbd7a3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#13 0x00007fcbdc9187c7 in KoProperty::Set::propertyChanged (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>) at /home/piggz/.local/src/calligra-build/libs/koproperty/Set.moc:99
#14 0x00007fcbdc9130f4 in KoProperty::Property::emitPropertyChanged (this=0xd14a10) at /home/piggz/.local/src/calligra/libs/koproperty/Property.cpp:804
#15 0x00007fcbdc9142f8 in setValue (useComposedProperty=<optimized out>, rememberOldValue=true, value=..., this=0xd14a10) at /home/piggz/.local/src/calligra/libs/koproperty/Property.cpp:443
#16 KoProperty::Property::setValue (this=0xd14a10, value=..., rememberOldValue=true, useComposedProperty=<optimized out>) at /home/piggz/.local/src/calligra/libs/koproperty/Property.cpp:366
#17 0x00007fcbdc92438d in setData (value=..., index=<optimized out>, this=0xd855c0, role=<optimized out>) at /home/piggz/.local/src/calligra/libs/koproperty/EditorDataModel.cpp:316
#18 KoProperty::EditorDataModel::setData (this=0xd855c0, index=<optimized out>, value=..., role=<optimized out>) at /home/piggz/.local/src/calligra/libs/koproperty/EditorDataModel.cpp:307
#19 0x00007fcbd8474d7f in QItemDelegate::setModelData(QWidget*, QAbstractItemModel*, QModelIndex const&) const () from /usr/lib64/libQtGui.so.4
#20 0x00007fcbd8428afa in QAbstractItemView::commitData(QWidget*) () from /usr/lib64/libQtGui.so.4
#21 0x00007fcbdc922221 in KoProperty::EditorView::commitData (this=0x997a80, editor=<optimized out>) at /home/piggz/.local/src/calligra/libs/koproperty/EditorView.cpp:542
#22 0x00007fcbdc923ff5 in KoProperty::EditorView::qt_metacall (this=0x997a80, _c=QMetaObject::InvokeMetaMethod, _id=10, _a=0x7fff54dac450) at /home/piggz/.local/src/calligra-build/libs/koproperty/EditorView.moc:111
#23 0x00007fcbd7a3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#24 0x00007fcbd8593d3f in QAbstractItemDelegate::commitData(QWidget*) () from /usr/lib64/libQtGui.so.4
#25 0x00007fcbd8593ebf in QAbstractItemDelegate::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#26 0x00007fcbd8475575 in QItemDelegate::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#27 0x00007fcbd7a3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#28 0x00007fcbdc92913f in KoProperty::ComboBox::commitData (this=<optimized out>, _t1=0xe559d0) at /home/piggz/.local/src/calligra-build/libs/koproperty/combobox.moc:123
#29 0x00007fcbdc92926b in KoProperty::ComboBox::qt_metacall (this=0xe559d0, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fff54dac6b0) at /home/piggz/.local/src/calligra-build/libs/koproperty/combobox.moc:84
#30 0x00007fcbd7a3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#31 0x00007fcbd82edbc1 in QComboBox::activated(int) () from /usr/lib64/libQtGui.so.4
#32 0x00007fcbd82edc42 in ?? () from /usr/lib64/libQtGui.so.4
#33 0x00007fcbd82eebd7 in ?? () from /usr/lib64/libQtGui.so.4
#34 0x00007fcbd82f2097 in QComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libQtGui.so.4
#35 0x00007fcbd967a0e5 in KComboBox::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/libkdeui.so.5
#36 0x00007fcbdc929185 in KoProperty::ComboBox::qt_metacall (this=0xe559d0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff54dac8a0) at /home/piggz/.local/src/calligra-build/libs/koproperty/combobox.moc:77
#37 0x00007fcbd7a3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#38 0x00007fcbd858dd42 in ?? () from /usr/lib64/libQtGui.so.4
#39 0x00007fcbd82e923a in ?? () from /usr/lib64/libQtGui.so.4
#40 0x00007fcbd7a1f9a8 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#41 0x00007fcbd7f21baf in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#42 0x00007fcbd7f2736b in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#43 0x00007fcbd95e1e36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#44 0x00007fcbd7a1f81c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#45 0x00007fcbd7f22bb2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQtGui.so.4
#46 0x00007fcbd7f9f201 in ?? () from /usr/lib64/libQtGui.so.4
#47 0x00007fcbd7f9da2a in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#48 0x00007fcbd7fc52a2 in ?? () from /usr/lib64/libQtGui.so.4
#49 0x00007fcbd0de458d in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#50 0x00007fcbd0de4d88 in ?? () from /usr/lib64/libglib-2.0.so.0
#51 0x00007fcbd0de4f59 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#52 0x00007fcbd7a4a50f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#53 0x00007fcbd7fc4f2e in ?? () from /usr/lib64/libQtGui.so.4
#54 0x00007fcbd7a1ea22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#55 0x00007fcbd7a1ec1f in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#56 0x00007fcbd7a22de7 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#57 0x00000000004009e9 in main (argc=<optimized out>, argv=<optimized out>) at /home/piggz/.local/src/calligra/kexi/main.cpp:34
Comment 3 Jarosław Staniek 2013-02-28 23:26:43 UTC
*** Bug 315198 has been marked as a duplicate of this bug. ***
Comment 4 Dirk Sarpe 2013-03-04 14:01:29 UTC
Created attachment 77744 [details]
New crash information added by DrKonqi

kexi (2.6.0) on KDE Platform 4.10.00 using Qt 4.8.3

- What I was doing when the application crashed:

changed alignment of label from left to right

-- Backtrace (Reduced):
#6  QByteArray (a=..., this=0x7fff8b1ebf50) at /usr/include/qt4/QtCore/qbytearray.h:439
#7  KFormDesigner::PropertyCommand::propertyName (this=0x2cb5060) at /build/buildd/calligra-2.6.0/kexi/formeditor/commands.cpp:272
#8  0x00007f338b504d35 in KFormDesigner::Form::saveAlignProperty (this=this@entry=0x2c8eed0, property=...) at /build/buildd/calligra-2.6.0/kexi/formeditor/form.cpp:3161
#9  0x00007f338b509165 in KFormDesigner::Form::slotPropertyChanged (this=0x2c8eed0, set=..., p=...) at /build/buildd/calligra-2.6.0/kexi/formeditor/form.cpp:1874
#10 0x00007f338b50e062 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at /build/buildd/calligra-2.6.0/obj-x86_64-linux-gnu/kexi/formeditor/form.moc:237
Comment 5 Fahad Alduraibi 2015-02-02 04:20:37 UTC
Created attachment 90864 [details]
New crash information added by DrKonqi

kexi (2.8.7) on KDE Platform 4.14.3 using Qt 4.8.6

- What I was doing when the application crashed:

Created a new form, change layout direction to RTL, added a label and change direction also to RTL, then I tried to change the horizantal alignment to right but it crashed.

-- Backtrace (Reduced):
#5  0x00007f5683dc63de in KFormDesigner::PropertyCommand::propertyName() const () from /lib64/libkformdesigner.so.13
#6  0x00007f5683da066a in KFormDesigner::Form::saveAlignProperty(QString const&) () from /lib64/libkformdesigner.so.13
#7  0x00007f5683da5c30 in KFormDesigner::Form::slotPropertyChanged(KoProperty::Set&, KoProperty::Property&) () from /lib64/libkformdesigner.so.13
[...]
#10 0x000000316a83dab7 in KoProperty::Set::propertyChanged(KoProperty::Set&, KoProperty::Property&) () from /lib64/libkoproperty.so.13
#11 0x000000316a8386c4 in KoProperty::Property::emitPropertyChanged() () from /lib64/libkoproperty.so.13
Comment 6 Jarosław Staniek 2015-02-02 07:58:47 UTC
Hi, thanks for the crash information. This is older bug than #342371 but there's already work going on to add a fix in Kexi 2.9 so from now I'd suggest looking at #342371. Don't be afraid, crash info is kept.

*** This bug has been marked as a duplicate of bug 342371 ***
Comment 7 Jarosław Staniek 2015-02-02 08:01:11 UTC
@Fahad Alduraibi 
Another question: is changing the layout direction to RTL required step to observe the crash or not.
Comment 8 Fahad Alduraibi 2015-02-03 17:09:45 UTC
@Jarosław Staniek, I don't know, I just explained what I was doing in case it was related. Also, after the crash I started it again and did almost the same steps and it didn't crash.