Ticket #3697 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Instrument Window crash

Reported by: Russell Taylor Owned by: Roman Tolchenov
Priority: critical Milestone: Iteration 30
Component: MantidPlot Keywords:
Cc: Blocked By:
Blocking: Tester: Janik Zikovsky

Description

When trying to display instrument after loading AutoTestData/LOQ48127.raw. Seen on Windows and Linux.

This has been around for a while (since before I started messing in there). It was present in the revision I had lying around on Windows: [14384].

Change History

comment:1 Changed 9 years ago by Russell Taylor

Partial stack trace:

#0  0x000000365c7dd314 in QTextEngine::itemize() const () from /usr/lib64/libQtGui.so.4
#1  0x000000365c7deb06 in QTextEngine::attributes() const () from /usr/lib64/libQtGui.so.4
#2  0x000000365c7e5b36 in QTextLine::layout_helper(int) () from /usr/lib64/libQtGui.so.4
#3  0x000000365c6e9b2e in ?? () from /usr/lib64/libQtGui.so.4
#4  0x000000365c6ea771 in ?? () from /usr/lib64/libQtGui.so.4
#5  0x000000365c7bd248 in QFontMetrics::boundingRect(QRect const&, int, QString const&, int, int*) const () from /usr/lib64/libQtGui.so.4
#6  0x00007ffff5be4e7d in QwtPlainTextEngine::textSize(QFont const&, int, QString const&) const
    () from /usr/lib64/libqwt.so.5
#7  0x00007ffff5be749a in QwtText::textSize(QFont const&) const () from /usr/lib64/libqwt.so.5
#8  0x00007ffff5bcf6cf in QwtAbstractScaleDraw::tickLabel(QFont const&, double) const ()
   from /usr/lib64/libqwt.so.5
#9  0x00007ffff5be1715 in QwtScaleDraw::labelRect(QFont const&, double) const ()
   from /usr/lib64/libqwt.so.5
#10 0x00007ffff5be1e8f in QwtScaleDraw::getBorderDistHint(QFont const&, int&, int&) const ()
   from /usr/lib64/libqwt.so.5
#11 0x00007ffff5c0d4e6 in QwtScaleWidget::getBorderDistHint(int&, int&) const ()
   from /usr/lib64/libqwt.so.5
#12 0x00007ffff5c0da0a in QwtScaleWidget::layoutScale(bool) () from /usr/lib64/libqwt.so.5
#13 0x00007ffff5c0dd92 in QwtScaleWidget::setScaleDiv(QwtScaleTransformation*, QwtScaleDiv const&) () from /usr/lib64/libqwt.so.5
#14 0x00000000009e1ebc in ColorMapWidget::updateScale (this=0x2356720)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:194
#15 0x00000000009e1a54 in ColorMapWidget::setMinValue (this=0x2356720, value=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:125
#16 0x00000000009e1753 in ColorMapWidget::setupColorBarScaling (this=0x2356720, colorMap=...)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:95
#17 0x00000000009cd5ad in InstrumentWindowRenderTab::setupColorBarScaling (this=0x165a240, cmap=
    ..., minPositive=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.cpp:130
#18 0x00000000009c3fa5 in InstrumentWindow::setupColorMap (this=0x2716080)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:253
#19 0x00000000009c6ceb in InstrumentWindow::changeColorMapMinValue (this=0x2716080, minValue=
    738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:725
#20 0x0000000000a87a4d in InstrumentWindow::qt_metacall (this=0x2716080, _c=
    QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fffff4078e0)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_InstrumentWindow.cxx:161
#21 0x000000365b56a84f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#22 0x0000000000a889b6 in ColorMapWidget::minValueChanged (this=0x2356720, _t1=738944)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_ColorMapWidget.cxx:106
#23 0x00000000009e1975 in ColorMapWidget::minValueChanged (this=0x2356720)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:109
#24 0x00000000009e1a60 in ColorMapWidget::setMinValue (this=0x2356720, value=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:126
#25 0x00000000009e1753 in ColorMapWidget::setupColorBarScaling (this=0x2356720, colorMap=...)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:95
#26 0x00000000009cd5ad in InstrumentWindowRenderTab::setupColorBarScaling (this=0x165a240, cmap=
    ..., minPositive=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.cpp:130
#27 0x00000000009c3fa5 in InstrumentWindow::setupColorMap (this=0x2716080)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:253
#28 0x00000000009c6ceb in InstrumentWindow::changeColorMapMinValue (this=0x2716080, minValue=
    738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:725
#29 0x0000000000a87a4d in InstrumentWindow::qt_metacall (this=0x2716080, _c=
    QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fffff407c40)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_InstrumentWindow.cxx:161
#30 0x000000365b56a84f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#31 0x0000000000a889b6 in ColorMapWidget::minValueChanged (this=0x2356720, _t1=738944)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_ColorMapWidget.cxx:106
#32 0x00000000009e1975 in ColorMapWidget::minValueChanged (this=0x2356720)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:109
#33 0x00000000009e1a60 in ColorMapWidget::setMinValue (this=0x2356720, value=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:126
#34 0x00000000009e1753 in ColorMapWidget::setupColorBarScaling (this=0x2356720, colorMap=...)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:95
#35 0x00000000009cd5ad in InstrumentWindowRenderTab::setupColorBarScaling (this=0x165a240, cmap=
    ..., minPositive=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.cpp:130
#36 0x00000000009c3fa5 in InstrumentWindow::setupColorMap (this=0x2716080)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:253
#37 0x00000000009c6ceb in InstrumentWindow::changeColorMapMinValue (this=0x2716080, minValue=
    738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:725
#38 0x0000000000a87a4d in InstrumentWindow::qt_metacall (this=0x2716080, _c=
    QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fffff407fa0)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_InstrumentWindow.cxx:161
#39 0x000000365b56a84f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#40 0x0000000000a889b6 in ColorMapWidget::minValueChanged (this=0x2356720, _t1=738944)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_ColorMapWidget.cxx:106
#41 0x00000000009e1975 in ColorMapWidget::minValueChanged (this=0x2356720)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:109
#42 0x00000000009e1a60 in ColorMapWidget::setMinValue (this=0x2356720, value=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:126
#43 0x00000000009e1753 in ColorMapWidget::setupColorBarScaling (this=0x2356720, colorMap=...)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:95
#44 0x00000000009cd5ad in InstrumentWindowRenderTab::setupColorBarScaling (this=0x165a240, cmap=
    ..., minPositive=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.cpp:130
#45 0x00000000009c3fa5 in InstrumentWindow::setupColorMap (this=0x2716080)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:253
#46 0x00000000009c6ceb in InstrumentWindow::changeColorMapMinValue (this=0x2716080, minValue=
    738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:725
#47 0x0000000000a87a4d in InstrumentWindow::qt_metacall (this=0x2716080, _c=
    QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fffff408300)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_InstrumentWindow.cxx:161
#48 0x000000365b56a84f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) ()
   from /usr/lib64/libQtCore.so.4
#49 0x0000000000a889b6 in ColorMapWidget::minValueChanged (this=0x2356720, _t1=738944)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_ColorMapWidget.cxx:106
#50 0x00000000009e1975 in ColorMapWidget::minValueChanged (this=0x2356720)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:109
#51 0x00000000009e1a60 in ColorMapWidget::setMinValue (this=0x2356720, value=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:126
#52 0x00000000009e1753 in ColorMapWidget::setupColorBarScaling (this=0x2356720, colorMap=...)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/ColorMapWidget.cpp:95
#53 0x00000000009cd5ad in InstrumentWindowRenderTab::setupColorBarScaling (this=0x165a240, cmap=
    ..., minPositive=738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindowRenderTab.cpp:130
#54 0x00000000009c3fa5 in InstrumentWindow::setupColorMap (this=0x2716080)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:253
#55 0x00000000009c6ceb in InstrumentWindow::changeColorMapMinValue (this=0x2716080, minValue=
    738944)
    at /home/tr9/Mantid/Code/Mantid/MantidPlot/src/Mantid/InstrumentWidget/InstrumentWindow.cpp:725
#56 0x0000000000a87a4d in InstrumentWindow::qt_metacall (this=0x2716080, _c=
    QMetaObject::InvokeMetaMethod, _id=23, _a=0x7fffff408660)
    at /home/tr9/Mantid/Code/debug-build/MantidPlot/src/Mantid/InstrumentWidget/moc_InstrumentWindow.cxx:161

comment:2 Changed 9 years ago by Russell Taylor

  • Status changed from new to assigned
  • Owner set to Roman Tolchenov

Roman, can you try and take a look at this ahead of the testing period (i.e. tomorrow :) )? Thanks.

comment:3 Changed 9 years ago by Roman Tolchenov

  • Status changed from assigned to verify
  • Resolution set to fixed

In [14746]:

I think this fixes #3697

comment:4 Changed 9 years ago by Karl Palmen

  • Status changed from verify to verifying
  • Tester set to Karl Palmen

comment:5 Changed 9 years ago by Karl Palmen

  • Status changed from verifying to reopened
  • Resolution fixed deleted

Mandtid crashed when I tried this. The file AutoTestData/LOQ48127.raw looked suspiciously small suggesting it may be malformed.

comment:6 Changed 9 years ago by Roman Tolchenov

  • Status changed from reopened to accepted

comment:7 Changed 9 years ago by Roman Tolchenov

  • Status changed from accepted to verify
  • Resolution set to fixed

The fix was submitted today (19.09.2011) so should be tested tomorrow (20.09.2011)

comment:8 Changed 9 years ago by Russell Taylor

The file LOQ48127 is one of LOQ's 'transmission' runs, where they use only the monitors and not the main detector. This is the reason for it's small size. There's actually a different instrument definition for that configuration (LOQ_trans_Definition), but the crash was present even if you load that one.

comment:9 Changed 9 years ago by Janik Zikovsky

  • Status changed from verify to verifying
  • Tester changed from Karl Palmen to Janik Zikovsky

comment:10 Changed 9 years ago by Janik Zikovsky

  • Status changed from verifying to closed

Works for me on ubuntu.

comment:11 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4544

Note: See TracTickets for help on using tickets.