Ticket #11065 (closed: fixed)
Failure in PoldiPeakSearchTest under Windows debug
Reported by: | Martyn Gigg | Owned by: | Michael Wedel |
---|---|---|---|
Priority: | critical | Milestone: | Release 3.4 |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Martyn Gigg |
Description
The MSVC debugger is giving an out of bounds error for the PoldiPeakSearch - http://builds.mantidproject.org/view/Develop%20Builds/job/develop_clean_win7_debug/lastCompletedBuild/console
The problem seems to be with line 257 of PoldiPeakSearch.cpp:
MantidVec::const_iterator nextIntensity = peakPosition + 1; while (*nextIntensity > halfPeakIntensity) { nextIntensity += 1; }
The debugger says that during the testGetPeakCoordinates method the nextIntensity iterator goes past the end of the vector. I have attached a screenshot of debugger with some information about the current peak position values if that is helpful.
Attachments
Change History
comment:2 Changed 6 years ago by Michael Wedel
Weird, I seem to remember this from before. This happens when there is no intensity smaller than MAX/2 "to the right" of the peak. I will add a check for the border for these cases.
comment:3 Changed 6 years ago by Michael Wedel
- Status changed from assigned to inprogress
Refs #11065. Adding a check for vector boundary for fwhm-estimate
Changeset: 38e05433df51b4c85e2d03b4d61d2f7ffb9be878
comment:5 Changed 6 years ago by Michael Wedel
- Status changed from inprogress to verify
- Resolution set to fixed
This is being verified as pull request #208.
comment:6 Changed 6 years ago by Michael Wedel
Testing information The branch has been merged into develop. Please make sure that PoldiPeakSearchTest is passing in the debug-build.
comment:7 Changed 6 years ago by Martyn Gigg
- Status changed from verify to verifying
- Tester set to Martyn Gigg
comment:8 Changed 6 years ago by Martyn Gigg
- Status changed from verifying to closed
Merge pull request #208 from mantidproject/11065_fix_poldi_peak_search_array_bounds
Failure in PoldiPeakSearchTest under Windows debug
Full changeset: 07967d08a5b7a1607a164aa6710b8bf3bca67496
comment:9 Changed 5 years ago by Nick Draper
Somehow these slipped through without a resolution. Set to Fixed.
comment:10 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 11904