Bug 321285 - Cantor (with maxima backend) crashed after asking for a graph
Summary: Cantor (with maxima backend) crashed after asking for a graph
Status: RESOLVED FIXED
Alias: None
Product: cantor
Classification: Applications
Component: maxima-backend (other bugs)
Version First Reported In: 0.4
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Rieder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-17 17:34 UTC by Matteo Italia
Modified: 2016-10-08 09:08 UTC (History)
3 users (show)

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


Attachments
Image obtained after retrying twice in a new cantor instance (280.90 KB, image/png)
2013-06-17 17:38 UTC, Matteo Italia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Italia 2013-06-17 17:34:58 UTC
Application: cantor (0.4)
KDE Platform Version: 4.10.3
Qt Version: 4.8.4
Operating System: Linux 3.8.0-25-generic x86_64
Distribution: Ubuntu 13.04

-- Information about the crash:
1. i chose "2D graph" from the menu, forgetting to specify the interval;
2. after getting an error from maxima, I corrected the expression and pressed Shift+Enter to evaluate it;
3. in the workbook appeared something like "waiting for the graph" and after a moment the application crashed.

-- Backtrace:
Application: Cantor (cantor), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f49fbbcf7c0 (LWP 3964))]

Thread 2 (Thread 0x7f49de4a8700 (LWP 3984)):
#0  unixCheckClockType () at tools/qelapsedtimer_unix.cpp:87
#1  0x00007f49f90a5a59 in do_gettime (frac=0x7f49de4a7a18, sec=0x7f49de4a7a10) at tools/qelapsedtimer_unix.cpp:120
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x00007f49f917b9ed in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f49d0002660) at kernel/qeventdispatcher_unix.cpp:354
#4  0x00007f49f917bd33 in QTimerInfoList::timerWait (this=0x7f49d0002660, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#5  0x00007f49f917a79c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f49de4a7b04) at kernel/qeventdispatcher_glib.cpp:136
#6  0x00007f49f917a845 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#7  0x00007f49f53bc900 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f49f53bd0fe in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f49f53bd304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f49f917b036 in QEventDispatcherGlib::processEvents (this=0x7f49d00008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#11 0x00007f49f914b38f in QEventLoop::processEvents (this=this@entry=0x7f49de4a7cd0, flags=...) at kernel/qeventloop.cpp:149
#12 0x00007f49f914b618 in QEventLoop::exec (this=this@entry=0x7f49de4a7cd0, flags=...) at kernel/qeventloop.cpp:204
#13 0x00007f49f904d410 in QThread::exec (this=this@entry=0x2bdfe90) at thread/qthread.cpp:542
#14 0x00007f49f912cedf in QInotifyFileSystemWatcherEngine::run (this=0x2bdfe90) at io/qfilesystemwatcher_inotify.cpp:256
#15 0x00007f49f904fbec in QThreadPrivate::start (arg=0x2bdfe90) at thread/qthread_unix.cpp:338
#16 0x00007f49e8593764 in ?? () from /usr/lib/nvidia-304-updates/libGL.so.1
#17 0x00007f49f588ff8e in start_thread (arg=0x7f49de4a8700) at pthread_create.c:311
#18 0x00007f49f8a02e1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f49fbbcf7c0 (LWP 3964)):
[KCrash Handler]
#6  mask_alpha_converter (dest=0x30200000ded, src=0x2ea4370) at image/qimage.cpp:2659
#7  0x00007f49f9bf4af2 in QImage::convertToFormat (this=this@entry=0x7fff2ddda4a0, format=format@entry=QImage::Format_ARGB32, flags=...) at image/qimage.cpp:3902
#8  0x00007f49e5a62c89 in EpsRenderer::renderToImage (this=0x2949970, url=..., size=size@entry=0x2fcc9d8) at ../../src/epsrenderer.cpp:133
#9  0x00007f49e5a4c650 in WorksheetImageItem::setEps (this=this@entry=0x2fcc9a0, url=...) at ../../src/worksheetimageitem.cpp:126
#10 0x00007f49e5a60edd in ImageResultItem::updateFromResult (this=0x2fcc9a0, result=0x26ad690) at ../../src/imageresultitem.cpp:63
#11 0x00007f49e5a4edbd in CommandEntry::updateEntry (this=0x2bb1bf0) at ../../src/commandentry.cpp:360
#12 0x00007f49f91610ef in QMetaObject::activate (sender=sender@entry=0x2ebfd20, m=m@entry=0x7f49faeeb880 <Cantor::Expression::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#13 0x00007f49facd25c3 in Cantor::Expression::gotResult (this=this@entry=0x2ebfd20) at ./expression.moc:117
#14 0x00007f49facd2bc2 in Cantor::Expression::setResult (this=this@entry=0x2ebfd20, result=result@entry=0x26ad690) at ../../../src/lib/expression.cpp:134
#15 0x00007f49e9a2da95 in MaximaExpression::imageChanged (this=0x2ebfd20) at ../../../../src/backends/maxima/maximaexpression.cpp:634
#16 0x00007f49f91610ef in QMetaObject::activate (sender=sender@entry=0x26f02a0, m=m@entry=0x7f49f94a4d80 <QSingleShotTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#17 0x00007f49f9169e70 in QSingleShotTimer::timeout (this=this@entry=0x26f02a0) at .moc/release-shared/qtimer.moc:97
#18 0x00007f49f9169e8f in QSingleShotTimer::timerEvent (this=0x26f02a0) at kernel/qtimer.cpp:317
#19 0x00007f49f91663ec in QObject::event (this=0x26f02a0, e=<optimized out>) at kernel/qobject.cpp:1156
#20 0x00007f49f9b358ec in QApplicationPrivate::notify_helper (this=this@entry=0x245baa0, receiver=receiver@entry=0x26f02a0, e=e@entry=0x7fff2dddafc0) at kernel/qapplication.cpp:4567
#21 0x00007f49f9b3825b in QApplication::notify (this=this@entry=0x7fff2dddb370, receiver=receiver@entry=0x26f02a0, e=e@entry=0x7fff2dddafc0) at kernel/qapplication.cpp:4428
#22 0x00007f49fb5dfaf6 in KApplication::notify (this=0x7fff2dddb370, receiver=0x26f02a0, event=0x7fff2dddafc0) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007f49f914c63e in QCoreApplication::notifyInternal (this=0x7fff2dddb370, receiver=0x26f02a0, event=event@entry=0x7fff2dddafc0) at kernel/qcoreapplication.cpp:946
#24 0x00007f49f917db72 in sendEvent (event=0x7fff2dddafc0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QTimerInfoList::activateTimers (this=0x2464cd0) at kernel/qeventdispatcher_unix.cpp:622
#26 0x00007f49f917a9a4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#27 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#28 0x00007f49f53bcf05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f49f53bd248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f49f53bd304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f49f917b016 in QEventDispatcherGlib::processEvents (this=0x2420b30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00007f49f9bdb1ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f49f914b38f in QEventLoop::processEvents (this=this@entry=0x7fff2dddb230, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f49f914b618 in QEventLoop::exec (this=this@entry=0x7fff2dddb230, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f49f9150cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#36 0x00007f49f9b33ffc in QApplication::exec () at kernel/qapplication.cpp:3828
#37 0x000000000040a247 in main (argc=5, argv=0x7fff2dddb4a8) at ../../src/main.cpp:89

Reported using DrKonqi
Comment 1 Matteo Italia 2013-06-17 17:38:38 UTC
Created attachment 80589 [details]
Image obtained after retrying twice in a new cantor instance

If that's of any usefulness: the function was sin(1/x) over a range (-10, 10); retrying it in a newly opened Cantor instance gave first just "Waiting for image... plot2d: expression evaluates to non-numeric value somewhere in plotting range."; evaluating it again gives the same message plus a messed-up image.
Comment 2 Matteo Italia 2013-06-17 17:39:32 UTC
After a third evaluation, it crashed again with this stacktrace:

Application: Cantor (cantor), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4fa14387c0 (LWP 4102))]

Thread 2 (Thread 0x7f4f7fb71700 (LWP 4125)):
#0  0x00007f4f9e25f3cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4f9ac261dc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4f9ac26304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4f9e9e4036 in QEventDispatcherGlib::processEvents (this=0x7f4f780008f0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007f4f9e9b438f in QEventLoop::processEvents (this=this@entry=0x7f4f7fb70cd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f4f9e9b4618 in QEventLoop::exec (this=this@entry=0x7f4f7fb70cd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f4f9e8b6410 in QThread::exec (this=this@entry=0xbf6c40) at thread/qthread.cpp:542
#7  0x00007f4f9e995edf in QInotifyFileSystemWatcherEngine::run (this=0xbf6c40) at io/qfilesystemwatcher_inotify.cpp:256
#8  0x00007f4f9e8b8bec in QThreadPrivate::start (arg=0xbf6c40) at thread/qthread_unix.cpp:338
#9  0x00007f4f8ddfc764 in ?? () from /usr/lib/nvidia-304-updates/libGL.so.1
#10 0x00007f4f9b0f8f8e in start_thread (arg=0x7f4f7fb71700) at pthread_create.c:311
#11 0x00007f4f9e26be1d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f4fa14387c0 (LWP 4102)):
[KCrash Handler]
#6  mask_alpha_converter (dest=0x7fffcde14ebc, src=0x17c68c0) at image/qimage.cpp:2659
#7  0x00007f4f9f45daf2 in QImage::convertToFormat (this=this@entry=0x7fffcde0b680, format=format@entry=QImage::Format_ARGB32, flags=...) at image/qimage.cpp:3902
#8  0x00007f4f8b2cbc89 in EpsRenderer::renderToImage (this=0x10ed7b0, url=..., size=size@entry=0x16e6f18) at ../../src/epsrenderer.cpp:133
#9  0x00007f4f8b2b5650 in WorksheetImageItem::setEps (this=this@entry=0x16e6ee0, url=...) at ../../src/worksheetimageitem.cpp:126
#10 0x00007f4f8b2c9edd in ImageResultItem::updateFromResult (this=0x16e6ee0, result=0x16eb1e0) at ../../src/imageresultitem.cpp:63
#11 0x00007f4f8b2b7dbd in CommandEntry::updateEntry (this=0x11fc890) at ../../src/commandentry.cpp:360
#12 0x00007f4f9e9ca0ef in QMetaObject::activate (sender=sender@entry=0x2126650, m=m@entry=0x7f4fa0754880 <Cantor::Expression::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#13 0x00007f4fa053b5c3 in Cantor::Expression::gotResult (this=this@entry=0x2126650) at ./expression.moc:117
#14 0x00007f4fa053bbc2 in Cantor::Expression::setResult (this=this@entry=0x2126650, result=result@entry=0x16eb1e0) at ../../../src/lib/expression.cpp:134
#15 0x00007f4f8f296a95 in MaximaExpression::imageChanged (this=0x2126650) at ../../../../src/backends/maxima/maximaexpression.cpp:634
#16 0x00007f4f9e9ca0ef in QMetaObject::activate (sender=sender@entry=0x2116690, m=m@entry=0x7f4f9ed0dd80 <QSingleShotTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x0) at kernel/qobject.cpp:3539
#17 0x00007f4f9e9d2e70 in QSingleShotTimer::timeout (this=this@entry=0x2116690) at .moc/release-shared/qtimer.moc:97
#18 0x00007f4f9e9d2e8f in QSingleShotTimer::timerEvent (this=0x2116690) at kernel/qtimer.cpp:317
#19 0x00007f4f9e9cf3ec in QObject::event (this=0x2116690, e=<optimized out>) at kernel/qobject.cpp:1156
#20 0x00007f4f9f39e8ec in QApplicationPrivate::notify_helper (this=this@entry=0xbf9640, receiver=receiver@entry=0x2116690, e=e@entry=0x7fffcde0c1a0) at kernel/qapplication.cpp:4567
#21 0x00007f4f9f3a125b in QApplication::notify (this=this@entry=0x7fffcde0c550, receiver=receiver@entry=0x2116690, e=e@entry=0x7fffcde0c1a0) at kernel/qapplication.cpp:4428
#22 0x00007f4fa0e48af6 in KApplication::notify (this=0x7fffcde0c550, receiver=0x2116690, event=0x7fffcde0c1a0) at ../../kdeui/kernel/kapplication.cpp:311
#23 0x00007f4f9e9b563e in QCoreApplication::notifyInternal (this=0x7fffcde0c550, receiver=0x2116690, event=event@entry=0x7fffcde0c1a0) at kernel/qcoreapplication.cpp:946
#24 0x00007f4f9e9e6b72 in sendEvent (event=0x7fffcde0c1a0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#25 QTimerInfoList::activateTimers (this=0xc02870) at kernel/qeventdispatcher_unix.cpp:622
#26 0x00007f4f9e9e39a4 in timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:186
#27 timerSourceDispatch (source=<optimized out>) at kernel/qeventdispatcher_glib.cpp:180
#28 0x00007f4f9ac25f05 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007f4f9ac26248 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f4f9ac26304 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f4f9e9e4016 in QEventDispatcherGlib::processEvents (this=0xbbeb30, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#32 0x00007f4f9f4441ae in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#33 0x00007f4f9e9b438f in QEventLoop::processEvents (this=this@entry=0x7fffcde0c410, flags=...) at kernel/qeventloop.cpp:149
#34 0x00007f4f9e9b4618 in QEventLoop::exec (this=this@entry=0x7fffcde0c410, flags=...) at kernel/qeventloop.cpp:204
#35 0x00007f4f9e9b9cf6 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#36 0x00007f4f9f39cffc in QApplication::exec () at kernel/qapplication.cpp:3828
#37 0x000000000040a247 in main (argc=1, argv=0x7fffcde0c688) at ../../src/main.cpp:89
Comment 3 Alexander Semke 2016-10-08 09:08:07 UTC
This issue seems to be resolved already. I cannot reproduce it anymore with the current version of Cantor. For the broken image there were other bug-reports. But this is all fixed already, too. Please check it again with the current version and re-open this ticket if you still have problems.