CleanUp Task crashes Studio

Hi there,

I use Cleanup Task quite regularly, but now it causes Studio to crash. Is this due to the latest CU?

Daniel

<SDLErrorDetails time="14-May-20 10:49:23">
  <ErrorMessage>Expecting element 'ArrayOfSegmentLockItem' from namespace 'http://schemas.datacontract.org/2004/07/SDLCommunityCleanUpTasks.Models'.. Encountered 'Element'  with name 'ArrayOfSegmentLockItem', namespace 'http://schemas.datacontract.org/2004/07/Sdl.Community.CleanUpTasks.Models'. </ErrorMessage>
  <Exception>
    <Type>System.Runtime.Serialization.SerializationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>System.Runtime.Serialization</Source>
    <HResult>-2146233076</HResult>
    <StackTrace><![CDATA[   at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlReader reader)
   at Sdl.Core.Settings.Implementation.DataContractSerializableSetting`1.get_Value()
   at Sdl.Core.Settings.Setting`1.op_Implicit(Setting`1 setting)
   at SDLCommunityCleanUpTasks.CleanUpSourceSettings.get_SegmentLockList()
   at SDLCommunityCleanUpTasks.SegmentLockerPresenter.SetBindingList()
   at SDLCommunityCleanUpTasks.SegmentLockerPresenter.Initialize()
   at Sdl.Community.CleanUpTasks.SegmentLockerControl.InitializeUI()
   at Sdl.Community.CleanUpTasks.CleanUpSourceSettingsControl.OnLoad(EventArgs e)
   at System.Windows.Forms.UserControl.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.ControlCollection.Add(Control value)
   at Sdl.Desktop.Platform.WinForms.SettingsUIControl.ShowSettingsControl(Control control)
   at Sdl.Desktop.Platform.WinForms.SettingsUIControl.UpdateActiveSettingsPage()
   at Sdl.Desktop.Platform.Implementation.Settings.AbstractSettingsHost.ActivateSettingsPage(String[] path)
   at Sdl.TranslationStudio.Common.BatchProcessing.SettingsWizardPage.OnShow(Boolean first, Boolean back)
   at Sdl.Desktop.Platform.Wizard.AbstractWizard`1.Next()
   at Sdl.Desktop.Platform.Wizard.AbstractWizard`1._form_Next(Object sender, CancelEventArgs e)
   at Sdl.Desktop.Platform.WPF.ViewModel.WPFWizardFormViewModel`1.Execute_NextCommand()
   at Sdl.Desktop.Platform.MVVM.DelegateCommand.<>c__DisplayClass1_0.<.ctor>b__0(Object x)
   at Sdl.Desktop.Platform.MVVM.DelegateCommand`1.Execute(Object parameter)
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>SDL Trados Studio</ProductName>
    <ProductVersion>15.0.0.0</ProductVersion>
    <EntryAssemblyFileVersion>15.2.6.2831</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Enterprise</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>danielhug</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>ABCD</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16776172 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

Parents Reply Children
  • I am back at this because the functionality of this app is just what I need. I did some testing: Is it the file type (seemingly not), is it the fact that the files are in folders and sub-folders (also seemingly not), any special characters in the file or folder names? I can't pinpoint this, but CLeanup Task sometimes works, and sometimes it crashes Studio. Unfortunately, on the real projects it crashes and on the test projects it works...

    <SDLErrorDetails time="10-Sep-20 10:47:19">
      <ErrorMessage>Expecting element 'ArrayOfSegmentLockItem' from namespace 'http://schemas.datacontract.org/2004/07/SDLCommunityCleanUpTasks.Models'.. Encountered 'Element'  with name 'ArrayOfSegmentLockItem', namespace 'http://schemas.datacontract.org/2004/07/Sdl.Community.CleanUpTasks.Models'. </ErrorMessage>
      <Exception>
        <Type>System.Runtime.Serialization.SerializationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <HelpLink />
        <Source>System.Runtime.Serialization</Source>
        <HResult>-2146233076</HResult>
        <StackTrace><![CDATA[   at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
       at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
       at System.Runtime.Serialization.DataContractSerializer.ReadObject(XmlReader reader)
       at Sdl.Core.Settings.Implementation.DataContractSerializableSetting`1.get_Value()
       at Sdl.Core.Settings.Setting`1.op_Implicit(Setting`1 setting)
       at SDLCommunityCleanUpTasks.CleanUpSourceSettings.get_SegmentLockList()
       at SDLCommunityCleanUpTasks.SegmentLockerPresenter.SetBindingList()
       at SDLCommunityCleanUpTasks.SegmentLockerPresenter.Initialize()
       at Sdl.Community.CleanUpTasks.SegmentLockerControl.InitializeUI()
       at Sdl.Community.CleanUpTasks.CleanUpSourceSettingsControl.OnLoad(EventArgs e)
       at System.Windows.Forms.UserControl.OnCreateControl()
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.ControlCollection.Add(Control value)
       at Sdl.Desktop.Platform.WinForms.SettingsUIControl.ShowSettingsControl(Object control)
       at Sdl.Desktop.Platform.WinForms.SettingsUIControl.UpdateActiveSettingsPage()
       at Sdl.Desktop.Platform.Implementation.Settings.AbstractSettingsHost.ActivateSettingsPage(String[] path)
       at Sdl.TranslationStudio.Common.BatchProcessing.SettingsWizardPage.OnShow(Boolean first, Boolean back)
       at Sdl.Desktop.Platform.Wizard.AbstractWizard`1.Next()
       at Sdl.Desktop.Platform.Wizard.AbstractWizard`1._form_Next(Object sender, CancelEventArgs e)
       at Sdl.Desktop.Platform.WPF.ViewModel.WPFWizardFormViewModel`1.Execute_NextCommand()
       at Sdl.Desktop.Platform.MVVM.DelegateCommand.<>c__DisplayClass1_0.<.ctor>b__0(Object x)
       at Sdl.Desktop.Platform.MVVM.DelegateCommand`1.Execute(Object parameter)
       at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
      </Exception>
      <Environment>
        <ProductName>SDL Trados Studio</ProductName>
        <ProductVersion>Studio16</ProductVersion>
        <EntryAssemblyFileVersion>16.0.1.2917</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Enterprise</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1033</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>danielhug</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>ABCD</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>16776172 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    Daniel

    EDIT: When does the error occur? After selecting the batch option, I get to the first screen, click "Next", then get the dialogue box about wanting to re-open the processed file(s). After this, Studio crashes and I get the above error.

    Files in question are icmls in subfolders (Project-folder-subfolder-icmls).