Contents

hide
<<previous   next>>

Bug 733 : Null number of parameters in Neighborhood::setStorage()

Status: Solved

dinver

General information

--FATAL ERROR-

ASSERT: "ndVar>0" in file src/Neighborhood.cpp, line 126

2010-01-15 09:59:57.231

main,layerPainter1,layerPainter2,layerPainter3,layerPainter4,layerPainter5,layerPainter6,layerPainter7,layerPainter8,run_01

Current thread:

QGpCoreTools::CoreApplicationPrivate::backTrace()
QGpCoreTools::CoreApplicationPrivate::bugInfo(QGpCoreTools::Message::Severity, QString const&)
QGpCoreTools::CoreApplicationPrivate::reportBugNow(QGpCoreTools::Message::Severity, char const*)
QGpCoreTools::CoreApplicationPrivate::messageOutput(QtMsgType, char const*)
qt_message_output(QtMsgType, char const*)
qFatal(char const*, ...)
DinverCore::Neighborhood::setStorage()
InversionThread::xml_polish(QGpCoreTools::XMLContext*)
QGpCoreTools::XMLParser::closeContext()
QGpCoreTools::XMLParser::parse(QGpCoreTools::XMLClass*)
QGpCoreTools::XMLClass::restore(QChar const*&, int&, QGpCoreTools::XMLStream*, QGpCoreTools::XMLContext*)
QGpCoreTools::XMLHeader::xml_restoreFile(QString, QGpCoreTools::XMLContext*, QGpCoreTools::XMLClass::FileType)
DinverGui::open(QString)
DinverGui::qt_metacall(QMetaObject::Call, int, void**)
QMetaObject::activate(QObject*, int, int, void**)
QAction::triggered(bool)
QAction::activate(QAction::ActionEvent)
/usr/contrib/Qt/Qt-shared/lib/libQtGui.so.4
/usr/contrib/Qt/Qt-shared/lib/libQtGui.so.4
QWidget::event(QEvent*)
QMenu::event(QEvent*)
QApplicationPrivate::notify_helper(QObject*, QEvent*)
QApplication::notify(QObject*, QEvent*)
QCoreApplication::notifyInternal(QObject*, QEvent*)
QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&)
/usr/contrib/Qt/Qt-shared/lib/libQtGui.so.4
QApplication::x11ProcessEvent(_XEvent*)
/usr/contrib/Qt/Qt-shared/lib/libQtGui.so.4

/lib64/libglib-2.0.so.0

QEventDispatcherGlib::processEvents(QFlags)
/usr/contrib/Qt/Qt-shared/lib/libQtGui.so.4
QEventLoop::processEvents(QFlags)
QEventLoop::exec(QFlags)
QCoreApplication::exec()
modeGui(int, char**)


QAbstractItemView::dropEvent(QDropEvent*)

---- thread main
---- thread layerPainter1
---- thread layerPainter2
---- thread layerPainter3
---- thread layerPainter4
---- thread layerPainter5
---- thread layerPainter6
---- thread layerPainter7
---- thread layerPainter8
---- thread run_01

Developer comments (common to all duplicates if any)

An ASSERT(ndVar>0) was placed before initializing model storage. The condition under this assert can be false (null number of parameters) even under "normal" conditions, e.g. if the user entered a fake parameter space or if the script defining the parameter space contains errors. Generating an exception in this case prevents the user to analyze the problem. The storage is correctly initialized even if nvVar is null, hence this safe to remove this assert. Branch 2.1 is affected, available in next release.

Systems and versions

Linux
  Qt                  4.5.0
  QGpCoreTools        1.18.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  dinvercore          0.9.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  DinverCore          0.9.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  QGpGuiTools         1.10.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  DinverGui           0.2.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  SciFigs             2.3.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  dinver              0.5.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  GeopsyCore          3.3.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  GeopsyGui           2.8.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  QGpCoreWave         0.8.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  QGpCompatibility    0.3.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  DinverDCCore        1.5.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  QGpGuiWave          0.6.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  DinverDCGui         0.1.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)
  dinverdc            1.4.0-snapshot-20100113 from geopsypack-2.1.0-snapshot-20100113	(built on 201001131026)

User comments

User reports

9912010-01-15 10:00:11
9922010-01-15 10:03:10