Error message after placing cursor into certain segments and after confirming some segments in Studio 2019 SR2 after latest update (to 15.2.8.3007)

Hello everyone,

I've encountered 2 different issues after the latest update in certain files with the same message window: Object reference not set to an instance of an object. At first I thought the problems were with the files, but when I tested them on another machine and an earlier version (before the update) of Studio, the issues were not there.

1. The first error occurs when I place the cursor in certain segments, not all. The message could not disappear after confirming it, nor after pressing ESC. It disappeared only when I moved to another error-free segment, but could do that only after constantly holding ESC. The only way to confirm these problematic segments was to constantly hold ESC key and keep pressing CTRL+Enter in the meantime, while the error window was not visible (though I had milliseconds to do it as the window kept popping up), but TM wouldn't get populated with that translation. That's why I thought the problem was with the file, but after testing it with an earlier version of Studio, everything was fine. Language combinations were: source: en-US; target: sr-Latn-CS.

EDIT: I could not even type in these segments, because of the error message. I had to translate them in a text editor and copy/paste the translation quickly in the meantime, while holding ESC.

The error log is:

<SDLErrorDetails time="19.2.2021. 11:30:30">
  <ErrorMessage>Object reference not set to an instance of an object.</ErrorMessage>
  <Exception>
    <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Sdl.Core.Globalization</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Sdl.Core.Globalization.UnitMetadata.UnitMetadataRegistry.TryHierachy[T](Func`2 f, String languageCode)
   at Sdl.Core.Globalization.UnitMetadata.UnitMetadataRegistry.GetPreferredLabelValueSet(String unitKey, String languageCode)
   at Sdl.LanguagePlatform.Core.Tokenization.MeasureToken.Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings, ILocalizableToken originalMemoryToken, Boolean adjustCasing)
   at Sdl.LanguagePlatform.Core.Tokenization.MeasureToken.Localize(CultureInfo culture, AutoLocalizationSettings autoLocalizationSettings)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.SuggestionData..ctor(DocumentToken documentToken, CultureInfo culture, AutoLocalizationSettings localizationSettings)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.TagFormattingDataProvider.ProcessDocumentTokens(SideBySideEditor editor, IList`1 suggestionData)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Intellisense.TagFormattingDataProvider.GetSuggestionData(EditingContext context)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Actions.LaunchTagFormattingWindowAction.GetSuggestionData(SideBySideEditor editor)
   at Sdl.TranslationStudio.Editor.TranslationEditor.Actions.LaunchTagFormattingWindowAction.IsActionEnabled()
   at Sdl.TranslationStudio.Api.Editor.AbstractActiveDocumentAction.UpdateAction()
   at Sdl.TranslationStudio.Api.Editor.AbstractSelectionDependentAction.OnSelectionChanged(IDocumentEditingView view)
   at Sdl.TranslationStudio.Api.Editor.DocumentEditingViewEventHandler.Invoke(IDocumentEditingView view)
   at Sdl.TranslationStudio.Editor.TranslationEditor.SelectionChangedDelayedEventHandler.<>c__DisplayClass27_0.<FireEvent>b__0()
   at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
   at System.Windows.Forms.Control.InvokeMarshaledCallbacks()]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>15.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>15.2.8.3007</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1250</CodePage>
    <LoggedOnUser>DESKTOP-32O0PCV\Drakce</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-32O0PCV</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>3977600 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

2. The second error appeared after trying to confirm certain segments in another project. The same message window appeared, but after confirming the error message, the segment could be manually set to status 'Translated' via right-click menu, but the translation wouldn't go to TM. Language combinations were: source: en-US; target: sr-Latn-CS. Only later did I realise that the issue was resolved after restarting the machine.

EDIT: I could regularly type in these segments.

I attach the error log as well, just in case the issues are similar:

<SDLErrorDetails time="18.2.2021. 11:29:37">
  <ErrorMessage>Object reference not set to an instance of an object.</ErrorMessage>
  <Exception>
    <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Sdl.Core.Globalization</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Sdl.Core.Globalization.UnitMetadata.UnitMetadataRegistry.TryHierachy[T](Func`2 f, String languageCode)
   at Sdl.Core.Globalization.UnitMetadata.UnitMetadataRegistry.UnitMetadataFromLabel(String label, String languageCode)
   at Sdl.Core.LanguageProcessing.Tokenization.MeasureFSTRecognizer.Parse(String surface, String output)
   at Sdl.Core.LanguageProcessing.Tokenization.MeasureFSTRecognizer.Recognize(String s, Int32 from, Boolean allowTokenBundles, Int32& consumedLength)
   at Sdl.Core.LanguageProcessing.Tokenization.Tokenizer.TokenizeInternal(String s, Int32 currentRun, Boolean createWhitespaceTokens, Boolean allowTokenBundles, List`1 recognizers)
   at Sdl.Core.LanguageProcessing.Tokenization.Tokenizer.GetTokens(Segment s, Boolean allowTokenBundles, Boolean enhancedAsian)
   at Sdl.Verification.QAChecker.QASegment.get_Tokens()
   at Sdl.Verification.QAChecker.Processors.ProcessorPunctuation.GetFirstLetterCategory(QASegment qaSegment)
   at Sdl.Verification.QAChecker.Processors.ProcessorPunctuation.CheckInitialCaps(QASegmentPair currentSegmentPair)
   at Sdl.Verification.QAChecker.Processors.ProcessorPunctuation.Process(ISettingsBundle settingsBundle, QASegmentPair currentPair)
   at Sdl.Verification.QAChecker.QACheckerProcessing.Verify(QASegmentPair currentPair)
   at Sdl.Verification.QAChecker.QACheckerMain.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.BilingualApi.AbstractBilingualContentProcessor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Integration.LocationMarkerLocator.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ProcessParagraphUnit(IParagraphUnit paragraphUnit)
   at Sdl.TranslationStudio.Editor.TranslationEditor.SingleParagraphUnitBilingualParser.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.FileExtractor.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()
   at Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()
   at Sdl.TranslationStudio.Editor.TranslationEditor.SegmentVerifier.Verify(ISegmentContainerNode segmentContainerNode, IParagraphUnitContainerNode paragraphContainerNode, IFileContainerNode fileContainerNode)
   at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.VerifySegment(ISegmentContainerNode segmentContainerNode, IParagraphUnitContainerNode paragraphContainerNode, IFileContainerNode fileContainerNode)
   at Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingView.VerifySegment()
   at Sdl.TranslationStudio.Editor.TranslationEditor.Actions.AbstractConfirmSegmentAction.ExecuteActiveSegment()
   at Sdl.TranslationStudio.Editor.TranslationEditor.Actions.AbstractConfirmSegmentAction.Execute()
   at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.<>c__DisplayClass30_0.<ExecuteAction>b__0()
   at Sdl.Desktop.Logger.Log.Resources(Object message, Action action)
   at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteAction(IAction action, ActionOrigin origin, Boolean allowToggle)
   at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteActionForShortcut(Keys shortcut)
   at Sdl.Desktop.Platform.WinForms.StudioWindowForm.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Form.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>15.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>15.2.8.3007</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1250</CodePage>
    <LoggedOnUser>DESKTOP-32O0PCV\Drakce</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-32O0PCV</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>3977600 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

The only common thing is that I used GroupShare TMs in both cases, but the projects were offline. In the first case above, the TM was open as regular server-based TM (with matching language pairs), and in the second case, as AnyTM server-based TM due to different target language variant (TM's language pairs were: source: en-US; target: sr-Latn-RS).

The logs are from my older machine, but they were the same with the new one (16GB RAM, 1TB SSD, 2.5GHz IntelCore i5 CPU) which is currently on a regular maintenance service.

Could the problem be with the update or with my machine(s)? I tried searching the issue in Community forum, but could not find a similar issue. If it has already been described, a link to the solution would be much appreciated.

As this is not happening frequently, it is not affecting my work that much, but I'll downgrade to the earlier version if it starts to occur more often.

Regards,

Dragana

Parents Reply Children
No Data