Page 1 of 1

Exception of type 'System.OutOfMemoryException' was thrown.

Posted: Tue Jun 12, 2018 11:55 am
by vgupta
Recently i have started getting following exception while running a test suite, could anyone please help:

Exception of type 'System.OutOfMemoryException' was thrown.
Show/Hide Stacktrace
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at Ranorex.Core.Testing.TestModuleActivator.DefaultFactoryMethod.CreateFactory() at Ranorex.Core.Testing.TestModuleLeaf.InitializeTestModuleInstance(TestModuleLeaf runTargetLeaf) at Ranorex.Core.Testing.TestModuleLeaf.GetTestModuleInstance(TestModuleLeaf runTargetLeaf) at Ranorex.Core.Testing.TestModuleLeaf.RunWithRepeats(DataContext parentDataContext, ErrorBehavior errorBehavior) at Ranorex.Core.Testing.TestModuleLeaf.Run(DataContext parentDataContext, Boolean childSkip)

Re: Exception of type 'System.OutOfMemoryException' was thrown.

Posted: Wed Jun 13, 2018 7:45 am
by odklizec
Hi,

Unfortunately, there is not enough details about the problem, your project or Ranorex version, to provide a reasonable answer. Please answer these questions:
Ranorex version?
When exactly did you get this error? Right after an attempt to start the exe or somewhere in the middle of test?
Have you tried an older version of test, taken from version control system?
Are you aware of any change on your desktop (windows updates, etc...)?
Have you tried to run the test on another machine? You just need to eliminate the possibility of problem with your machine.