TS 2022 SR2: Using a simple regex in display filter (not advanced!) causes object reference... error

I'm trying to filter by ^[\d\W]*$ — this causes that very ominous error:

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

<SDLErrorDetails time="01.12.2023 07:53:19">
  <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.TranslationStudio.Common</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Sdl.TranslationStudio.Common.SearchFramework.InteractiveFind.NextMatch()
   at Sdl.TranslationStudio.Editor.FoldingFilters.Filters.RegexFilter.EvaluateRow(IRowInfo row)
   at Sdl.TranslationStudio.Editor.FoldingFilters.Filters.AbstractVisibleFileBoundariesFoldingFilter.SetRowVisibility(IRowInfo row)
   at Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingView.FoldingFilterHook.SetRowVisibility(IRowInfo row)
   at SideBySideEditor.SetRowsVisiblity()
   at Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingView.ApplyFoldingFilterImpl(IFoldingFilter filter)
   at Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingView.ApplyFoldingFilter(IFoldingFilter filter)
   at Sdl.TranslationStudio.Editor.FoldingFilters.FoldingFilterProvider.ApplyCurrentFilter()
   at Sdl.TranslationStudio.Editor.FoldingFilters.Actions.SourceRegexFilterAction.Execute()
   at Sdl.Desktop.Platform.Implementation.CommandBars.StaticAction.Execute()
   at Sdl.Desktop.Platform.Implementation.CommandBars.SimpleActionExecuter.Execute(ActionData actionData)
   at Sdl.Desktop.Platform.Implementation.ResourceLoggingInternalCommandExecuter`1.ExecuteWithResourceLogging(TCommandData commandData, String message)
   at Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteAction(IAction action, ActionOrigin origin, Boolean allowToggle)
   at Sdl.Platform.UI.IgCommandBarAction.Execute()
   at Sdl.TranslationStudio.Editor.TranslationEditor.Ribbons.Factories.ReviewRibbonFactory.Search(Object sender, EventArgs eventArgs)
   at Sdl.TranslationStudio.Editor.FoldingFilters.RegexRibbonFilterComboBox.ComboBoxOnSearch(Object sender, EventArgs e)
   at Sdl.Platform.UI.IgCommandBarSearchComboBox.OnSearch()
   at Sdl.Platform.UI.IgCommandBarSearchComboBox.ComboBoxOnToolKeyDown(Object sender, ToolKeyEventArgs e)
   at Infragistics.Win.UltraWinToolbars.ToolKeyEventHandler.Invoke(Object sender, ToolKeyEventArgs e)
   at Infragistics.Win.UltraWinToolbars.ToolBase.OnToolKeyDown(ToolKeyEventArgs e)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnToolKeyDown(ToolKeyEventArgs e)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.FireEvent(ToolbarEventIds id, EventArgs e)
   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.OnEditor_KeyDown(Object sender, KeyEventArgs e)
   at Infragistics.Win.EmbeddableEditorBase.RaiseKeyDownEvent(KeyEventArgs e)
   at Infragistics.Win.EmbeddableTextBox.OnKeyDown(KeyEventArgs e)
   at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
   at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
   at Infragistics.Win.EmbeddableTextBoxWithUIPermissions.ProcessKeyMessage(Message& msg)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
   at System.Windows.Forms.TextBox.WndProc(Message& m)
   at Infragistics.Win.EmbeddableTextBoxWithUIPermissions.WndProcInternal(Message& m)
   at Infragistics.Win.EmbeddableTextBoxWithUIPermissions.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>Trados Studio</ProductName>
    <ProductVersion>Studio17</ProductVersion>
    <EntryAssemblyFileVersion>17.2.8.18668</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 11 Pro</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1031</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>AzureAD\JerzyCzopik</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>SPITFIRE-V</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>66744792 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>



Generated Image Alt-Text
[edited by: Trados AI at 4:50 AM (GMT 0) on 5 Mar 2024]
emoji

_________________________________________________________

When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

  •  

    Not for me :-)

    Can you provide a sample file we can use to reproduce this?  Or even a little more context around how many files you might have open, type of files in the project, languages....etc. etc.

    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