Bug 262760 - Crash when editing a label
Summary: Crash when editing a label
Status: RESOLVED NOT A BUG
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 2.0.3
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 2.0.3
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-10 15:46 UTC by Nicolas Brisset
Modified: 2011-01-19 20:26 UTC (History)
1 user (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 Nicolas Brisset 2011-01-10 15:46:50 UTC
Version:           2.0.3
OS:                Linux

Kst crashes when a label is edited

Reproducible: Always

Steps to Reproduce:
1) start a session and load a curve in a plot
2) add a label to the plot, e.g. "Test string" through the toolbar or Create->Annotation->Label menu
3) After hitting OK, position the label => until there everything is fine
4) Now right-click on the label, choose "Edit" in the context menu => CRASH

Actual Results:  
Crash

Expected Results:  
It should bring up the label dialog to allow editing the label

OS: Linux
Comment 1 Peter Kümmel 2011-01-10 16:13:19 UTC
Does not crash on Windows.
Comment 2 Nicolas Brisset 2011-01-10 16:28:52 UTC
You made me doubt, so I just exported a completely clean tree from svn where I'm sure nothing has been built previously, and compiled it with cmake 2.8.3 on openSuse 11.1 64 bits, Qt 4.7.1.
It still crashes...
I could easily try a hand-compiled Qt 4.7.0, if I knew how to get cmake to pick it up...
Comment 3 Peter Kümmel 2011-01-10 20:43:05 UTC
Doesn't crash on a 32bit Ubuntu Qt 4.7.0

Don't you get a backtrace with QtCreator?
Comment 4 Nicolas Brisset 2011-01-11 08:51:13 UTC
I do get a backtrace. I have launched the program from ddd (not QtCreator) and from what I see it looks more like a Qt bug. The strange thing is that I get a never-ending list when I type "where", it seems to repeat itself in an infinite recursion. I have no idea whether that is normal, a debugger bug, or a Qt bug. 
In any case, I have copied only the first lines, with one or 2 loops of the part that repeats.
In the meantime I have tried Qt 4.7.0 and 4.7.1 and both exhibit this behavior on my work PC. At home I have a 32 bits installation (openSuse 11.3) and it does not crash... I don't know how to handle this now. If it really is a Qt bug, it's not as easy to fix as a kst one.

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff515c475 in ?? () from /lib64/libc.so.6
(gdb) where
#0  0x00007ffff515c475 in ?? () from /lib64/libc.so.6
#1  0x00007ffff515e851 in malloc () from /lib64/libc.so.6
#2  0x00007ffff5973f4d in operator new(unsigned long) () from /usr/lib64/libstdc++.so.6
#3  0x00007ffff6cc48b4 in node_construct (this=0x9ead78, before=<value optimized out>, t=...) at ../../include/QtCore/../../src/corelib/tools/qlist.h:359
#4  QList<QPostEvent>::insert (this=0x9ead78, before=<value optimized out>, t=...) at ../../include/QtCore/../../src/corelib/tools/qlist.h:442
#5  0x00007ffff6cc2fde in QCoreApplication::postEvent (receiver=0xdb5ca0, event=0x11e4160, priority=0) at kernel/qcoreapplication.cpp:1186
#6  0x00007ffff6cd2f7b in queued_activate (sender=0xe34230, signal=31, c=0xd89150, argv=0x7fffff7ff340, semaphore=0x0) at kernel/qobject.cpp:3150
#7  0x00007ffff6cd852b in QMetaObject::activate (sender=0xe34230, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x1196bc0) at kernel/qobject.cpp:3243
#8  0x00007ffff66e08df in QAbstractSlider::rangeChanged (this=0x7ffff543aa00, _t1=0, _t2=0) at .moc/release-shared/moc_qabstractslider.cpp:208
#9  0x00007ffff63e7c55 in QAbstractSlider::setRange (this=0xe34230, min=<value optimized out>, max=<value optimized out>) at widgets/qabstractslider.cpp:251
#10 0x00007ffff65867e3 in QListView::updateGeometries (this=0xdb5ca0) at itemviews/qlistview.cpp:1491
#11 0x00007ffff605cd68 in QWidget::event (this=0xdb5ca0, event=0x7fffff800120) at kernel/qwidget.cpp:8341
#12 0x00007ffff642e64b in QFrame::event (this=0xdb5ca0, e=0x7fffff800120) at widgets/qframe.cpp:557
#13 0x00007ffff6566d1d in QAbstractItemView::viewportEvent (this=0xdb5ca0, event=0x7fffff800120) at itemviews/qabstractitemview.cpp:1619
#14 0x00007ffff6cbfe88 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0xd90f00, event=0x7fffff800120) at kernel/qcoreapplication.cpp:847
#15 0x00007ffff6004aac in QApplicationPrivate::notify_helper (this=0x9ed100, receiver=0xd90f00, e=0x7fffff800120) at kernel/qapplication.cpp:4392
#16 0x00007ffff600e480 in QApplication::notify (this=0x7fffffffd0b0, receiver=0xd90f00, e=0x7fffff800120) at kernel/qapplication.cpp:4277
#17 0x00007ffff6cc067c in QCoreApplication::notifyInternal (this=0x7fffffffd0b0, receiver=0xd90f00, event=0x7fffff800120) at kernel/qcoreapplication.cpp:732
#18 0x00007ffff60ad112 in sendEvent (this=0xe23f10, x=<value optimized out>, y=3, w=<value optimized out>, h=0, isMove=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#19 QWidgetPrivate::setGeometry_sys (this=0xe23f10, x=<value optimized out>, y=3, w=<value optimized out>, h=0, isMove=true) at kernel/qwidget_x11.cpp:2606
#20 0x00007ffff605bc77 in QWidget::setGeometry (this=0xd90f00, r=...) at kernel/qwidget.cpp:6789
#21 0x00007ffff64bcb34 in QAbstractScrollAreaPrivate::layoutChildren (this=0xda1d10) at widgets/qabstractscrollarea.cpp:480
#22 0x00007ffff64bd198 in QAbstractScrollArea::event (this=0xdb5ca0, e=0x18) at widgets/qabstractscrollarea.cpp:924
#23 0x00007ffff6560113 in QAbstractItemView::event (this=0xdb5ca0, event=0x7fffff800ab0) at itemviews/qabstractitemview.cpp:1555
#24 0x00007ffff6004add in QApplicationPrivate::notify_helper (this=0x9ed100, receiver=0xdb5ca0, e=0x7fffff800ab0) at kernel/qapplication.cpp:4396
#25 0x00007ffff600e480 in QApplication::notify (this=0x7fffffffd0b0, receiver=0xdb5ca0, e=0x7fffff800ab0) at kernel/qapplication.cpp:4277
#26 0x00007ffff6cc067c in QCoreApplication::notifyInternal (this=0x7fffffffd0b0, receiver=0xdb5ca0, event=0x7fffff800ab0) at kernel/qcoreapplication.cpp:732
#27 0x00007ffff605ba81 in sendEvent (this=0xdb5ca0, left=<value optimized out>, top=<value optimized out>, right=<value optimized out>, bottom=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#28 QWidget::setContentsMargins (this=0xdb5ca0, left=<value optimized out>, top=<value optimized out>, right=<value optimized out>, bottom=<value optimized out>) at kernel/qwidget.cpp:7014
#29 0x00007ffff64bce56 in QAbstractScrollAreaPrivate::layoutChildren (this=0xda1d10) at widgets/qabstractscrollarea.cpp:403
#30 0x00007ffff6586896 in QListView::updateGeometries (this=0xdb5ca0) at itemviews/qlistview.cpp:1499
#31 0x00007ffff605cd68 in QWidget::event (this=0xdb5ca0, event=0x7fffff801aa0) at kernel/qwidget.cpp:8341
#32 0x00007ffff642e64b in QFrame::event (this=0xdb5ca0, e=0x7fffff801aa0) at widgets/qframe.cpp:557
#33 0x00007ffff6566d1d in QAbstractItemView::viewportEvent (this=0xdb5ca0, event=0x7fffff801aa0) at itemviews/qabstractitemview.cpp:1619
#34 0x00007ffff6cbfe88 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0xd90f00, event=0x7fffff801aa0) at kernel/qcoreapplication.cpp:847
#35 0x00007ffff6004aac in QApplicationPrivate::notify_helper (this=0x9ed100, receiver=0xd90f00, e=0x7fffff801aa0) at kernel/qapplication.cpp:4392
#36 0x00007ffff600e480 in QApplication::notify (this=0x7fffffffd0b0, receiver=0xd90f00, e=0x7fffff801aa0) at kernel/qapplication.cpp:4277
#37 0x00007ffff6cc067c in QCoreApplication::notifyInternal (this=0x7fffffffd0b0, receiver=0xd90f00, event=0x7fffff801aa0) at kernel/qcoreapplication.cpp:732
#38 0x00007ffff60ad112 in sendEvent (this=0xe23f10, x=<value optimized out>, y=3, w=<value optimized out>, h=0, isMove=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#39 QWidgetPrivate::setGeometry_sys (this=0xe23f10, x=<value optimized out>, y=3, w=<value optimized out>, h=0, isMove=true) at kernel/qwidget_x11.cpp:2606
#40 0x00007ffff605bc77 in QWidget::setGeometry (this=0xd90f00, r=...) at kernel/qwidget.cpp:6789
#41 0x00007ffff64bcb34 in QAbstractScrollAreaPrivate::layoutChildren (this=0xda1d10) at widgets/qabstractscrollarea.cpp:480
#42 0x00007ffff64bd198 in QAbstractScrollArea::event (this=0xdb5ca0, e=0x18) at widgets/qabstractscrollarea.cpp:924
#43 0x00007ffff6560113 in QAbstractItemView::event (this=0xdb5ca0, event=0x7fffff802430) at itemviews/qabstractitemview.cpp:1555
#44 0x00007ffff6004add in QApplicationPrivate::notify_helper (this=0x9ed100, receiver=0xdb5ca0, e=0x7fffff802430) at kernel/qapplication.cpp:4396
#45 0x00007ffff600e480 in QApplication::notify (this=0x7fffffffd0b0, receiver=0xdb5ca0, e=0x7fffff802430) at kernel/qapplication.cpp:4277
#46 0x00007ffff6cc067c in QCoreApplication::notifyInternal (this=0x7fffffffd0b0, receiver=0xdb5ca0, event=0x7fffff802430) at kernel/qcoreapplication.cpp:732
#47 0x00007ffff605ba81 in sendEvent (this=0xdb5ca0, left=<value optimized out>, top=<value optimized out>, right=<value optimized out>, bottom=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#48 QWidget::setContentsMargins (this=0xdb5ca0, left=<value optimized out>, top=<value optimized out>, right=<value optimized out>, bottom=<value optimized out>) at kernel/qwidget.cpp:7014
#49 0x00007ffff64bce56 in QAbstractScrollAreaPrivate::layoutChildren (this=0xda1d10) at widgets/qabstractscrollarea.cpp:403
#50 0x00007ffff6586896 in QListView::updateGeometries (this=0xdb5ca0) at itemviews/qlistview.cpp:1499
#51 0x00007ffff605cd68 in QWidget::event (this=0xdb5ca0, event=0x7fffff803420) at kernel/qwidget.cpp:8341
#52 0x00007ffff642e64b in QFrame::event (this=0xdb5ca0, e=0x7fffff803420) at widgets/qframe.cpp:557
#53 0x00007ffff6566d1d in QAbstractItemView::viewportEvent (this=0xdb5ca0, event=0x7fffff803420) at itemviews/qabstractitemview.cpp:1619
#54 0x00007ffff6cbfe88 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0xd90f00, event=0x7fffff803420) at kernel/qcoreapplication.cpp:847
#55 0x00007ffff6004aac in QApplicationPrivate::notify_helper (this=0x9ed100, receiver=0xd90f00, e=0x7fffff803420) at kernel/qapplication.cpp:4392
#56 0x00007ffff600e480 in QApplication::notify (this=0x7fffffffd0b0, receiver=0xd90f00, e=0x7fffff803420) at kernel/qapplication.cpp:4277
#57 0x00007ffff6cc067c in QCoreApplication::notifyInternal (this=0x7fffffffd0b0, receiver=0xd90f00, event=0x7fffff803420) at kernel/qcoreapplication.cpp:732
#58 0x00007ffff60ad112 in sendEvent (this=0xe23f10, x=<value optimized out>, y=3, w=<value optimized out>, h=0, isMove=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#59 QWidgetPrivate::setGeometry_sys (this=0xe23f10, x=<value optimized out>, y=3, w=<value optimized out>, h=0, isMove=true) at kernel/qwidget_x11.cpp:2606
#60 0x00007ffff605bc77 in QWidget::setGeometry (this=0xd90f00, r=...) at kernel/qwidget.cpp:6789
#61 0x00007ffff64bcb34 in QAbstractScrollAreaPrivate::layoutChildren (this=0xda1d10) at widgets/qabstractscrollarea.cpp:480
#62 0x00007ffff64bd198 in QAbstractScrollArea::event (this=0xdb5ca0, e=0x18) at widgets/qabstractscrollarea.cpp:924
#63 0x00007ffff6560113 in QAbstractItemView::event (this=0xdb5ca0, event=0x7fffff803db0) at itemviews/qabstractitemview.cpp:1555
#64 0x00007ffff6004add in QApplicationPrivate::notify_helper (this=0x9ed100, receiver=0xdb5ca0, e=0x7fffff803db0) at kernel/qapplication.cpp:4396
#65 0x00007ffff600e480 in QApplication::notify (this=0x7fffffffd0b0, receiver=0xdb5ca0, e=0x7fffff803db0) at kernel/qapplication.cpp:4277
#66 0x00007ffff6cc067c in QCoreApplication::notifyInternal (this=0x7fffffffd0b0, receiver=0xdb5ca0, event=0x7fffff803db0) at kernel/qcoreapplication.cpp:732
#67 0x00007ffff605ba81 in sendEvent (this=0xdb5ca0, left=<value optimized out>, top=<value optimized out>, right=<value optimized out>, bottom=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
Comment 5 Peter Kümmel 2011-01-11 14:57:55 UTC
Could still not reproduce it: neither on plain stock Ubuntu 10.10 64 bit with Qt 4.7.0 nor with openSuse 11.4 beta and Qt 4.7.1.

Maybe something goes wrong on your 11.1 openSuse.