Exception of type 'System.OutOfMemoryException' was thrown.

Ranorex Studio, Spy, Recorder, and Driver.
Posts: 1
Joined: Tue Jun 12, 2018 11:51 am

Exception of type 'System.OutOfMemoryException' was thrown.

Post by vgupta » Tue Jun 12, 2018 11:55 am

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)

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

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

Post by odklizec » Wed Jun 13, 2018 7:45 am


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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration