Object reference not set to an instance of an object

This is an error that is happening now with me on a basic SRT (txt) file.

I have restarted my computer.   Other suggestions see is to do a Reset.   Hate doing Reset.  Have to go back and redo all of your settings.

This is a brand new install (have reinstalled software a couple of time already).  Using Trados Studio 2022 SR1 - 17.1.8.17828.

What causing this error.

Have attached the error log.

<SDLErrorDetails time="9/27/2023 3:17:34 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>StudioSubtitling</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at StudioSubtitling.ViewModel.SubtitlingViewModel.GetMediaReference(DocumentInfo documentInfo)
   at StudioSubtitling.ViewModel.SubtitlingViewModel.SetActiveFile(ProjectFile projectFile)
   at StudioSubtitling.ViewModel.SubtitlingViewModel.SetActiveDocument(IStudioDocument document)
   at StudioSubtitling.ViewModel.SubtitlingViewModel.EditorController_ActiveDocumentChanged(Object sender, DocumentEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at Sdl.Desktop.Platform.Extensions.EventsExtensions.Raise[T](EventHandler`1 e, Object sender, T eventArgs)
   at Sdl.TranslationStudioAutomation.IntegrationApi.EditorController.OnActiveDocumentChanged(IDocument document)
   at Sdl.TranslationStudio.Api.Editor.DocumentEventHandler.Invoke(IDocument document)
   at Sdl.TranslationStudio.Editor.EditorService.set_ActiveDocument(IDocument value)
   at Sdl.TranslationStudio.Editor.EditorView.OnActiveViewPartChanged(IViewPartReference viewPartReference)
   at Sdl.Desktop.Platform.AbstractViewWithParts.Control_ActiveViewPartChanged(IViewWithParts view, IViewPartReference viewPartReference)
   at Sdl.Platform.UI.DockingViewContentControl.OnActiveViewPartChanged(IViewPartReference viewPartReference)
   at Sdl.Platform.UI.DockingViewContentControl.InternalActivateViewPart(IViewPartReference viewPartToActivate)
   at Sdl.Platform.UI.DockingViewContentControl._tabControl_SelectedTabChanged(Object sender, SelectedTabChangedEventArgs e)
   at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnSelectedTabChanged(SelectedTabChangedEventArgs e)
   at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.RaiseEvent(UltraTabControlEventId id, EventArgs e)
   at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.OnManagerSelectedTabItemChanged(Object sender, SelectedTabItemChangedEventArgs e)
   at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value)
   at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.SetSelectedTab(UltraTab tab)
   at Infragistics.Win.UltraWinTabControl.UltraTabControlBase.set_SelectedTab(UltraTab value)
   at Sdl.Platform.UI.DockingViewContentControl.AddViewPartTab(IViewPartReference viewPartReference)
   at Sdl.Platform.UI.DockingViewContentControl.AddViewPart(IViewPartReference viewPartReference)
   at Sdl.Platform.UI.DockingViewContentControl.NotifyViewPartAdded(IViewPartReference viewPartReference)
   at Sdl.Desktop.Platform.AbstractViewWithParts.AddViewPart(IViewPartReference viewPartReference)
   at Sdl.Desktop.Platform.AbstractDockingView.AddViewPart(IViewPartReference viewPartReference)
   at Sdl.TranslationStudio.Editor.EditorView.AddDocumentViewPart(IViewPartReference documentViewPartReference)
   at Sdl.TranslationStudio.Editor.Shared.InternalEditorContext.AddDocumentViewPart(IDocumentViewPart documentViewPart)
   at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.AfterLoad(IJob job)]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio17</ProductVersion>
    <EntryAssemblyFileVersion>17.1.8.17828</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Enterprise LTSC</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>LIONSCLUBS\ddermit</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>LAPTOP-5030</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16357556 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

emoji
Parents Reply
  •  

    I would have done this as a single translation. 

    If you do this then at first you will get that error.  The reason is that the project is not really there yet until you save it.  After saving it, you then need to close it and open it again, add your video and then it will work.

    If you use a proper Studio project and not single file you won't get any errors at all.

    We are unlikely to fix the single file workflow because it's a problem the Studio team would need to address that they may not wish to because the problem it causes in this subtitling workflow is actually an advantage for many users working with the single file translation flow.  Without their "fix" if would be a ridiculously difficult problem to fix.  So for now, the solution is to use a proper Studio project.

    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
Children