What is the linguaSegment when displaying concordance results?

Hi,
I'm using the translation memory API, and trying to return concordance results in a SearchResults object. But when Studio tries to display the result, I get a null reference exception at Sdl.LanguagePlatform.TranslationMemoryTools.MarkupDataTokenMapping.GetLinguaItems(Segment linguaSegment). My question: what is the linguaSegment? Something is probably missing from my SearchResults, but what is it? (I can include the whole stack trace if needed.)

Thanks!

Parents
  • The stack would be really helpful

    Romulus Crisan | Translation Productivity Development Manager | SDL | (twitter) @cromica_82 | (blog) http://www.romuluscrisan.com/

  • Thanks, see paste below

    <SDLErrorDetails time="06.07.2015 12:29:37">
    <ErrorMessage>Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</ErrorMessage>
    <Exception>
    <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Sdl.LanguagePlatform.TranslationMemoryTools</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[ bei Sdl.LanguagePlatform.TranslationMemoryTools.MarkupDataTokenMapping.GetLinguaItems(Segment linguaSegment)
    bei Sdl.LanguagePlatform.TranslationMemoryTools.MarkupDataTokenMapping.CalculateLinguaItems(Segment linguaSegment)
    bei Sdl.LanguagePlatform.TranslationMemoryTools.MarkupDataTokenMapping..ctor(Segment linguaSegment, ISegment markupSegment, Nullable`1 acceptTrackChanges)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.ConcordanceSearchViewPartControl.ConcordanceSearchViewPartControl_MarkupSegmentContainerNode(SearchResult searchResult, Segment linguaSegment, ISegmentContainerNode segmentcontainerNode, IAbstractFrameworkEditControl segmentControl, Boolean source)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl._searchResultsControl_MarkupSegmentContainerNode(Object sender, MarkupSegmentContainerNodeEventArgs e)
    bei Sdl.TranslationStudio.Common.TranslationMemory.SearchResultTranslationMemoryControl.InvokeMarkupSegmentContainerNode(MarkupSegmentContainerNodeEventArgs e)
    bei Sdl.TranslationStudio.Common.TranslationMemory.SearchResultTranslationMemoryControl.DoMarkupSegmentContainerNode(SearchResultTranslationUnitItem tu, Segment linguaSegment, ISegmentContainerNode segmentContainerNode, IFrameworkEditControl segmentControl, Boolean isSource)
    bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.ShowTranslationUnits(IList`1 tus)
    bei Sdl.TranslationStudio.Common.TranslationMemory.SearchResultTranslationMemoryControl.ShowTranslationUnits(IList`1 tus)
    bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.set_TranslationUnits(IList`1 value)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl.SetSearchResults(SearchResults searchResults)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl.SetSearchResults(SearchResults searchResults, IEnumerable`1 cascadeMessages)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.ConcordanceSearchViewPartControl.UpdateContent()
    bei Sdl.TranslationStudio.Editor.TranslationMemory.ConcordanceSearchViewPartControl.ConcordanceSearchJob_StatusChanged(IJob job)
    bei Sdl.Desktop.Platform.Services.JobEventHandler.Invoke(IJob job)
    bei Sdl.Desktop.Platform.Implementation.Services.Job.OnStatusChanged()
    bei Sdl.Desktop.Platform.Implementation.Services.Job.SetStatus(JobStatus status)
    bei Sdl.Desktop.Platform.Implementation.Services.Job._worker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
    bei System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
    bei System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)]]></StackTrace>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>11.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>11.2.4409.10</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 7 Professional </OperatingSystem>
    <ServicePack>Service Pack 1</ServicePack>
    <OperatingSystemLanguage>1031</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>Florian-THINK\Florian</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.34209</DotNetFrameWork>
    <ComputerName>FLORIAN-THINK</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16466732 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>
Reply
  • Thanks, see paste below

    <SDLErrorDetails time="06.07.2015 12:29:37">
    <ErrorMessage>Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.</ErrorMessage>
    <Exception>
    <Type>System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Sdl.LanguagePlatform.TranslationMemoryTools</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[ bei Sdl.LanguagePlatform.TranslationMemoryTools.MarkupDataTokenMapping.GetLinguaItems(Segment linguaSegment)
    bei Sdl.LanguagePlatform.TranslationMemoryTools.MarkupDataTokenMapping.CalculateLinguaItems(Segment linguaSegment)
    bei Sdl.LanguagePlatform.TranslationMemoryTools.MarkupDataTokenMapping..ctor(Segment linguaSegment, ISegment markupSegment, Nullable`1 acceptTrackChanges)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.ConcordanceSearchViewPartControl.ConcordanceSearchViewPartControl_MarkupSegmentContainerNode(SearchResult searchResult, Segment linguaSegment, ISegmentContainerNode segmentcontainerNode, IAbstractFrameworkEditControl segmentControl, Boolean source)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl._searchResultsControl_MarkupSegmentContainerNode(Object sender, MarkupSegmentContainerNodeEventArgs e)
    bei Sdl.TranslationStudio.Common.TranslationMemory.SearchResultTranslationMemoryControl.InvokeMarkupSegmentContainerNode(MarkupSegmentContainerNodeEventArgs e)
    bei Sdl.TranslationStudio.Common.TranslationMemory.SearchResultTranslationMemoryControl.DoMarkupSegmentContainerNode(SearchResultTranslationUnitItem tu, Segment linguaSegment, ISegmentContainerNode segmentContainerNode, IFrameworkEditControl segmentControl, Boolean isSource)
    bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.ShowTranslationUnits(IList`1 tus)
    bei Sdl.TranslationStudio.Common.TranslationMemory.SearchResultTranslationMemoryControl.ShowTranslationUnits(IList`1 tus)
    bei Sdl.TranslationStudio.Common.TranslationMemory.AbstractTranslationMemoryControl`1.set_TranslationUnits(IList`1 value)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl.SetSearchResults(SearchResults searchResults)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.CompoundTranslationMemorySearchResultsControl.SetSearchResults(SearchResults searchResults, IEnumerable`1 cascadeMessages)
    bei Sdl.TranslationStudio.Editor.TranslationMemory.ConcordanceSearchViewPartControl.UpdateContent()
    bei Sdl.TranslationStudio.Editor.TranslationMemory.ConcordanceSearchViewPartControl.ConcordanceSearchJob_StatusChanged(IJob job)
    bei Sdl.Desktop.Platform.Services.JobEventHandler.Invoke(IJob job)
    bei Sdl.Desktop.Platform.Implementation.Services.Job.OnStatusChanged()
    bei Sdl.Desktop.Platform.Implementation.Services.Job.SetStatus(JobStatus status)
    bei Sdl.Desktop.Platform.Implementation.Services.Job._worker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
    bei System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
    bei System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)]]></StackTrace>
    </Exception>
    <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>11.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>11.2.4409.10</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 7 Professional </OperatingSystem>
    <ServicePack>Service Pack 1</ServicePack>
    <OperatingSystemLanguage>1031</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>Florian-THINK\Florian</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.34209</DotNetFrameWork>
    <ComputerName>FLORIAN-THINK</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16466732 MB</PhysicalMemory>
    </Environment>
    </SDLErrorDetails>
Children