Ticket #3678 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Segmentation fault from DiffractionFocus

Reported by: Wenduo Zhou Owned by: Janik Zikovsky
Priority: critical Milestone: Iteration 30
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Michael Reuter

Description

Segmentation fault occurs when MantidPlot executes DiffractionFocus(). It is very likely due to a possible incorrect calibration file. The problem can be duplicated as

  1. Run "LoadEventNexus()" on the attached nexus file
  2. SortEvent()
  3. AlignDetectors() by using the attached calibration file
  4. DiffractionFocus() by using the attached calibration file.

Then MantidPlot crashes due to segmentation fault at step 4.

Attachments

Test_6Bank.cal (404.5 KB) - added by Wenduo Zhou 9 years ago.

Change History

Changed 9 years ago by Wenduo Zhou

comment:1 Changed 9 years ago by Wenduo Zhou

The nexus file exceeds the size limit. Please email zhouw@… for the file.

comment:2 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 30 to Iteration 31

Bulk move of tickets to iteration 31 at the iteration 30 code freeze

comment:3 Changed 9 years ago by Nick Draper

  • Priority changed from major to critical
  • Owner set to Janik Zikovsky
  • Status changed from new to assigned
  • Milestone changed from Iteration 31 to Iteration 30

Janik, please take a quick look at this (not more than 2 hours) if it is a realistic use can and can be fixed in under 1 day then go ahead, otherwise move the ticket to iteration 31.

comment:4 Changed 9 years ago by Janik Zikovsky

  • Status changed from assigned to accepted

comment:5 Changed 9 years ago by Janik Zikovsky

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

In [14761]:

Fixes #3678: DiffractionFocussing handles bad input calibration files without segfaulting.

comment:6 Changed 9 years ago by Janik Zikovsky

######################################################################
#Python Script Generated by GeneratePythonScript Algorithm
######################################################################
LoadEventNexus(Filename='/home/8oz/VULCAN_7341_event.nxs',OutputWorkspace='cncs')
RenameWorkspace(InputWorkspace='cncs',OutputWorkspace='vulcan')
SortEvents(InputWorkspace='vulcan')
AlignDetectors(InputWorkspace='vulcan',OutputWorkspace='vulcan_aligned',CalibrationFile='/home/8oz/data/Test_6Bank.cal')
DiffractionFocussing('vulcan_aligned', 'vulcan_focus', '/home/8oz/data/Test_6Bank.cal', '', True)

comment:7 Changed 9 years ago by Michael Reuter

  • Status changed from verify to verifying
  • Tester set to Michael Reuter

comment:8 Changed 9 years ago by Michael Reuter

  • Status changed from verifying to closed

This works just fine now.

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4525

Note: See TracTickets for help on using tickets.