Bug 283603 - KAlgebra crashes when adding the 3rd 2D plot
Summary: KAlgebra crashes when adding the 3rd 2D plot
Status: RESOLVED FIXED
Alias: None
Product: analitza
Classification: Frameworks and Libraries
Component: analitzaplot (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-08 14:07 UTC by Adria
Modified: 2013-10-29 21:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adria 2011-10-08 14:07:21 UTC
Application: kalgebra (0.10)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I tried to plot:
x->sin(2*x)/sin(x/2) --> OK
q->sin(2*q)/sin(q/2) --> OK
q->abs(sin(2*q)/sin(q/2)) --> It crashes when pressing enter

-- Backtrace:
Application: KAlgebra (kalgebra), signal: Aborted
[Current thread is 1 (Thread 0x7fa44c4dc780 (LWP 19985))]

Thread 2 (Thread 0x7fa435901700 (LWP 19987)):
#0  0x00007fa44725bddf in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0x00007fa441102de4 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007fa441103bfd in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007fa441104229 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007fa4475f466e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#5  0x00007fa4475c8a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#6  0x00007fa4475c8c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#7  0x00007fa4474e013f in QThread::exec() () from /usr/lib/libQtCore.so.4
#8  0x00007fa4475abaef in ?? () from /usr/lib/libQtCore.so.4
#9  0x00007fa4474e2bc5 in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007fa447258da0 in start_thread () from /lib/libpthread.so.0
#11 0x00007fa4465a97dd in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa44c4dc780 (LWP 19985)):
[KCrash Handler]
#6  0x00007fa44650a735 in raise () from /lib/libc.so.6
#7  0x00007fa44650bbab in abort () from /lib/libc.so.6
#8  0x00007fa4474d94f4 in qt_message_output(QtMsgType, char const*) () from /usr/lib/libQtCore.so.4
#9  0x00007fa4474d96af in ?? () from /usr/lib/libQtCore.so.4
#10 0x00007fa4474d9854 in qFatal(char const*, ...) () from /usr/lib/libQtCore.so.4
#11 0x00007fa44b4e9e08 in Function::points (this=0x2638ff0) at /home/swiftscythe/abs/kalgebra-git/src/build/analitzagui/function.cpp:143
#12 0x00007fa44b4faa7f in FunctionsPainter::drawFunctions (this=0x2293928, qpd=0x22939a0) at /home/swiftscythe/abs/kalgebra-git/src/build/analitzagui/functionspainter.cpp:191
#13 0x00007fa44b4fcc28 in Graph2D::drawFunctions (this=0x2293900, pd=0x22939a0) at /home/swiftscythe/abs/kalgebra-git/src/build/analitzagui/graph2d.cpp:73
#14 0x00007fa44b4fce5c in Graph2D::paintEvent (this=0x2293900) at /home/swiftscythe/abs/kalgebra-git/src/build/analitzagui/graph2d.cpp:81
#15 0x00007fa447fe80ac in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#16 0x00007fa447f97ae4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x00007fa447f9c951 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x00007fa448f0abb6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#19 0x00007fa4475c989c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#20 0x00007fa447fe4fe4 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#21 0x00007fa447fe5bc0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#22 0x00007fa447fe4d3c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#23 0x00007fa447fe5bc0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#24 0x00007fa447fe5aa0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#25 0x00007fa447fe4d3c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#26 0x00007fa447fe5bc0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#27 0x00007fa447fe5aa0 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#28 0x00007fa447fe4d3c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#29 0x00007fa4481a4233 in ?? () from /usr/lib/libQtGui.so.4
#30 0x00007fa447fdb840 in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQtGui.so.4
#31 0x00007fa447fe85bc in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#32 0x00007fa4483a5d7b in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#33 0x00007fa447f97ae4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#34 0x00007fa447f9c951 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x00007fa448f0abb6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#36 0x00007fa4475c989c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#37 0x00007fa4481a0bb8 in ?? () from /usr/lib/libQtGui.so.4
#38 0x00007fa447fdafd8 in QWidget::repaint(QRect const&) () from /usr/lib/libQtGui.so.4
#39 0x00007fa447fdb093 in QWidget::repaint() () from /usr/lib/libQtGui.so.4
#40 0x00007fa44b4e0a4d in Graph2D::qt_metacall (this=0x2293900, _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fffd08b9d40) at /home/swiftscythe/abs/kalgebra-git/src/build/analitzagui/moc_graph2d.cpp:102
#41 0x00007fa4475dc5ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#42 0x00007fa4484f115a in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/libQtGui.so.4
#43 0x00007fa4484f1250 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /usr/lib/libQtGui.so.4
#44 0x00007fa44849a38e in QAbstractItemView::setCurrentIndex(QModelIndex const&) () from /usr/lib/libQtGui.so.4
#45 0x0000000000416c84 in KAlgebra::new_func (this=0x1acbd70) at /home/swiftscythe/abs/kalgebra-git/src/build/src/kalgebra.cpp:409
#46 0x000000000041a82f in KAlgebra::qt_metacall (this=0x1acbd70, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffd08b9fe0) at /home/swiftscythe/abs/kalgebra-git/src/build/src/kalgebra.moc:130
#47 0x00007fa4475dc5ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#48 0x00000000004249f4 in FunctionEdit::qt_metacall (this=0x22a32a0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fffd08ba0c0) at /home/swiftscythe/abs/kalgebra-git/src/build/src/functionedit.moc:85
#49 0x00007fa4475dc5ea in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#50 0x00007fa44b4e7c0f in ExpressionEdit::returnPress (this=0x22b9570) at /home/swiftscythe/abs/kalgebra-git/src/build/analitzagui/expressionedit.cpp:462
#51 0x00007fa44b4e879c in ExpressionEdit::keyPressEvent (this=0x22b9570, e=0x7fffd08baab0) at /home/swiftscythe/abs/kalgebra-git/src/build/analitzagui/expressionedit.cpp:208
#52 0x00007fa447fe817e in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#53 0x00007fa44838c586 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#54 0x00007fa44840dbdb in QAbstractScrollArea::event(QEvent*) () from /usr/lib/libQtGui.so.4
#55 0x00007fa44842a065 in QPlainTextEdit::event(QEvent*) () from /usr/lib/libQtGui.so.4
#56 0x00007fa447f97ae4 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#57 0x00007fa447f9d04e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#58 0x00007fa448f0abb6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#59 0x00007fa4475c989c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#60 0x00007fa448036e09 in ?? () from /usr/lib/libQtGui.so.4
#61 0x00007fa44803727b in ?? () from /usr/lib/libQtGui.so.4
#62 0x00007fa448013714 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#63 0x00007fa44803b282 in ?? () from /usr/lib/libQtGui.so.4
#64 0x00007fa44110385d in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#65 0x00007fa441104058 in ?? () from /usr/lib/libglib-2.0.so.0
#66 0x00007fa441104229 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#67 0x00007fa4475f4606 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#68 0x00007fa44803aeee in ?? () from /usr/lib/libQtGui.so.4
#69 0x00007fa4475c8a92 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#70 0x00007fa4475c8c97 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#71 0x00007fa4475cceab in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#72 0x00000000004163b2 in main (argc=1, argv=0x7fffd08bbba8) at /home/swiftscythe/abs/kalgebra-git/src/build/src/main.cpp:41

Reported using DrKonqi
Comment 1 Aleix Pol 2011-10-09 14:29:40 UTC
Does this happen in master?
Comment 2 Adria 2011-10-09 14:31:46 UTC
Yes, it happened in Master (although it says KDE 4.7.2). I have the official Arch KDE packages, but KAlgebra from master
Comment 3 Aleix Pol 2013-06-01 00:17:06 UTC
Still happens, actually puts the cpu at 100%...
Comment 4 Aleix Pol 2013-10-28 12:19:53 UTC
Git commit 992352bcbbec73ffdda33192238b22a6bd7f6bd9 by Aleix Pol.
Committed on 28/10/2013 at 12:19.
Pushed by apol into branch 'KDE/4.11'.

Fix usage of polar functions with FunctionEditor

Make sure theta grows towards the correct end

M  +5    -2    analitzaplot/private/backends/polarcurve.cpp
M  +2    -0    analitzaplot/tests/planecurvetest.cpp
M  +1    -0    analitzaplot/tests/plotsmodeltest.cpp

http://commits.kde.org/analitza/992352bcbbec73ffdda33192238b22a6bd7f6bd9