Object reference not set to an instance of an object

Hello

One of the translators in my office is getting this error message every time using CTRL+enter or other methods to save a segment.  Clicking Ok and Trados shuts down.

Using Trados Studio 2021 SR2 - 16.2.12.9338

File is Word 150kb 12 pages and about 3500 words.

Noticed that some suggestions were to reset layout.  Another suggestion was to remove plugins.  Has same plugins as other translators and they did not have this issue.

Any other suggestions--others did not resolve issue.

Have included log file.

Error dialog box in Trados Studio with message 'Object reference not set to an instance of an object.' with Knowledge Base and Community buttons and an OK button.

/cfs-file/__key/communityserver-discussions-components-files/90/sdlerror_2D00_202388_2D00_12h5m43s.sdlerror.sdlerror.xml



Generated Image Alt-Text
[edited by: Trados AI at 12:02 PM (GMT 0) on 29 Feb 2024]
emoji
  •  

    This is a System.NullReferenceException. In simple terms, it means that you tried to use something (e.g., call a method, access a property) on an object that hasn't been initialized (it's null).  Reading the stack further the error seems to be coming from here "Sdl.Verification.TermVerifier.TermVerifierProcessing.HasTargetEntry(ITermRecognitionHit sourceHit)".  So it seems that the method HasTargetEntry of the TermVerifierProcessing class in the Sdl.Verification.TermVerifier namespace attempts to reference an object that isn't there.

    I don't know exactly why, but perhaps try first of all disabling the termbase verification and see if that helps?

    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

    emoji
  •  

    Will give this a try.  One question--where/how disable the termbase verification?

    emoji
  •  

    Screenshot showing where to disable the checkbox for terminology verification.

    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

    emoji
  •  

    It worked.

    Any idea why it would happen with this one job?   She had a lot of other jobs brought in and worked on at same time without this error?

    Thank you

    David

    emoji
  •  
    Hello, this seems to be another instance of a concurrency issue we have on the Editor to Translation Resources communication. We are working on a fix that will come with next CU. 

    emoji
  • Thanks  .

    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

    emoji
  •  

    Thank you for the information.   Is this an issue with the 2022 version as well?

    emoji
  •  very very sorry, I did not read the version you are using Expressionless I just saw "Object reference error.." and knew it's old and we have a possible fix. Unfortunately it will only be available in 2022 SR1 CU7. This issue is very old and I'm afraid the fix can't be ported easily to 2021

    emoji
  •  

    Not an issue really.  We are planning on upgrading to 2022 next week.  I was more concerned would be an issue that followed us or not.  So, we should be good with the CU7.

    emoji
  • I get this error message when I go to File > Options. I assume that it's something to do with my messing around with the settings and the project settings. As with disabling the Termbase Verification, do you think that there's an easy way to undo something or start over? We have the settings that we want to do in a file I can import and written down to recreate, but simply reimporting the settings for a project did not make the overall options available again.

    Hopefully, I've successfully managed to attach the stack trace in case it helps.

    <SDLErrorDetails time="8/21/2023 4:12:42 PM">
      <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.Language.FormatLanguageUsingStringResources(Language language, Boolean includeCountry)
       at Sdl.Core.Globalization.Language.GetDisplayName(LanguageFormat languageFormat, Boolean includeCountry)
       at Sdl.Core.Globalization.Language.get_DisplayName()
       at Sdl.TranslationStudio.ProjectManagement.Settings.LanguageDirectionsSettingsCategory.AddLanguageDirection(ILanguageDirection languageDirection)
       at Sdl.TranslationStudio.ProjectManagement.Settings.LanguageDirectionsSettingsCategory.OnInit(ISettingsPageCategorySite site)
       at Sdl.TranslationStudio.ProjectManagement.Settings.DefaultProjectTemplateLanguageDirectionsSettingsCategory.OnInit(ISettingsPageCategorySite site)
       at Sdl.Desktop.Platform.Settings.AbstractSettingsPageCategory.Init(ISettingsPageCategorySite site)
       at Sdl.Desktop.Platform.Implementation.Settings.AbstractSettingsHost.EnsureCategoryInitialized(ISettingsPageCategoryReference r)
       at Sdl.Desktop.Platform.Implementation.Settings.AbstractSettingsHost.ActivateSettingsPage(String[] path)
       at Sdl.Desktop.Platform.Implementation.Settings.AbstractSettingsHost.SetInitiallyActivePage()
       at Sdl.Desktop.Platform.Implementation.Settings.AbstractSettingsHost.get_SettingsHostUI()
       at Sdl.Desktop.Platform.Implementation.Settings.SettingsDialog.ShowDialog(IWin32Window owner)
       at Sdl.Desktop.Platform.Implementation.StudioWindow.ShowUserSettingsDialog()
       at Sdl.Desktop.Platform.Implementation.Actions.ViewOptionsAction.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.WinForms.IgCommandBarAction.Execute()
       at Sdl.Desktop.Platform.WinForms.IgCommandBarAction._lazyButtonTool_ToolClick(Object sender, ToolClickEventArgs e)
       at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick(ToolClickEventArgs e)
       at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolClick(ToolClickEventArgs e)
       at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)
       at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolClick()
       at Infragistics.Win.UltraWinToolbars.ToolMenuItem.OnClick()
       at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.DoClickProcessing(MouseEventArgs e)
       at Infragistics.Win.UltraWinToolbars.PopupMenuItemUIElement.OnMouseUp(MouseEventArgs e)
       at Infragistics.Win.TextUIElementBase.OnMouseUp(MouseEventArgs e)
       at Infragistics.Win.ControlUIElementBase.ProcessMouseUpHelper(Object sender, MouseEventArgs e)
       at Infragistics.Win.ControlUIElementBase.ProcessMouseUp(Object sender, MouseEventArgs e)
       at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
       at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseUp(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       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 Enterprise</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1033</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>COSMO\csteele</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>CSTEELE-5421</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>33280068 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    emoji