Studio 2017 - "Index was outside the bounds of the array"

For the umpteenth time since installing 2017, I got this error this morning. The same problem has been posted here before by other users but got no definitive solution, so I'm starting a new thread.

Studio version: 2017

Operating system: Windows 7 Home Premium (Service Pack 1)

Description of the problem: I was working normally in Studio yesterday. I closed the session and turned my computer off as normal. When trying to open Studio this morning, I get the error message "Index was outside the bounds of the array" and Studio won't open (programme won't launch). It has been the same every single time this problem has happened over the last few months, i.e. there is no visible problem when working and no computer crash. Work normally, close normally and can't open again.

Suggested solution so far: 1) in this forum it has been suggested to reset Studio. This works indeed, but is very tedious as every time I must reconfigure Studio, redefine my settings, shorcuts, etc. 2) Deleting the project files from my computer for the last project I was working, which is also annoying as I must start the project from scratch again (thankfully the memory isn't affected). But I would be very surprised if the project/package was at fault every single time, since they are all different (either a project created by me from scratch or a package sent by the client) and the same project/package works again normally after having been deleted and imported again.

Error stack:

<?xml version="1.0"?>

-<SDLErrorDetails time="02/06/2018 06:18:28">

<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>Sony-PC\Sony</LoggedOnUser>

<DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>

<ComputerName>SONY-PC</ComputerName>

<ConnectedToNetwork>True</ConnectedToNetwork>

<PhysicalMemory>6271928 MB</PhysicalMemory>

</Environment>

</SDLErrorDetails>

  • Hi ,

    If you have tried a reset and have to keep doing this then I would do a clean reinstall and I would install the latest versionas you don't have this installed.... it should be 14.1.10011.20356

    Clean install... try the following.

    1. Uninstall Studio
    2. Uninstall MultiTerm

    Now manually delete these folders if they are still there (back up your TMs, Termbases, AutoSuggest Dictionaries and Projects first in case you make a mistake):

    c:\ProgramData\Package Cache\SDL\SDLTradosStudio2017\
    c:\ProgramData\Package Cache\SDL\SDLMultiTermDesktop2017\
    c:\Program Files (x86)\SDL\SDL Trados Studio\Studio5\
    c:\Program Files (x86)\SDL\SDL MultiTerm\MultiTerm14\
    c:\Users\[USERNAME]\AppData\Local\SDL\SDL Trados Studio\14\
    c:\Users\[USERNAME]\AppData\Local\SDL\SDL Trados Studio\14.0.0.0\
    c:\Users\[USERNAME]\AppData\Local\SDL\SDL MultiTerm\MultiTerm14\
    c:\Users\[USERNAME]\AppData\Local\SDL\SDL Trados Studio\14\
    c:\Users\[USERNAME]\AppData\Roaming\SDL\SDL Trados Studio\14.0.0.0\
    c:\Users\[USERNAME]\AppData\Roaming\SDL\SDL MultiTerm\MultiTerm14\
    c:\Users\[USERNAME]\Documents\Studio 2017\Project Templates\
    c:\Users\[USERNAME]\Documents\Studio 2017\Projects\projects.xml

    I think that's about it for a clean install. Then reinstall.

    If you still have problems after this I'd recommend you log a ticket with support so an engineer can look at this for you. This is clearly an installation problems and for licensing or installation issues that prevent you from working we have a route for all customers to get help. This can be achieved really quickly using this link:

    http://support.xl8.one

    Just fill in the form and submit it. Make sure your email address is entered correctly or nobody will be able to get back in touch with you.

    Regards

    Paul

    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

  • Thank you Paul. I should have said that I did unistall and reinstall Studio when the problem started, although I didn't specifically check or delete the folders you mention. Is it worth trying again, this time paying attention to those folders? If you think it can make a difference I'll do it (otherwise I'd rather avoid having to define my settings and shortcuts again).
  • Hi ,

    If you contact support the first thing they are going to do is this, so I think it's worth trying to make sure you have a completely clean install. Once the installation complete also make sure you upgrade to the latest service pack for each product.

    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

  • Thank you Paul, will do. But I'm wary of Update 9, because I did install it a couple of months ago (when prompted within Studio) and I started getting the error "Cannot save target: “Internal error: Multiple tags with the same ID italic have different start tag properties”, as documented here: community.sdl.com/.../14906. As soon as I removed update 9, I could insert italics, bold and superscript again.

    Anyway, thank you for your time and I'll see how it goes with a clean reinstall.
  • Hi ,

    This problem should not occur with new projects. It only appeared on projects started before updating and even then only if you used the quick inserts. If you transfer the tags from source to target you would not have the issue at all.

    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

  • That's fine if the source text is in italics in the first place, in which case we can indeed insert tags. But sometimes the target text needs to be in italics (or superscript) even though the source text isn't. On those occasions, the problem happened systematically every time I would insert italics or superscript , even in projects started from scratch after the update, until I removed the update.

    I'll see how it goes this time.