[Help needed] Trados Studio 2022 API Error only in Japanese: The type initializer for 'Sdl.Core.LanguageProcessing.ICU2.WordBoundaryFinder' threw an exception.

Dear  -san,

This is rkoide and we are having the exact same error in Trados Studio 2022 API that we had in Trados Studio 2021 and this error occurs only when we process a Japanese file.

Error message in Trados Studio 2022 showing a System Initialization Exception and a File Load Exception related to ICU Word Boundary Finder when processing a Japanese file.

Back then, I sent you a sample code and you were kind enough to take a look at it and helped me solve this problem.

Would you mind if I sent you another sample code in Trados 2022 for you to take a look at it again?

Thank you.



Generated Image Alt-Text
[edited by: Trados AI at 1:41 PM (GMT 0) on 5 Mar 2024]
Parents Reply
  • Hi  , thank you for providing the source code sample, it really helps on this side to speed track reproducing these issues.

    I've been able to reproduce and identify how to resolve.  You'll need to include the following assembly bindings with your project.

    Please test this & confirm; I'll then update the public documentation.

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
      </startup>
      <runtime>
        <NetFx40_PInvokeStackResilience enabled="1" />
        <legacyCorruptedStateExceptionsPolicy enabled="true" />
        <ThrowUnobservedTaskException enabled="true" />
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Extensions.DependencyModel" publicKeyToken="adb9793829ddae60" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Data.SqlClient" publicKeyToken="23ec7fc2d6eaa4a5" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
          </dependentAssembly>
        </assemblyBinding>
      </runtime>
    </configuration>

    Really appreciate yr support; no.1

Children