Error when copying and pasting text into the target segment

 I receive the following error message, when I try to copy and paste text into the target segment, and it is interesting, because I only get it for one particular client's Trados package.

The main error message is in English: An attempt was made to read or write protected memory. This often indicates that another area of memory is damaged.

<SDLErrorDetails time="2024. 04. 10. 18:05:14">
  <ErrorMessage>Védett memória olvasására vagy írására történt kísérlet. Ez gyakran arra utal, hogy a memória más területe sérült.</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[   a következő helyen: Tree.TreeField.pco_GetRoot(TreeField* , FieldPtr<Tree::ContainerField>* )
   a következő helyen: FrameworkDocumentControl.pco_FindRow(FrameworkDocumentControl* , FieldPtr<LayoutRow>* , FieldPtr<Tree::TreeField>* pco_field, Boolean b_searchHiddenRows)
   a következő helyen: FrameworkDocumentControl.vpco_GetLayoutSearchHint(FrameworkDocumentControl* , FieldPtr<TMFC::CT_LayoutComposite>* , TextPosition* position)
   a következő helyen: Tree.CaretIterator.v_SetFromTextPosition(CaretIterator* , TextPosition* , FieldPtr<TMFC::CT_LayoutComposite>* , Boolean )
   a következő helyen: TextIterator.Move(Move direction)
   a következő helyen: SmartPasteAdjustSpaces.GetNextChar(ITextIterator iter, IAbstractNode endNode)
   a következő helyen: SmartPasteAdjustSpaces.GetCharAfterSelection(Boolean& haveSpace)
   a következő helyen: SmartPasteAdjustSpaces.RetrieveSelectionMargins()
   a következő helyen: SmartPasteAdjustSpaces.RetrieveMargins(IDocumentFragment fragment)
   a következő helyen: SmartPasteAdjustSpaces.ReplaceSelection(IDocumentFragment fragment)
   a következő helyen: AbstractFrameworkEditControl.PasteClipboardToDocument()
   a következő helyen: Sdl.TranslationStudio.Editor.TranslationEditor.SideBySideDocumentEditingView.Paste()
   a következő helyen: Sdl.TranslationStudio.Editor.TranslationEditor.ActionHandlers.PasteActionHandler.Execute()
   a következő helyen: Sdl.Desktop.Platform.CommandBars.RetargetableAction.Execute()
   a következő helyen: Sdl.Desktop.Platform.Implementation.CommandBars.SimpleActionExecuter.Execute(ActionData actionData)
   a következő helyen: Sdl.Desktop.Platform.Implementation.ResourceLoggingInternalCommandExecuter`1.ExecuteWithResourceLogging(TCommandData commandData, String message)
   a következő helyen: Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteAction(IAction action, ActionOrigin origin, Boolean allowToggle)
   a következő helyen: Sdl.Desktop.Platform.Implementation.CommandBars.ActionService.ExecuteActionForShortcut(Keys shortcut)
   a következő helyen: Sdl.Desktop.Platform.WinForms.StudioWindowForm.OnPreviewKeyDown(Keys keys)
   a következő helyen: Sdl.Desktop.Platform.WinForms.GlobalKeysMessageFilter.PreFilterMessage(Message& m)
   a következő helyen: System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)
   a következő helyen: System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
   a következő helyen: System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
   a következő helyen: System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
   a következő helyen: System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   a következő helyen: System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   a következő helyen: Sdl.TranslationStudio.Application.Launcher.RunApplication()]]></StackTrace>
  </Exception>
  <Environment>
    <ProductName>Trados Studio</ProductName>
    <ProductVersion>Studio16</ProductVersion>
    <EntryAssemblyFileVersion>16.2.12.9338</EntryAssemblyFileVersion>
    <OperatingSystem>Microsoft Windows 10 Home</OperatingSystem>
    <ServicePack>NULL</ServicePack>
    <OperatingSystemLanguage>1038</OperatingSystemLanguage>
    <CodePage>1250</CodePage>
    <LoggedOnUser>DESKTOP-V62C5EA\noemi</LoggedOnUser>
    <DotNetFrameWork>4.0.30319.42000</DotNetFrameWork>
    <ComputerName>DESKTOP-V62C5EA</ComputerName>
    <ConnectedToNetwork>True</ConnectedToNetwork>
    <PhysicalMemory>16493352 MB</PhysicalMemory>
  </Environment>
</SDLErrorDetails>



Moved the error message to a code block. If you don't it gets picked up by the automated spam filter.
[edited by: Paul at 7:39 AM (GMT 1) on 29 Apr 2024]
emoji
Parents
  •  

    Since it's clear that the exception was triggered during a clipboard paste operation within Trados Studio I think it's worth looking at what you were copy/pasting. The functions involved suggest that the program was handling layout and text position calculations at the time of the error so it could be due to the handling of specific document formats or the complexity of the content being pasted, which might not be properly managed by the application's memory handling routines.  It would be better not to error but even if it doesn't it may be that what you were attempting simply isn't possible anyway.

    Can you provide the steps you were applying and what you were trying to?  For example:

    • you copied formatted text, maybe with images even, from some dtp application?
    • where were you copying from?
    • were you copying across segments to try and populate the translation column or part of it?

    So things like that... just to provide a bit more context and maybe allow us to reproduce.

    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
  • Dear ,

    It happens both when  I try to copy something from the source segment into the target segment and when I try to copy only a word or two from my browser into the target segment (without any major formatting). I do not try to copy images or special characters, only alphanumerical text. And it never happens with other clients' packages, only one. This client uses server TMs and server glossaries.

    emoji
  •  

    Given you are using 2021, which will soon be out of support, I think it's worth testing this with am more recent version of Studio.  If you are allowed to share the package with me I'd ben happy to test it?  Alternatively you could install the trial version for 2022 yourself and see if the problem remains?

    Also, do you know what version of Trados Studio was used to create the original package?  Doesn't sound as though it should be relevant, but worth noting in case it is.

    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
Reply Children