An unexpected token keeps shuting down Trados Studio 2024

Hello,

just purchased Trados 2024 a couple of days ago, and at the moment working on a project. However the Studio crashes at random segments with an "unexpected token" error. I deactivated every translation memories, automatic translation etc, and it did not help at all. It's the same for Word & PDF documents. There are some specific segments where the studio crashes, and I can't go further, as it keeps crashing every time on this particular segment.

Tried the same documents in Trados 2021, and there's no such issue. It's irritating, seems like a bug of Trados 2024, as it does not occur in Studio 2021.

The only way is to skip the segment, but every automatic jump to this segment leads to a crash, so i have to leave the previous one untranslated and skip over this problematic one. Until it crashes again on a unexpected problematic segment again. Very frustrating though.

Error dialog in Trados Studio with a System.FormatException error message, mentioning 'unexpected token' and a stack trace with various method calls.

Did anyone experience such issues? I have searched in the forum, but did not find anything recent, only posts dated 2016 or 2021... my Studio 2021 did not crash at all.

Awaiting your feedback.

Thank you!

Regards

Rafal



Generated Image Alt-Text
[edited by: RWS Community AI at 4:16 PM (GMT 1) on 14 Sep 2024]
emoji
  • Hello Rafal,

    I'm sorry to hear about the issues you're experiencing with Trados Studio 2024. Let's try to resolve this together. Here are some steps you can follow:

    Step 1: Check for Updates manually in Windows. From the Start button, type 'Check for Updates' and select the option offered in the search window. Install any updates found and restart your computer. Repeat this until there are no other updates.

    Step 2: Try repairing your Trados Studio installation. You can find a guide on how to do this in the RWS Community.

    Step 3: Ensure that you have the .NET Framework 4.7.2 (or later) installed. For Trados Studio 2021, you need 4.8!

    Step 4: Refresh your .NET Framework installation. In the Start button, type 'Turn Windows features on or off' and select the option offered in the search window. On Windows Features, un-tick the .NET 4.5 (or higher) version. Restart the computer. After the restart, go to the same location and tick back the box for .NET 4.5 (or higher) and then restart again.

    Step 5: If the crash can be reproduced at a specific segment, check if your Translation Memory (TM) is corrupted. Go to Project Settings -> Language Pairs -> Translation Memory. Disable one by one the TMs and check if the crash persists. If the crash does not occur anymore after a TM was disabled, the TM is corrupted and has to be recreated.

    Step 6: Similarly, check if your Termbase is corrupted. Go to Project Settings -> Language Pairs -> Termbases. Disable one by one the termbases and check if the crash persists. If the crash does not occur anymore after a termbase was disabled, the termbase is corrupted and has to be recreated.

    Additional recommendations: If your translation resources are not stored locally, on your computer, but are on a shared drive, network or cloud-based file-sharing storing facility like Dropbox, take the resources locally and test to see if the crashes still occur.

    If you suspect a problem with the installation (loss of functionality besides crashing), try resetting Trados Studio to its default settings.

    If these steps do not resolve your issue, or if you require further assistance, please contact the RWS Support Team.

    I hope this helps! Let me know if you have any other questions.

    Best regards,

    RWS Community AI

    emoji
  • This helped so far:

    1. Rename the following XML files (for example, add an underscore before/after the file name):
      • BaseSettings.xml
      • Plugincache.xml
      • UserSettings.xml
    2. Restart Trados Studio.

    Will see, how it looks like in the coming days..

    emoji
  •  

    It would be a help to know which file type you are using. Also, the screenshot is hard to read. Best is to click on the little floppy disk symbol in the lower left corner of the error message and add upload the resulting xml file here.

    Daniel

    emoji
  • Well, it does not crash on this unexpected token any more, but now I got a random error when using the AI translation provider. The previous error occured on both .docx & .pdf files, now this was the case with .pdf files, but I don't think it does matter.

    <SDLErrorDetails time="18.09.2024 07:34:10">
      <ErrorMessage>Wartość nie może być zerowa.
    Nazwa parametru: searchResult</ErrorMessage>
      <Exception>
        <Type>System.ArgumentNullException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <ParamName>searchResult</ParamName>
        <HelpLink />
        <Source>Sdl.TranslationStudio.Editor</Source>
        <HResult>-2147467261</HResult>
        <StackTrace><![CDATA[   w Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.InsertTranslation(ISegmentContainerNode segmentNode, SearchResult searchResult, Boolean applyDeleteTrackChange)
       w Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.ApplySegmentTranslation(ISegmentContainerNode segment, SearchResult searchResult)
       w Sdl.TranslationStudio.Editor.TranslationMemory.TranslationMemoryViewPart.SelectSearchResultN(Int32 n, Boolean applyToActiveSegment)
       w Sdl.TranslationStudio.Editor.TranslationMemory.Actions.SelectMatchActions.AbstractSelectMatchNAction.Execute()
       w Sdl.Desktop.Platform.Implementation.CommandBars.SimpleActionExecuter.Execute(ActionData actionData)
       w Sdl.Desktop.Platform.Implementation.ResourceLoggingInternalCommandExecuter`1.ExecuteWithResourceLogging(TCommandData commandData, String message)
       w Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteAction(IAction action, ActionOrigin origin, Boolean allowToggle)
       w Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteActionForShortcut(Keys shortcut)
       w Sdl.Platform.UI.StudioWindowForm.OnPreviewKeyDown(Keys keys)
       w Sdl.Platform.UI.GlobalKeysMessageFilter.PreFilterMessage(Message& m)
       w System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
       w System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
       w System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
       w System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       w System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       w System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       w Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>Trados Studio</ProductName>
        <ProductVersion>Studio18</ProductVersion>
        <EntryAssemblyFileVersion>18.0.0.1013</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 11 Home</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1045</OperatingSystemLanguage>
        <CodePage>1250</CodePage>
        <LoggedOnUser>NITRO\rafal</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>NITRO</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>33462160 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    emoji