ErrorMessage>Index was out of range. Must be non-negative and less than the size of the collection

Hello Dev Team

when launching Trados 2024 - this msg pops up

ErrorMessage>Index was out of range. Must be non-negative and less than the size of the collection

any suggestions to solve it?

<SDLErrorDetails time="9/8/2024 2:36:44 PM">
  <ErrorMessage>Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index</ErrorMessage>
  <Exception>
    <Type>SimpleInjector.ActivationException, SimpleInjector, Version=5.0.0.0, Culture=neutral, PublicKeyToken=984cb50dea722e99</Type>
    <HelpLink />
    <Source>SimpleInjector</Source>
    <HResult>-2146233088</HResult>
    <StackTrace><![CDATA[   at SimpleInjector.InstanceProducer.GetInstance()
   at SimpleInjector.Internals.ContainerControlledCollection`1.GetInstance(InstanceProducer producer)
   at SimpleInjector.Internals.ContainerControlledCollection`1.CopyTo(TService[] array, Int32 arrayIndex)
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Sdl.Platform.UI.Wizard.Framework.WizardBuilder.BuildWizardPages[TSharedData](TSharedData sharedData, IWizardWindowViewModel wizardWindowVm)
   at Sdl.Platform.UI.Wizard.Framework.WizardBuilder.Build[TSharedData](TSharedData sharedData)
   at Sdl.Platform.UI.Wizard.Framework.WizardBuilder.Build[TSharedData,TBackendService](TSharedData sharedData)
   at Sdl.TranslationStudio.Common.SetupWizard.SetupWizardLauncher.Execute()
   at Sdl.Desktop.Platform.Implementation.Studio.ExecuteStartupExtensions(ISplashScreen splashScreen, IEnumerable`1 startUpActions)
   at Sdl.Desktop.Platform.Implementation.Studio.Run(ISplashScreen splashScreen, IPluginLoaderService pluginLoaderService, ICommandLineParsingService commandLineParsingService, IUserSettingsService userSettingsService, IEnumerable`1 startUpActions, ILicensingService licensingService)
   at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
    <InnerException>
      <Type>System.ArgumentOutOfRangeException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
      <ParamName>index</ParamName>
      <HelpLink />
      <Source>mscorlib</Source>
      <HResult>-2146233086</HResult>
      <StackTrace><![CDATA[   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Sdl.TranslationStudio.Common.SetupWizard.UserProfileWizardPageViewModel..ctor(IUserSettingsService userSettingsService, IMessageService messageService, IOpenFileDialog openFileDialog, IUserProfileFactory userProfileFactory)
   at lambda_method(Closure )
   at SimpleInjector.InstanceProducer.BuildAndReplaceInstanceCreatorAndCreateFirstInstance()
   at SimpleInjector.InstanceProducer.GetInstance()]]></StackTrace>
    </InnerException>
  </Exception>
  <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio18</ProductVersion>
    <EntryAssemblyFileVersion>18.0.0.1013</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>DESKTOP-2F65CAQ\2</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-2F65CAQ</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16692280 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

emoji
Parents
  • Buongiorno,

    anche noi stiamo avendo lo stesso problema, ma la soluzione proposta non risolve il problema con Trados Studio 2024 . il problema si verifica ogni volta che viene lanciata l'attività batch "Pretraduci file" e "Analizza file".

    Abbiamo provato a fare gli stessi progetti con le stesse attività batch su un altro computer, e funziona, perciò il problema sembra legato all'installazione di Trados Studio 2024.

    Quale altra soluzione possibile esiste?

    Alleghiamo il file xml del messaggio d'errore.

    <SDLErrorDetails time="24/09/2024 10:28:34">
      <ErrorMessage>Exception of type LanguagePlatformException occurred: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione della raccolta.
    Nome parametro: startIndex
    Stacktrace:
       in Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemoryLanguageDirection.SearchTranslationUnitsMasked(SearchSettings settings, SubsegmentSearchSettings subsegmentSettings, SubsegmentSearchCondition condition, TranslationUnit[] translationUnits, Boolean[] mask)
       in Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.SearchSegmentAndSubSegmentTranslationUnitsMaskedCommand.Execute(T cascadeEntry, SearchSettings searchSettings)
       in Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.ExecuteSearchCommand(SearchCommand`1 searchCommand, SearchSettings searchSettings, Int32 searchResultsCount, IEnumerable`1& cascadeMessages)</ErrorMessage>
      <Exception>
        <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=18.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
        <HelpLink />
        <Source />
        <HResult>-2146233088</HResult>
        <StackTrace><![CDATA[]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio18</ProductVersion>
        <EntryAssemblyFileVersion>18.0.0.1013</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1040</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>PCTRADU\loretta</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>PCTRADU</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>8223624 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    Grazie fin da ora.

    Cordiali saluti,Loretta
    Mazzoleni

    emoji
Reply
  • Buongiorno,

    anche noi stiamo avendo lo stesso problema, ma la soluzione proposta non risolve il problema con Trados Studio 2024 . il problema si verifica ogni volta che viene lanciata l'attività batch "Pretraduci file" e "Analizza file".

    Abbiamo provato a fare gli stessi progetti con le stesse attività batch su un altro computer, e funziona, perciò il problema sembra legato all'installazione di Trados Studio 2024.

    Quale altra soluzione possibile esiste?

    Alleghiamo il file xml del messaggio d'errore.

    <SDLErrorDetails time="24/09/2024 10:28:34">
      <ErrorMessage>Exception of type LanguagePlatformException occurred: Index non compreso nell'intervallo. Richiesto valore non negativo e minore della dimensione della raccolta.
    Nome parametro: startIndex
    Stacktrace:
       in Sdl.LanguagePlatform.TranslationMemoryApi.FileBasedTranslationMemoryLanguageDirection.SearchTranslationUnitsMasked(SearchSettings settings, SubsegmentSearchSettings subsegmentSettings, SubsegmentSearchCondition condition, TranslationUnit[] translationUnits, Boolean[] mask)
       in Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.SearchSegmentAndSubSegmentTranslationUnitsMaskedCommand.Execute(T cascadeEntry, SearchSettings searchSettings)
       in Sdl.LanguagePlatform.TranslationMemoryApi.Cascade`1.ExecuteSearchCommand(SearchCommand`1 searchCommand, SearchSettings searchSettings, Int32 searchResultsCount, IEnumerable`1& cascadeMessages)</ErrorMessage>
      <Exception>
        <Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=18.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type>
        <HelpLink />
        <Source />
        <HResult>-2146233088</HResult>
        <StackTrace><![CDATA[]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio18</ProductVersion>
        <EntryAssemblyFileVersion>18.0.0.1013</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1040</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>PCTRADU\loretta</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>PCTRADU</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>8223624 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    Grazie fin da ora.

    Cordiali saluti,Loretta
    Mazzoleni

    emoji
Children
No Data