Issue 310: IndexOutOfRangeException in GraphChromatogram.DisplayPeptides

Status:closed
Assigned To:Guest
Type:Defect
Area:Skyline
Priority:3
Milestone:2.5
Opened:2014-02-26 15:22 by Nick Shulman
Changed:2014-07-19 07:59 by Brendan MacLean
Resolved:2014-04-15 10:33 by donmarsh
Resolution:Fixed
Closed:2014-07-19 07:59 by Brendan MacLean
2014-02-26 15:22 Nick Shulman
Title»IndexOutOfRangeException in GraphChromatogram.DisplayPeptides
Assigned To»donmarsh@proteinms.net
Type»Defect
Area»Skyline
Priority»3
Milestone»2.5
Someone hit an IndexOutOfRangeException in GraphChromatogram.DisplayPeptides.
The line number (1706) is the very beginning of the function, so we have to guess where the actual problem is.

Is it possible that sumInfo.Times is a zero length array and the exception happens on this line
float startRetentionTime = Math.Max(bestPeakInfo.StartRetentionTime, sumInfo.Times[0]);
?
-----------------------------------
From https://skyline.gs.washington.edu/labkey/announcements/home/issues/exceptions/thread.view?rowId=8840

User email address: chetty@email.chop.edu
User comments:
clicking to minimize a protein in the tree on the left.

Skyline version: 2.5.0.5675
Installation ID: 8f7dabdb-a70b-4c18-ad31-7033c5ac2aa7
Exception type: System.IndexOutOfRangeException
Error message: Index was outside the bounds of the array.

Stack trace:
   at pwiz.Skyline.Controls.Graphs.GraphChromatogram.DisplayPeptides(IRegressionFunction timeRegressionFunction, ChromatogramSet chromatograms, Single mzMatchTolerance, Int32 countLabelTypes, IList`1 peptideDocNodes, Double& bestStartTime, Double& bestEndTime, Double& leftPeakWidth, Double& rightPeakWidth) in C:\proj\skyline_2_5\pwiz_tools\Skyline\Controls\Graphs\GraphChromatogram.cs:line 1706
   at pwiz.Skyline.Controls.Graphs.GraphChromatogram.UpdateUINoReenter(Boolean selectionChanged, Boolean forceZoom) in C:\proj\skyline_2_5\pwiz_tools\Skyline\Controls\Graphs\GraphChromatogram.cs:line 772
   at pwiz.Skyline.Controls.Graphs.GraphChromatogram.UpdateUI(Boolean selectionChanged, Boolean forceZoom) in C:\proj\skyline_2_5\pwiz_tools\Skyline\Controls\Graphs\GraphChromatogram.cs:line 599
   at pwiz.Skyline.Controls.Graphs.GraphChromatogram.UpdateUI(Boolean selectionChanged) in C:\proj\skyline_2_5\pwiz_tools\Skyline\Controls\Graphs\GraphChromatogram.cs:line 587
   at pwiz.Skyline.SkylineWindow.UpdateGraphPanes(Object sender, EventArgs e) in C:\proj\skyline_2_5\pwiz_tools\Skyline\SkylineGraphs.cs:line 591
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

2014-04-15 10:33 donmarsh
resolve as Fixed
Statusopen»resolved
Assigned Todonmarsh@proteinms.net»Nick Shulman
Fixed, rev. 5923.

2014-07-19 07:59 Brendan MacLean
close
Statusresolved»closed
Assigned ToNick Shulman»Guest