Contents

hide
<<previous   next>>

Bug 853 : Clear curves in modal browser when mode delegate is active

Status: Solved

dinver

General information

--FATAL ERROR-

Segmentation fault Signal

2010-02-26 09:52:35.109

main,layerPainter1,layerPainter2

Current thread: main thread

---- thread main
QGpCoreWave::Mode::Mode(const QGpCoreWave::Mode&):110
virtual bool QGpGuiWave::ModeItem::setData(const QModelIndex&, const QVariant&, int):94
virtual void QGpGuiWave::ModeDelegate::setModelData(QWidget*, QAbstractItemModel*, const QModelIndex&) const:101
virtual void QGpGuiWave::ModalCurveBrowser::on_curveScroll_valueChanged(int):174
void SciFigs::CurveBrowser::curvesChanged():248
void SciFigs::CurveBrowser::clear():298
void SciFigs::CurveBrowser::on_clearBut_clicked():650
---- thread layerPainter1
virtual void SciFigs::LayerPainterThread::run():59
---- thread layerPainter2
virtual void SciFigs::LayerPainterThread::run():59

---- thread main
---- thread layerPainter1
---- thread layerPainter2

Developer comments (common to all duplicates if any)

Can be sometimes reproduced under Windows (but not always, 4.5.3). Under Linux (4.6.2), it is certainly impossible to have this bug because the browser looses focus and setData is called when the message box is displayed. Under Linux: when commenting confirm message box, crash reproduced (not always but often). ModeItem::_curve is not null because ModeItem::setData() is called by modes->setEnabled( b ); in void ModalCurveBrowser::on_curveScroll_valueChanged( int v ) before resetting curve pointer in ModeItem. Fix: change order, call setEnabled after everything in ModalCurveBrowser::on_curveScroll_valueChanged( int v ), available in all release >20100525

Systems and versions

Windows XP
  Qt                  4.5.3
  QGpCoreTools        1.18.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  dinvercore          0.9.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  DinverCore          0.9.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  QGpGuiTools         1.10.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  SciFigs             2.3.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  dinver              0.5.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  QGpCoreWave         0.8.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  QGpCompatibility    0.3.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  DinverDCCore        1.5.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  QGpGuiWave          0.6.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  DinverDCGui         0.1.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  DinverGui           0.2.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)
  dinverdc            1.4.0-snapshot-20100222 from geopsypack-2.1.0-snapshot-20100222	(built on 201002221758)

Windows XP
  Qt                  4.5.3
  QGpCoreTools        1.18.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  DinverCore          0.9.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  QGpGuiTools         1.10.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  SciFigs             2.3.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  dinver              0.5.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  QGpCoreWave         0.8.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  QGpCompatibility    0.3.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  DinverDCCore        1.5.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  QGpGuiWave          0.6.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  DinverDCGui         0.1.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  DinverGui           0.2.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)
  dinverdc            1.4.0-snapshot-20100324 from geopsypack-2.1.0-snapshot-20100324	(built on 201003242106)

User comments

User reports

11692010-02-26 09:52:53
14862010-05-24 18:09:16