Bug 319449 - Creating a new plot consistently seg faults kst2.
Summary: Creating a new plot consistently seg faults kst2.
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: plotting (show other bugs)
Version: 2.0.3
Platform: Ubuntu Linux
: NOR grave
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-07 07:21 UTC by jason.cipriani
Modified: 2013-05-23 21:28 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 jason.cipriani 2013-05-07 07:21:17 UTC
Reproducible 100% of the time:
1. Start kst2 (from command line, no parameters). Load no data, do nothing.
2. Create -> Plot
3. Cursor changes to cross. Click anywhere in layout area.
4. Program immediately seg faults.

Reproducible: Always

Steps to Reproduce:
1. Start kst2 (from command line, no parameters). Load no data, do nothing.
2. Create -> Plot
3. Cursor changes to cross. Click anywhere in layout area.
4. Program immediately seg faults.
Actual Results:  
Program seg faults.

Expected Results:  
A new plot window should have been created.

The only way I can create plots is via the data import wizard. However, if I try to create a new plot, even after running the wizard, the program seg faults.

$ uname -a
Linux ubuntu 3.2.0-41-generic-pae #66-Ubuntu SMP Thu Apr 25 03:50:20 UTC 2013 i686 i686 i386 GNU/Linux

Results of running in gdb with stack trace, performing the above steps, follows:

(gdb) run
Starting program: /usr/bin/kst2 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb3ea6b40 (LWP 16990)]
[New Thread 0xb34ffb40 (LWP 16991)]
[New Thread 0xb2affb40 (LWP 16992)]

Program received signal SIGSEGV, Segmentation fault.
0x08102364 in Kst::PlotRenderItem::multiRenderItemLabel(bool) const ()
(gdb) bt
#0  0x08102364 in Kst::PlotRenderItem::multiRenderItemLabel(bool) const ()
#1  0x08102c43 in Kst::PlotRenderItem::leftLabel() const ()
#2  0x08184e00 in Kst::PlotItem::autoLeftLabel() const ()
#3  0x08185008 in Kst::PlotItem::leftLabel() const ()
#4  0x0818510b in Kst::PlotItem::calculateLeftLabelMargin(QPainter*) ()
#5  0x08185e59 in Kst::PlotItem::calculateBorders(QPainter*) ()
#6  0x081f1ba8 in Kst::ViewGridLayout::standardizePlotMargins(Kst::ViewItem*, QPainter*) ()
#7  0x081868a6 in Kst::PlotItem::paintPixmap(QPainter*) ()
#8  0x0816fb5a in Kst::PlotItem::updatePlotPixmap() ()
#9  0x0816fd37 in Kst::PlotItem::paint(QPainter*) ()
#10 0x08127066 in Kst::ViewItem::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*) ()
#11 0xb79a79ff in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#12 0xb79a85bf in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#13 0xb79a8e5f in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#14 0xb79c5360 in QGraphicsView::paintEvent(QPaintEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#15 0xb7342152 in QWidget::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#16 0xb775fe55 in QFrame::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#17 0xb77f2ab1 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#18 0xb79c66ac in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#19 0xb77f51d6 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#20 0xb7dfdb16 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#21 0xb72e7ea2 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#22 0xb72ed3a2 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#23 0xb7dfd97e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#24 0xb733dada in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#25 0xb7536d4b in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#26 0xb73339db in QWidgetPrivate::syncBackingStore() () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#27 0xb7342ae7 in QWidget::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#28 0xb777d2dc in QMainWindow::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#29 0xb72e7ed4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#30 0xb72ed3a2 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#31 0xb7dfd97e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#32 0xb7e01ad8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#33 0xb7e01e0c in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#34 0xb799d396 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#35 0xb799d4db in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#36 0xb7e0fc01 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#37 0xb7e18c7b in QObject::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#38 0xb79a41e0 in QGraphicsScene::event(QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#39 0xb72e7ed4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#40 0xb72ed30d in QApplication::notify(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#41 0xb7dfd97e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#42 0xb7e01ad8 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#43 0xb7e01e0c in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#44 0xb7e30494 in ?? () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#45 0xb6b2fd86 in g_main_context_dispatch () from /lib/i386-linux-gnu/libglib-2.0.so.0
#46 0xb6b30125 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#47 0xb6b30201 in g_main_context_iteration () from /lib/i386-linux-gnu/libglib-2.0.so.0
#48 0xb7e30887 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#49 0xb73a0aaa in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#50 0xb7dfc50d in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#51 0xb7dfc7a9 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/i386-linux-gnu/libQtCore.so.4
#52 0xb7e01eba in QCoreApplication::exec() () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#53 0xb72e5a74 in QApplication::exec() () from /usr/lib/i386-linux-gnu/libQtGui.so.4
#54 0x080ba666 in main ()
Comment 1 jason.cipriani 2013-05-21 20:15:47 UTC
I cannot actually use kst2 on my Ubuntu machine because of this problem. Hoping somebody will take a look at it. :-)
Comment 2 Nicolas Brisset 2013-05-21 20:19:42 UTC
This has been fixed. Version 2.0.6 does not have the issue, I don't remember about previous releases. I hope someone provides more recent ubuntu packages.
Comment 3 jason.cipriani 2013-05-21 20:22:10 UTC
(In reply to comment #2)
> This has been fixed. Version 2.0.6 does not have the issue, I don't remember
> about previous releases. I hope someone provides more recent ubuntu packages.

Ah, me too. Thank you!!
Comment 4 Nicolas Brisset 2013-05-23 21:28:34 UTC
I have just updated the link to current Ubuntu packages on the website. It is now:
https://launchpad.net/~kst-plot/+archive/ppa