Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

I am reviewing an icml file and suddenly get this error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

After that, no more work on the file is possible, I can only force Studio to shut down using the Task Manager and no amount of restarting or rebooting has any effect. (I do not have AVG Antivirus on my computer.)

Any idea what the problem is, what the solution?

Daniel

<SDLErrorDetails time="10-Oct-19 15:00:46">
  <ErrorMessage>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</ErrorMessage>
  <Exception>
    <Type>System.AccessViolationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
    <HelpLink />
    <Source>Sdl.DesktopEditor.Control</Source>
    <HResult>-2147467261</HResult>
    <StackTrace><![CDATA[   at Tree.InputManager.vv_ProcessDelete(InputManager* , Int32 , Int32 )
   at FrameworkInputManager.vv_ProcessDelete(FrameworkInputManager* , Int32 b_shift, Int32 b_control)
   at Tree.DocumentControl.vl_WindowProc(DocumentControl* , HWND__* , UInt32 , UInt32 , Int32 )
   at FrameworkDocumentControl.vl_WindowProc(FrameworkDocumentControl* , HWND__* h_wnd, UInt32 n_msg, UInt32 w_p, Int32 l_p)
   at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
   at System.Windows.Forms.Control.DefWndProc(Message& m)
   at System.Windows.Forms.Control.WmKeyChar(Message& m)
   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.0.1041</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Enterprise</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1033</OperatingSystemLanguage>
    <CodePage>1252</CodePage>
    <LoggedOnUser>COMMUNITY\danielhug</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>V2104</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>12581868 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>

  • Hello ,

    The error here appears to come from Windows (at least that is what my research comes up with) DocumentControl* , HWND__* , UInt32 , UInt32 , Int32  and appears to be triggered by a Windows update (but this is far from conclusive).

    We have received only three logged cases under this error this year- with two of them we never received any feedback from the user- the third was apparently resolved be reinstalling Windows.

    I would suggest then you ensure both Studio and MultiTerm are updated and added to whichever AV service you subscribe to.

    Then also run through the Wiki trouble shooting guides 

    https://community.sdl.com/product-groups/translationproductivity/w/customer-experience/3392/how-to-part-1-trouble-shoot-unexplained-errors-and-unwanted-behaviour-in-studio-multiterm

    Of course if this doesn't resolve the problem - please log a support ticket and we can look at this for you and advise you the best plan of action.

    Lydia Simplicio | 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

  • This error occured when I tried to delete a tag in the target segment. THe segment was neither split nor merged, but I got a little balloon saying something like "Can't delete a segment marker" or so (I should have taken a screenshot).

    I found a workaround by leaving the tag and moving all text to fit the markers.

    Daniel

  • BTW Windows, Studio and MultiTerm are up to date, so is our AV. Maybe it won't happen again...

    DAniel

  • Hello Steven Whale ,

    I have this problem that remains unsolved after at least 3 live sessions with SDL Support, so I would like to have some more in depth help on this.

    <SDLErrorDetails time="05/02/2020 09:20:02">
      <ErrorMessage>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</ErrorMessage>
      <Exception>
        <Type>System.AccessViolationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type>
        <HelpLink />
        <Source>Sdl.DesktopEditor.Control</Source>
        <HResult>-2147467261</HResult>
        <StackTrace><![CDATA[   at CT_CriticalSection.v_Enter(CT_CriticalSection* )
       at LayoutThread.Resume(LayoutThread* )
       at FilterFramework.Ptr<LayoutLock>.{dtor}(Ptr<LayoutLock>* )
       at FrameworkDocumentControl.{dtor}(FrameworkDocumentControl* )
       at FrameworkDocumentControl.__vecDelDtor(FrameworkDocumentControl* , UInt32 A_0)
       at AbstractFrameworkEditControl.~AbstractFrameworkEditControl()
       at AbstractFrameworkEditControl.Dispose(Boolean A_0)
       at FrameworkEditControl.Dispose(Boolean A_0)
       at System.ComponentModel.Component.Dispose()
       at SideBySideEditor.DestroyEditControls()
       at SideBySideEditor.~SideBySideEditor()
       at SideBySideEditor.Dispose(Boolean A_0)
       at Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingViewControl.Dispose(Boolean disposing)
       at System.ComponentModel.Component.Dispose()
       at System.Windows.Forms.Control.Dispose(Boolean disposing)
       at System.ComponentModel.Component.Dispose()
       at System.Windows.Forms.Control.Dispose(Boolean disposing)
       at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocumentViewPartControl.Dispose(Boolean disposing)
       at System.ComponentModel.Component.Dispose()
       at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocumentViewPart.Dispose()
       at Sdl.TranslationStudio.Editor.EditorView.RemoveDocumentViewPart(IViewPartReference documentViewPartReference)
       at Sdl.TranslationStudio.Editor.Shared.InternalEditorContext.CloseDocumentViewPart()
       at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.CloseImpl()
       at Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.Close()
       at Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.Close()
       at Sdl.TranslationStudio.Editor.EditorView.OnRemovingViewPart(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.AbstractViewWithParts.Control_RemovingViewPart(IViewWithParts view, IViewPartReference viewPartReference, Boolean& cancel)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.OnRemovingViewPart(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.RemoveViewPartTab(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.RemoveViewPart(IViewPartReference viewPartReference)
       at Sdl.Desktop.Platform.WinForms.DockingViewContentControl.CloseTabButton.CloseTabButton_ElementClick(Object sender, UIElementEventArgs e)
       at Infragistics.Win.ButtonUIElementBase.FireClickEvent()
       at Infragistics.Win.ButtonWithTextUIElementBase.OnClick()
       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.UltraControlBase.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.5.2145</EntryAssemblyFileVersion>
        <OperatingSystem>Microsoft Windows 10 Pro</OperatingSystem>
        <ServicePack>NULL</ServicePack>
        <OperatingSystemLanguage>1040</OperatingSystemLanguage>
        <CodePage>1252</CodePage>
        <LoggedOnUser>DESKTOP-UB67V0D\Utente</LoggedOnUser>
        <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
        <ComputerName>DESKTOP-UB67V0D</ComputerName>
        <ConnectedToNetwork>True</ConnectedToNetwork>
        <PhysicalMemory>16716944 MB</PhysicalMemory>
      </Environment>
    </SDLErrorDetails>

    The following attempts did not solve the problem:

    - antivirus settings set following the instructions of SDL expert;

    - updating Windows and MS Office;

    - reinstalling Trados (several times);

    - exporting all my TMs in tmx and reimporting them in new TMs.

    The issue occurs at the moment of closing a document in editor. It happens with different projects and different TM used so I think it is unlikely to be caused by corrupted TMs.

    After the error occurs it is not possible to close Studio (unless forcing the closure by Task Manager) and it is not possible to re-open the same or another document in Editor.

    It occurs usually after working in editor for a longer period of time (2-3 hours), but sometimes after only 10 minutes as well.

    I noticed it helps sometimes (not always) to close all other applications first in order to reduce the memory usage (that I monitor in Task Manager). However, my PC has 16 GB and SSD, so it shouldn't be a problem.

    Sometimes (when the memory usage is particularly high, I suppose), Trados simply crashes without any error message.

    I can somehow manage this issue with relatively small files that I was translating recently, but I think it would become unbearable with bigger ones.

  • Hello ,

    I have looked at the support logs and see our team have tried to help but havent been able to get to the core of the problem yet.

    Noting the access violation exception in the error stack - im not sure whether it's been advised and/or you have already increased the virtual memory size in Windows?

    Click on Windows icon and then start typing performance 

    Instructions on increasing virtual memory in Windows 10, advising to adjust appearance and performance of Windows, go to Advanced tab, and change Virtual memory.

    You will then see the allocated Memory.

    Try increasing this to the maximal. Then rebooting your machine and then try again.

    If this still fails- a new installation of Windows maybe required.

    Lydia Simplicio | 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


    Generated Image Alt-Text
    [edited by: Trados AI at 8:05 PM (GMT 0) on 28 Feb 2024]