Failure opening Skyline-Daily file

support
Failure opening Skyline-Daily file samartinez3  2024-02-28 09:50
 

Hello, I have been receiving an error when trying to open a file that has been previously analyzed. It gives me the options to click OK or More Info, More info gives the information below:

System.IO.IOException: Failure attempting to load the window layout file W:\FilePath
Rename or delete this file to restore the default layout.
Skyline may also need to be restarted. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at DigitalRune.Windows.Docking.DockPanelPersistor.LoadFromXml(DockPanel dockPanel, Stream stream, DeserializeDockableForm deserializeContent)
at pwiz.Skyline.SkylineWindow.LoadLayoutLocked(Stream layoutStream) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\SkylineGraphs.cs:line 526
at pwiz.Skyline.SkylineWindow.LoadLayout(Stream layoutStream) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\SkylineGraphs.cs:line 481
at pwiz.Skyline.SkylineWindow.UpdateGraphUI(SrmSettings settingsOld, Boolean docIdChanged) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\SkylineGraphs.cs:line 308
--- End of inner exception stack trace ---
at pwiz.Skyline.SkylineWindow.UpdateGraphUI(SrmSettings settingsOld, Boolean docIdChanged) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\SkylineGraphs.cs:line 317
at pwiz.Skyline.SkylineWindow.OnDocumentUIChanged(SrmDocument documentPrevious) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\Skyline.cs:line 588
at pwiz.Skyline.SkylineWindow.SetDocument(SrmDocument docNew, SrmDocument docOriginal) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\Skyline.cs:line 706
at pwiz.Skyline.SkylineWindow.RestoreDocument(SrmDocument docUndo) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\Skyline.cs:line 903
at pwiz.Skyline.SkylineWindow.SwitchDocument(SrmDocument document, String pathOnDisk) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\Skyline.cs:line 861
at pwiz.Skyline.SkylineWindow.OpenFile(String path, FormEx parentWindow) in D:\Users\nicksh\git_d\sky_applypeaktoall\pwiz_tools\Skyline\SkylineFiles.cs:line 397

I'm using a Skyline-daily with a special "apply to all" feature (from Nick). Please let me know what I need to do to properly open the files.

 
 
Nick Shulman responded:  2024-02-28 10:03
You can work around this error by deleting the ".sky.view" file which is in the same folder as the Skyline document.

The .sky.view file contains information about the layout of all of the windows in Skyline. Sometimes the information in there causes an error for Skyline and the best thing to do is just delete that file.

(I have tried to figure out what causes this particular error because it looks like it should be simple to fix but I have never been able to figure it out.)
--Nick