"System.OutOfMemoryException"

Hi all,

 

Since several weeks, Studio 2017 Pro crashes out of the blue...

It can happen multiple times a day. I finish reviewing a project and when I want to save the files, an error message appears : Une exception de type 'System.OutOfMemoryException' a été levée "System.OutOfMemoryException". I cannot save the files and I cannot close Studio properly. I have to pass by the task manager to close it. I can restart it but few minutes or few hours later, the same problem appears. Here are the two types of error message I receive :

1.

<?xml version="1.0"?>

<SDLErrorDetails time="31/08/2018 09:40:22"><ErrorMessage>Une exception de type 'System.OutOfMemoryException' a été levée.</ErrorMessage><Exception><Type>System.OutOfMemoryException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type><HelpLink/><Source>mscorlib</Source><HResult>-2147024882</HResult><StackTrace><![CDATA[

   à System.IO.StreamWriter.Init(Stream streamArg, Encoding encodingArg, Int32 bufferSize, Boolean shouldLeaveOpen)

   à System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)

   à System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

   à Sdl.FileTypeSupport.Bilingual.SdlXliff.XliffFileWriter.Complete()

   à Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.Complete()

   à Sdl.FileTypeSupport.Framework.Core.Utilities.BilingualApi.BilingualContentHandlerAdapter.Complete()

   à Sdl.FileTypeSupport.Framework.Integration.AbstractBilingualProcessorContainer.Complete()

   à Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.ParseNext()

   à Sdl.FileTypeSupport.Framework.Integration.MultiFileConverter.Parse()

   à Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.SaveBilingualImpl(String[] bilingualFilePaths, Boolean copy, IJobExecutionContext context, Boolean isAutoSaved)

   à Sdl.TranslationStudio.Editor.TranslationEditor.TranslatableDocument.Save(IJobExecutionContext context)

   à Sdl.TranslationStudio.Api.Editor.AbstractInternalDocument.SaveJobRequest.Execute(IJobExecutionContext context)

   à Sdl.Desktop.Platform.Implementation.Services.Job.<_worker_DoWork>b__3()

   à Sdl.Desktop.Platform.Implementation.Services.Log.Resources(Object message, Action action)

   à Sdl.Desktop.Platform.Implementation.Services.Job._worker_DoWork(Object sender, DoWorkEventArgs e)

   à System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)

   à System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

]]></StackTrace></Exception><Environment><ProductName>SDL Trados Studio</ProductName><ProductVersion>14.0.0.0</ProductVersion><EntryAssemblyFileVersion>14.0.5889.5</EntryAssemblyFileVersion><OperatingSystem>Microsoft Windows 10 Famille</OperatingSystem><ServicePack>NULL</ServicePack><OperatingSystemLanguage>1036</OperatingSystemLanguage><CodePage>1252</CodePage><LoggedOnUser>DESKTOP-5U3FN53\Rachel</LoggedOnUser><DotNetFrameWork>4.0.30319.42000</DotNetFrameWork><ComputerName>DESKTOP-5U3FN53</ComputerName><ConnectedToNetwork>True</ConnectedToNetwork><PhysicalMemory>8316568 MB</PhysicalMemo

 

2.

<?xml version="1.0"?>

<SDLErrorDetails time="29/08/2018 15:04:55"><ErrorMessage>Échec du chargement du projet depuis "C:\Users\Rachel\Documents\SDL_GESTION DE PROJET\ACCOR\Project template\LO 180813 3\LO 180813 3.sdlproj" : Une exception de type 'System.OutOfMemoryException' a été levée.</ErrorMessage><Exception><Type>Sdl.ProjectApi.ProjectApiException, Sdl.ProjectApi, Version=14.0.0.0, Culture=neutral, PublicKeyToken=c28cdb26c445c888</Type><HelpLink/><Source>Sdl.ProjectApi.Implementation</Source><HResult>-2146233088</HResult><StackTrace><![CDATA[

   à Sdl.ProjectApi.Implementation.Project.Load(String projectFilePath, Boolean createProjectListItem)

   à Sdl.ProjectApi.Implementation.Project.Load()

   à Sdl.ProjectApi.Implementation.Project.EnsureLoaded()

   à Sdl.ProjectApi.Implementation.Project.GetTranslatableFiles()

   à Sdl.TranslationStudio.Common.LicenseUtilsStarter.VerifyAndGetSingleTranslatableFile(IProject project)

   à Sdl.TranslationStudio.Common.LicenseUtilsStarter.IsValidInPlaceProject(IProject project, String& validationMessage, Boolean showPrompts)

   à Sdl.TranslationStudio.Common.LicenseUtilsStarter.IsProjectAllowed(IProject project, String& validationMessage, Boolean showPrompts)

   à Sdl.TranslationStudio.ProjectManagement.ProjectManagementService.RefreshProjects(Boolean raiseEvent)

   à Sdl.TranslationStudio.ProjectManagement.ProjectManagementService.RefreshProjects()

   à Sdl.TranslationStudio.ProjectManagement.ProjectsView.ProjectsListViewPart.Refresh()

   à Sdl.Desktop.Platform.AbstractViewWithParts.Refresh()

   à Sdl.Desktop.Platform.AbstractView.Application_Idle(Object sender, EventArgs e)

   à System.EventHandler.Invoke(Object sender, EventArgs e)

   à System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)

   à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)

   à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

   à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

   à Sdl.Desktop.Platform.Implementation.Studio.Run()

   à Sdl.TranslationStudio.Application.Launcher.RunApplication()

]]></StackTrace><InnerException><Type>System.OutOfMemoryException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</Type><HelpLink/><Source>Sdl.ProjectApi.Implementation.XmlSerialization</Source><HResult>-2147024882</HResult><StackTrace><![CDATA[

   à Sdl.ProjectApi.Implementation.XmlSerialization.ProjectSerialization.XmlSerializationReaderProject.Read5_SettingsBundle(Boolean isNullable, Boolean checkType)

   à Sdl.ProjectApi.Implementation.XmlSerialization.ProjectSerialization.XmlSerializationReaderProject.Read73_Project(Boolean isNullable, Boolean checkType)

   à Sdl.ProjectApi.Implementation.XmlSerialization.ProjectSerialization.XmlSerializationReaderProject.Read74_Project()

   à Sdl.ProjectApi.Implementation.XmlSerialization.ProjectSerialization.ProjectSerializer.Deserialize(XmlSerializationReader reader)

   à System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)

   à System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)

   à Sdl.ProjectApi.Implementation.Xml.Project.Deserialize(String path)

   à Sdl.ProjectApi.Implementation.Project.Deserialize(String projectFilePath)

   à Sdl.ProjectApi.Implementation.Project.Load(String projectFilePath, Boolean createProjectListItem)

]]></StackTrace></InnerException></Exception><Environment><ProductName>SDL Trados Studio</ProductName><ProductVersion>14.0.0.0</ProductVersion><EntryAssemblyFileVersion>14.0.5889.5</EntryAssemblyFileVersion><OperatingSystem>Microsoft Windows 10 Famille</OperatingSystem><ServicePack>NULL</ServicePack><OperatingSystemLanguage>1036</OperatingSystemLanguage><CodePage>1252</CodePage><LoggedOnUser>DESKTOP-5U3FN53\Rachel</LoggedOnUser><DotNetFrameWork>4.0.30319.42000</DotNetFrameWork><ComputerName>DESKTOP-5U3FN53</ComputerName><ConnectedToNetwork>True</ConnectedToNetwork><PhysicalMemory>8316568 MB</PhysicalMemory></Environment></SDLErrorDetails>

 

 

Can somebody help me ?

 

Thank you very much in advance !

Rachel

<?xml
Parents
  • Hello  ,

    As a little tip for the future- you can also post the error stack as follows-

    Error dialog box with 'System out of Memory' message and an 'OK' button. Below is a Trados Studio interface highlighting 'Click here' and 'Advanced Editing Options'.

     

     

     

    To help you further I think we need to understand more about how you are working.

    'Syteme out of Memory' normally relates to a problem with your RAM- so my first thoughts would be to ask whether you are using a very large TM and whether this is local or accessed in the cloud. Also knowing the file type and size is crucial as a very large files could also be the cause.

    Also please let me know what apps you have running in Studio

    Have you tried creating your own local (test) project to see if the behavior repeats itself? You can see these listed in the SDL Plugin Management tool. in Studio.

    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 2:11 PM (GMT 0) on 28 Feb 2024]
  • Hi Steven,

    Thank you very much for your answer and your help.

    As for the information, I work on a PC with 8 Go of RAM and it rises up to 6,5/7 whenever I launch a project on Studio, according to task manager. I do not know if it is normal though, but the workstation is 2 years old only.

    I work with a large TM on GroupShare. Projects are small size, around 700 Ko - 800 Ko on average, not often larger than that. I work with little sdlxiff files of about 30 Ko, or sometimes bigger, it depends.

    I did not add any apps in Studio. I did not download any app if it is what you mean. My list of plugin is empty.

    Yes, even when I create a project local without GroupShare TM, Studio crashes out of the blue.

    Or when I finish a project and try to change the phase to finalization on GroupShare, the Studio windows just closes itself without any notice, and I have to relaunch it.

    Sometimes I start Studio again and everything works fine for one or two hours, then it crashes again.

    Sometimes, when I start Sudio again after a crash, I've got an error message like the second one I've posted on Friday "Échec du chargement du projet depuis" (roughly failed to load project from). Which is odd seeing the project is at the good location and still there on my PC. Moreover, I don't understand why Studio wants to load finalized projects completely out of the blue...

    I hope this will be helpful,

    Kind regards,

    Rachel
  • Hello

    Indeed this is strange behavior...

    Unknown said:
    why Studio wants to load finalized projects completely out of the blue..

    and 

    Unknown said:
    Yes, even when I create a project local without GroupShare TM, Studio crashes out of the blue.

    I am wondering now whether Studio is remembering incorrectly one of the old project templates or something similar.

    First I would remove all the completed projects from the Projects list in Studio and maybe even create another sub-folder on your machine to store these in.

    Now run a full Windows update and ensure all are not only downloaded but also installed.

    Update both your Studio and Multiterm version and do not forget to add these to the 'white list' of your antivirus provider.

    Now see if the problems are solved or persist.

    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

  • Hello Steven,

    Sorry for the late reply but I did a one day trial to see if everything was working good again and it does !

    I applied all your suggestions and I can now work in Studio without break or crash. It started working better as soon as I emptied the completed project list on Studio (and this vas very large), so I am guessing the problem came from here, because Windows, Studio and Multierm seemed to be up-to-date.

    Thank you very much for your help !

    Have a nice day,

    Rachel
  • Hello ,

    Great news-
    thanks for letting me know the problems are resolved.

    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

Reply Children
No Data