Crash when calling core.wait(...) from startup.ssc

Bug #689657 reported by Matthew Gates
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
High
Matthew Gates

Bug Description

To replicate:

$ mkdir ~/.stellarium/scripts
$ echo "core.wait(2);" > ~/.stellarium/scripts/startup.ssc
$ stellarium

Relevant output:
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::worldTransform: Painter not active
QPainter::save: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setOpacity: Painter not active
QPainter::opacity: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setWorldTransform: Painter not active
QPainter::setOpacity: Painter not active
QPainter::opacity: Painter not active
Segmentation fault (core dumped)

Backtrace:

(gdb) bt
#0 0x08169687 in StelPainter::setQPainter (p=0xbfc8dbd4) at /media/loop/stellarium/trunk/src/core/StelPainter.cpp:66
#1 0x0819b3c0 in StelAppGraphicsWidget::paint (this=0x8f483c8, painter=0xbfc8dbd4) at /media/loop/stellarium/trunk/src/core/StelAppGraphicsWidget.cpp:163
#2 0x017ae52c in ?? () from /usr/lib/libQtGui.so.4
#3 0x017b6e4e in ?? () from /usr/lib/libQtGui.so.4
#4 0x017bc7d8 in ?? () from /usr/lib/libQtGui.so.4
#5 0x017bd4a3 in ?? () from /usr/lib/libQtGui.so.4
#6 0x017bc874 in ?? () from /usr/lib/libQtGui.so.4
#7 0x017bd4a3 in ?? () from /usr/lib/libQtGui.so.4
#8 0x017bdcce in ?? () from /usr/lib/libQtGui.so.4
#9 0x017e9bb9 in QGraphicsView::paintEvent(QPaintEvent*) () from /usr/lib/libQtGui.so.4
#10 0x01142cc6 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#11 0x01564763 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#12 0x01601a82 in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#13 0x017e5ccb in QGraphicsView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#14 0x016044d5 in ?? () from /usr/lib/libQtGui.so.4
#15 0x0491e29a in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#16 0x010e4fb9 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#17 0x010eb0e9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#18 0x0491eb3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#19 0x01149ee6 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#20 0x01338ce6 in QWidgetPrivate::repaint_sys(QRegion const&) () from /usr/lib/libQtGui.so.4
#21 0x0113c25e in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQtGui.so.4
#22 0x01143466 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#23 0x00b88cf9 in QGLWidget::event(QEvent*) () from /usr/lib/libQtOpenGL.so.4
#24 0x010e4fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#25 0x010eb0e9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#26 0x0491eb3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#27 0x04921d8b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#28 0x04921f4d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#29 0x017c4c08 in ?? () from /usr/lib/libQtGui.so.4
#30 0x017ce0e6 in QGraphicsScene::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libQtGui.so.4
#31 0x049248ca in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#32 0x0492fdf6 in QMetaCallEvent::placeMetaCall(QObject*) () from /usr/lib/libQtCore.so.4
#33 0x049316a2 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#34 0x017ca374 in QGraphicsScene::event(QEvent*) () from /usr/lib/libQtGui.so.4
#35 0x010e4fdc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#36 0x010eb04e in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#37 0x0491eb3b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#38 0x04921d8b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#39 0x04921f4d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#40 0x0494da74 in ?? () from /usr/lib/libQtCore.so.4
#41 0x00e35855 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#42 0x00e39668 in ?? () from /lib/libglib-2.0.so.0
#43 0x00e39848 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#44 0x0494d565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
---Type <return> to continue, or q <return> to quit---
#45 0x011a6be5 in ?? () from /usr/lib/libQtGui.so.4
#46 0x049221e1 in QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#47 0x0035895a in ?? () from /usr/lib/libQtScript.so.4
#48 0x0023f178 in ?? () from /usr/lib/libQtScript.so.4
#49 0x01dc9a04 in ?? ()
#50 0x001f6180 in ?? () from /usr/lib/libQtScript.so.4
#51 0x001f6432 in ?? () from /usr/lib/libQtScript.so.4
#52 0x003408f5 in ?? () from /usr/lib/libQtScript.so.4
#53 0x003497d3 in QScriptEngine::evaluate(QString const&, QString const&, int) () from /usr/lib/libQtScript.so.4
#54 0x08297477 in StelScriptMgr::runScript (this=0xa140990, fileName=..., includePath=...) at /media/loop/stellarium/trunk/src/scripting/StelScriptMgr.cpp:357
#55 0x0828bc1e in StelMainGraphicsView::init (this=0x8c6da00, conf=0x8c58d48) at /media/loop/stellarium/trunk/src/StelMainGraphicsView.cpp:276
#56 0x0828dab9 in StelMainWindow::init (this=0xbfc8f9d4, conf=0x8c58d48) at /media/loop/stellarium/trunk/src/StelMainWindow.cpp:102
#57 0x082ac5b3 in main (argc=1, argv=0xbfc8fd14) at /media/loop/stellarium/trunk/src/main.cpp:339

Related branches

Changed in stellarium:
assignee: nobody → Matthew Gates (matthew-porpoisehead)
importance: Undecided → High
milestone: none → 1.0.0
status: New → Confirmed
Revision history for this message
Alexander Wolf (alexwolf) wrote :

A fix has been committed as revision 5207 of the trunk branch in Stellarium's Bazaar repository at Launchpad:
http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/5207

Changed in stellarium:
status: Confirmed → Fix Committed
milestone: 1.0.0 → 0.11.2
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.