Ticket #657 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Focussing script crashes

Reported by: Nick Draper Owned by: Martyn Gigg
Priority: major Milestone: Iteration 20
Component: Keywords:
Cc: laurent.chapon@… Blocked By:
Blocking: Tester:

Description

This script crashes randomly with segmentation fault

def wish_focus(number,panel,ext):
	data_dir="/home/wish/Desktop/"
	filename=data_dir+"WISH00000"+str(number)+"."+ext
	
	if (panel==1):
		min=6
		max=19461
	elif (panel==2):
		min=19462
		max=38917
	elif( panel==3):
		min=38918
		max=58373
	elif (panel==4):
		min=58374
		max=77829
	elif (panel==5):
		min=77830
		max=97285
	out="w"+str(number)
	focus=out+"foc"
	LoadRaw(Filename=filename,OutputWorkspace=out,spectrummin=str(min),spectrummax=str(max))
	ConvertUnits(out,out,"dSpacing")
	NormaliseByCurrent(out,out)
	DiffractionFocussing(out,focus+out,data_dir+"WISH.cal")

Change History

comment:1 Changed 11 years ago by Nick Draper

  • Cc laurent.chapon@… added

comment:2 Changed 11 years ago by Nick Draper

  • Summary changed from ofucssing script crashes to Focussing script crashes

comment:3 Changed 11 years ago by Russell Taylor

  • Owner changed from Russell Taylor to Martyn Gigg

This seems to be something to do with the 'python arrow' - apparently it goes away if that's disabled.

Here's the backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f66946ab760 (LWP 25393)]
0x00007f66934ecf8e in MarkerHandleSet::InsertHandle () from /usr/lib/libqscintilla2.so.5
Current language:  auto; currently asm
(gdb) backtrace 
#0  0x00007f66934ecf8e in MarkerHandleSet::InsertHandle () from /usr/lib/libqscintilla2.so.5
#1  0x00007f66934ee3f6 in LineMarkers::AddMark () from /usr/lib/libqscintilla2.so.5
#2  0x00007f6693433e3e in Document::AddMark () from /usr/lib/libqscintilla2.so.5
#3  0x00007f6693449d28 in Editor::WndProc () from /usr/lib/libqscintilla2.so.5
#4  0x00007f66934f907e in ScintillaBase::WndProc () from /usr/lib/libqscintilla2.so.5
#5  0x00007f66933f77c9 in QsciScintilla::markerAdd () from /usr/lib/libqscintilla2.so.5
#6  0x000000000081dfe8 in ScriptEdit::qt_metacall ()
#7  0x00007f668b8641f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#8  0x000000000080602f in ApplicationWindow::scriptingLineChange ()
#9  0x00000000007c5003 in meth_ApplicationWindow_scriptingInformation ()
#10 0x00007f668e0defab in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#11 0x00007f668e0e050d in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#12 0x00007f668e07874e in ?? () from /usr/lib/libpython2.5.so.1.0
#13 0x00007f668e054793 in PyObject_Call () from /usr/lib/libpython2.5.so.1.0
#14 0x00007f668e0d9741 in PyEval_CallObjectWithKeywords () from /usr/lib/libpython2.5.so.1.0
#15 0x00007f668e104c0a in ?? () from /usr/lib/libpython2.5.so.1.0
#16 0x00007f668e104c9d in ?? () from /usr/lib/libpython2.5.so.1.0
#17 0x00007f668e0dabf8 in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#18 0x00007f668e0df88a in PyEval_EvalFrameEx () from /usr/lib/libpython2.5.so.1.0
#19 0x00007f668e0e050d in PyEval_EvalCodeEx () from /usr/lib/libpython2.5.so.1.0
#20 0x00007f668e0e0702 in PyEval_EvalCode () from /usr/lib/libpython2.5.so.1.0
#21 0x00000000007bf9af in PythonScript::exec ()
#22 0x0000000000698b14 in ScriptEdit::runScript ()
#23 0x0000000000698db8 in ScriptEdit::execute ()
#24 0x000000000081e19d in ScriptEdit::qt_metacall ()
#25 0x00007f668b8641f2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#26 0x00007f668c03a7a6 in QAction::activated () from /usr/lib/libQtGui.so.4
#27 0x00007f668c03bc76 in QAction::activate () from /usr/lib/libQtGui.so.4
#28 0x00007f668c03e777 in QAction::event () from /usr/lib/libQtGui.so.4
#29 0x00007f668c04078d in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4
#30 0x00007f668c04897a in QApplication::notify () from /usr/lib/libQtGui.so.4
#31 0x000000000071f93d in MantidApplication::notify ()
#32 0x00007f668b84e75c in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4
#33 0x00007f668c07605d in ?? () from /usr/lib/libQtGui.so.4
#34 0x00007f668c077ebc in ?? () from /usr/lib/libQtGui.so.4

comment:4 Changed 11 years ago by Nick Draper

  • Milestone changed from Iteration 18 to Iteration 19

Moved as part of iteration 18 end

comment:5 Changed 11 years ago by Martyn Gigg

(In [2928]) The algorithm dock widget was being updated whenver a workspace was replaced or deleted which was causing crashes for me. It was also adding unecessary work. Re #657

comment:6 Changed 11 years ago by Nick Draper

  • Milestone changed from Iteration 19 to Iteration 20

Moved as part of the end of Iteration 19

comment:7 Changed 11 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:8 Changed 11 years ago by Martyn Gigg

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

comment:9 Changed 11 years ago by Russell Taylor

  • Status changed from testing to closed

Fix went in a long time ago. No complaints received recently.

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1505

Note: See TracTickets for help on using tickets.