Unable to open Studio 2017 with error message "Index was outside the bounds of the array."

I bought Studio 2017 a week ago and after installation spent a few days learning the ropes and started working with it. Pretty soon thereafter I encountered two different and seemingly unrelated bugs that prevented me from using the program. I will split these two issues in two posts, this being the first.

After much experimentation I managed to find a work-around, which is a temporary solution allowing me to at least work, but I would like to see this fixed if possible.

In the middle of the start-up process, before the application window opens, a pop-up appears with the error message I put in the title (Index was outside the bounds of the array) and after clicking on it, I'm back on the desktop.

At first I was baffled and couldn't find any solution online either. The first thing I came up with to at least get access again was to rename the active project file or folder, so Studio couldn't find it again. I would then have to open the project or file by clicking on it in Windows, whereby it would be once more added to the project list in Studio, albeit under a different name or in a differently named folder. Of course exiting Studio and trying to start it again would create the same problem.

After a few days of frustration and experimentation with renaming the user settings file (due to the other issue I encountered), I discovered that if I exit Studio from within the welcome or projects screen, it starts up again without problems, but if I exit from within the editor or files screen, I get the error message and can't get back in.

For others with the same problem: the workaround is to open the UserSettings.xml file located in C:\Users\user_name\AppData\Roaming\SDL\SDL Trados Studio\14.0.0.0 with Notepad or another text editor and replace the line:

<Setting Id="ActiveView">FilesView</Setting> or

<Setting Id="ActiveView">EditorView</Setting>

at the beginning of the file with:

<Setting Id="ActiveView">SimpleStartView</Setting> or

<Setting Id="ActiveView">WelcomeView</Setting>

This works for me. The avoid having to do the above, only thing to remember is to always exit Studio from the Welcome view to begin with. It's a bit awkward but not that much hassle.

I have no idea what causes this bug. I didn't do anything special. The only thing I can think of that might cause this is the fact that only in the Files view is the ribbon too wide for my laptop screen and in order to reach the rightmost buttons I have to scroll right. This is the only thing I can come up with that could somehow relate to any index being outside the bounds of an array.

 

Parents
  • Hi  ,

    That's a strange one. I can mirror your situation wrt the ribbon being too wide but can't reproduce the bug at all. I've never seen this before either. Good you found a solution, but it would e good to know why this happens in the first place. I'll ask around and come back to you if I get anything worth investigating.  Can you provide the full error stack and not just the title?

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

  • Hi Paul,

    Thanks for responding. This was my first post and didn't yet know about error stacks and such. I have now done as you suggested. I just copied and pasted the text from the XML file. Let me know if in future I should do this differently. I've been busy doing some real work these past days, so didn't have any time, but today I will also write a  post on the other bug I encountered. This is the stack:

    <SDLErrorDetails time="01/02/2018 09:46:35">
    <ErrorMessage>Index was outside the bounds of the array.</ErrorMessage>
    <Exception>
    <Type>System.IndexOutOfRangeException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Infragistics4.Shared.v14.2</Source>
    <HResult>-2146233080</HResult>
    <StackTrace><![CDATA[ at Infragistics.Shared.SparseArray.ValidateIndex(Int32 index)
    at Infragistics.Shared.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback)
    at Infragistics.Win.UltraWinGrid.RowsCollection.InternalTraverseRowsHelper(UltraGridBand band, IRowCallback rowCallback, IRowsCollectionCallback rowsCollectionCallback, Boolean recursive, Boolean includeTemplateAddRows)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.CalculateMaxCellTextWidth(Int32 maxColWidth, RowsCollection rows, Int32 nRows, Int32 maxRowsCollections, AutoResizeColumnWidthOptions options)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.PerformAutoResizeHelper(RowsCollection rows, Int32 nRows, Boolean applyWidth, AutoResizeColumnWidthOptions options, Int32 maxRowsCollections)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.PerformAutoResizeHelper(RowsCollection rows, Int32 nRows, Boolean applyWidth, Boolean includeHeader, Boolean includeCells)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.CalculateAutoResizeWidth(PerformAutoSizeType autoSizeType, Boolean includeHeader)
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FileDetailsViewPartControl.RefreshContent()
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FileDetailsViewPartControl.set_Files(IProjectFile[] value)
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FileDetailsViewPart.Refresh()
    at Sdl.Desktop.Platform.AbstractViewWithParts.Refresh()
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FilesView.Refresh()
    at Sdl.Desktop.Platform.Implementation.StudioWindow.OnInitialized()
    at Sdl.Desktop.Platform.Implementation.StudioWindow.Init()
    at Sdl.Desktop.Platform.Implementation.Studio.CreateWindowInternal(Boolean setActive)
    at Sdl.Desktop.Platform.Implementation.Studio.Run()
    at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>14.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>14.1.6413.8</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 7 Home Premium </OperatingSystem>
    <ServicePack>Service Pack 1</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>Netbook-Shanti\Shanti</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>NETBOOK-SHANTI</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>5874352 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

Reply
  • Hi Paul,

    Thanks for responding. This was my first post and didn't yet know about error stacks and such. I have now done as you suggested. I just copied and pasted the text from the XML file. Let me know if in future I should do this differently. I've been busy doing some real work these past days, so didn't have any time, but today I will also write a  post on the other bug I encountered. This is the stack:

    <SDLErrorDetails time="01/02/2018 09:46:35">
    <ErrorMessage>Index was outside the bounds of the array.</ErrorMessage>
    <Exception>
    <Type>System.IndexOutOfRangeException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Infragistics4.Shared.v14.2</Source>
    <HResult>-2146233080</HResult>
    <StackTrace><![CDATA[ at Infragistics.Shared.SparseArray.ValidateIndex(Int32 index)
    at Infragistics.Shared.SparseArray.GetItem(Int32 index, ICreateItemCallback createItemCallback)
    at Infragistics.Win.UltraWinGrid.RowsCollection.InternalTraverseRowsHelper(UltraGridBand band, IRowCallback rowCallback, IRowsCollectionCallback rowsCollectionCallback, Boolean recursive, Boolean includeTemplateAddRows)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.CalculateMaxCellTextWidth(Int32 maxColWidth, RowsCollection rows, Int32 nRows, Int32 maxRowsCollections, AutoResizeColumnWidthOptions options)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.PerformAutoResizeHelper(RowsCollection rows, Int32 nRows, Boolean applyWidth, AutoResizeColumnWidthOptions options, Int32 maxRowsCollections)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.PerformAutoResizeHelper(RowsCollection rows, Int32 nRows, Boolean applyWidth, Boolean includeHeader, Boolean includeCells)
    at Infragistics.Win.UltraWinGrid.UltraGridColumn.CalculateAutoResizeWidth(PerformAutoSizeType autoSizeType, Boolean includeHeader)
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FileDetailsViewPartControl.RefreshContent()
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FileDetailsViewPartControl.set_Files(IProjectFile[] value)
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FileDetailsViewPart.Refresh()
    at Sdl.Desktop.Platform.AbstractViewWithParts.Refresh()
    at Sdl.TranslationStudio.ProjectManagement.FilesView.FilesView.Refresh()
    at Sdl.Desktop.Platform.Implementation.StudioWindow.OnInitialized()
    at Sdl.Desktop.Platform.Implementation.StudioWindow.Init()
    at Sdl.Desktop.Platform.Implementation.Studio.CreateWindowInternal(Boolean setActive)
    at Sdl.Desktop.Platform.Implementation.Studio.Run()
    at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>14.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>14.1.6413.8</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 7 Home Premium </OperatingSystem>
    <ServicePack>Service Pack 1</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>Netbook-Shanti\Shanti</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>NETBOOK-SHANTI</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>5874352 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>

Children
No Data