Out of memory exception

Bug reports.
ujjainkarh
Posts: 8
Joined: Fri Jul 10, 2015 6:39 am

Out of memory exception

Post by ujjainkarh » Wed Jul 22, 2020 8:06 am

Ranorex version - 9.2.0
OS - Windows 10 (Version - 1809 Build - 17763.1282)

While doing execution, got below exception. Execution was stuck and need to kill AUT and Ranorex. This is hampering execution. Can you please check?

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
---STACKTRACE---
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
System.Collections.Generic.List`1.set_Capacity(Int32 value) +0x21
System.Collections.Generic.List`1.EnsureCapacity(Int32 min) +0x36
System.Collections.Generic.List`1.Add(T item) +0x0
Debugger.Interop.TrackedComObjects.Track(Object obj) +0x23
Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param,Type outputType) +0x41
Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param) +0x0
Debugger.ManagedCallbackProxy+<>c__DisplayClass22_0.<ExitProcess>b__0() +0x0
Debugger.MTA2STA+<>c__DisplayClass21_0.<EnqueueCall>b__0() +0x0
Debugger.MTA2STA.PerformCall() +0x47
Debugger.MTA2STA.PerformAllCalls() +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme) +0x0
System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj) +0x20
System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x79
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx) +0x0
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback,Object state) +0x2b
System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme) +0x37
System.Windows.Forms.Control.InvokeMarshaledCallbacks() +0x62

---ORIGINAL STACKTRACE---
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.Generic.List`1.set_Capacity(Int32 value)
at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
at System.Collections.Generic.List`1.Add(T item)
at Debugger.Interop.TrackedComObjects.Track(Object obj)
at Debugger.MTA2STA.MarshalIntPtrTo(IntPtr param, Type outputType)
at Debugger.MTA2STA.MarshalIntPtrTo[T](IntPtr param)
at Debugger.ManagedCallbackProxy.<>c__DisplayClass22_0.<ExitProcess>b__0()
at Debugger.MTA2STA.<>c__DisplayClass21_0.<EnqueueCall>b__0()
at Debugger.MTA2STA.PerformCall()
at Debugger.MTA2STA.PerformAllCalls()
at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()

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

Re: Out of memory exception

Post by odklizec » Mon Aug 03, 2020 10:14 am

Hi,

I'm afraid, this kind of problem is not solvable without seeing your solution and environment. You will have to create an official support ticket and request a remote session with Ranorex support folks.

All I can suggest right now is to update your obsolete and no longer supported version of Ranorex with most recent 9.3.2 and try to repeat the problem. If the problem is gone with most recent Ranorex, you have the answer. It's useless to debug such kind of issue with obsolete Ranorex version. Ranorex folks will definitely ask you to update Ranorex as well ;)
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